1.k8s (提前下载镜像)
kubeadm reset
kubeadm init 最好可以指定version
cp -i admin.conf $HOME/.kube/config
chown $(id -u):$(id -g) $HOME/.kube/config
2. calico(提前下载镜像)
find / -name calico.yaml
kubectl apply -f calico.yaml
3.去隔离
kubectl taint nodes --all node-role.kubernetes.io/master-\
kubectl get pods -n kube-system
kubectl label nodes masterselector=dls-master-node
kubectl get node --show-labels
4.mef
kubectl create ns mindx-edge
mkdir -p /var/log/mindx-edge/edge-manager
chmod -R 750 /var/log/mindx-edge/edge-manager
chown -R MEFCenter:MEFCenter /var/log/mindx-edge/edge-manager
5.crd
kubectl api-resources --api-group=apiextensions.k8s.io -o wide
查看
sed -n "/v1/p" devices_v1alpha2_device.yaml
修改
sed -i "s/io\/v1/io\/v1beta1/g" devices_v1alpha2_device.yaml
忽悠校验
kubectl apply --validate=false -f devices_v1alpha2_device.yaml
标签:kubectl,mef,mindx,离线,yaml,edge,io,k8s From: https://www.cnblogs.com/gongxianjin/p/17288905.html