debian12基础环境配置与运维
- 0
#讨论区
00条评论
实时对话
loading...
shell
shell
shell
shell
shell
bash
bash
https://helm.sh/docs/intro/install/
shell
先让traefik可以代理https流量
/var/lib/rancher/k3s/server/manifests/traefik-config.yaml
yaml
https://github.com/kubernetes/dashboard
bash
Add kubernetes-dashboard repository
shell
Deploy a Helm Release named "kubernetes-dashboard" using the kubernetes-dashboard chart
shell
bash
获取token
shell
https://zzfzzf.com/post/7028901660936245248
echo 1 > /proc/sys/vm/drop_caches
ip addr
ssh chen@192.168.100.204
su root
echo "pub key" >> ~/.ssh/authorized_keys
//更新软件包列表
apt update
//安装实际的软件包更新
apt upgrade
apt install curl -y
curl -sfL https://get.k3s.io | K3S_KUBECONFIG_MODE="644" K3S_NODE_NAME="k8s-master-01" sh -s -
curl -sfL https://get.k3s.io | K3S_KUBECONFIG_MODE="644" K3S_NODE_NAME="k8s-worker-01" K3S_URL=https://192.168.100.124:6443 K3S_TOKEN=mynodetoken sh -
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
apiVersion: helm.cattle.io/v1
kind: HelmChartConfig
metadata:
name: traefik
namespace: kube-system
spec:
valuesContent: |-
globalArguments:
- "--serversTransport.insecureSkipVerify=true"
ports:
psql:
port: 5432
expose: true
exposedPort: 5432
protocol: TCP
export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
helm repo add kubernetes-dashboard https://kubernetes.github.io/dashboard/
helm upgrade --install kubernetes-dashboard kubernetes-dashboard/kubernetes-dashboard --create-namespace --namespace kubernetes-dashboard
kubectl apply -f https://git.ooxo.cc/sonic/k8s/raw/branch/main/kubernetes-dashboard.yaml
kubectl get secret admin-user -n kubernetes-dashboard -o jsonpath={".data.token"} | base64 -d