[root@k8s-master deploy]# kubectl apply -f pod.yaml
error: error parsing pod.yaml: error converting YAML to JSON: yaml: line 9: did not find expected key
error: error parsing pod.yaml: error converting YAML to JSON: yaml: line 9: did not find expected key
2024-03-12
講師回答 / 暮閑
K3S節點納管curl -sfL https://get.k3s.io | K3S_URL=https://myserver:6443 K3S_TOKEN=mynodetoken sh -參考文檔:https://docs.k3s.io/zh/quick-start
2024-03-11
有些包下載過慢需要配置國內鏡像源:
root@VM-0-4-debian:~/container-tech/mm-supermarket/server# cat /etc/docker/daemon.json
{
"registry-mirrors": ["https://mirror.ccs.tencentyun.com"]
}
root@VM-0-4-debian:~/container-tech/mm-supermarket/server# cat /etc/docker/daemon.json
{
"registry-mirrors": ["https://mirror.ccs.tencentyun.com"]
}
2023-11-26
講師回答 / 暮閑
同學你好:由于時長原因,調度的詳細邏輯我沒有展開講解,因此演示的調度是隨機調度的。但是k8s中調度有相應的調度算法,牽涉的調度方式有節點調度、節點標簽調度、親和調度三種方式,同學可以按照這個方向展開系統學習集群調度。
2023-10-18