kubernets

kubernets安装

2020-02-10  本文已影响0人  王艳秋1

https://blog.frognew.com

export GO111MODULE="on" 
go get sigs.k8s.io/kind
kind create cluster  --name wyq
kubectl cluster-info --context kind-wyq

Kubernetes master is running at https://127.0.0.1:32768
KubeDNS is running at https://127.0.0.1:32768/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy


wget https://storage.googleapis.com/krew/v0.2.1/krew.tar.gz
wget https://storage.googleapis.com/krew/v0.2.1/krew.yaml
tar -zxvf krew.tar.gz
./krew-linux_amd64 install --manifest=krew.yaml --archive=krew.tar.gz

export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"
kubectl plugin list
kubectl krew search
kubectl krew install 
kubectl krew update
kubectl krew install change-ns
kubectl krew install whoami   virt  ns
上一篇 下一篇

猜你喜欢

热点阅读