diff --git a/docs/develop/deploy/kubernetes/knative.md b/docs/develop/deploy/kubernetes/knative.md index 5028044c0..40475af5c 100644 --- a/docs/develop/deploy/kubernetes/knative.md +++ b/docs/develop/deploy/kubernetes/knative.md @@ -91,13 +91,13 @@ $ sudo apt-mark hold kubelet kubeadm kubectl # create kubernetes cluster $ swapoff -a $ kubeadm init --pod-network-cidr=10.244.0.0/16 --cri-socket unix:///var/run/containerd/containerd.sock +$ export KUBECONFIG=/etc/kubernetes/admin.conf # install cni $ kubectl apply -f https://raw.githubusercontent.com/flannel-io/flannel/master/Documentation/kube-flannel.yml # untaint master node $ kubectl taint nodes --all node-role.kubernetes.io/control-plane- -$ export KUBECONFIG=/etc/kubernetes/admin.conf # add crun runtimeClass $ cat > runtime.yaml <