k8s

export http_proxy=http://192.168.10.5:3128
export https_proxy=http://192.168.10.5:3128
export no_proxy=127.0.0.1,localhost,192.168.10.43,10.96.0.0/12,192.168.0.0/16
[Service]     
Environment="HTTP_PROXY=http://192.168.10.5:3128" "NO_PROXY=localhost,127.0.0.1,192.168.10.43,10.96.0.0/12,192.168.0.0/16"

kubeadm init --apiserver-advertise-address 192.168.2.43 --pod-network-cidr=10.244.0.0/16
kubeadm init --pod-network-cidr=192.168.0.0/16 --kubernetes-version=v1.19.3

#终端proxy

export no_proxy=127.0.0.1,localhost,192.168.10.43,10.96.0.0/12,192.168.0.0/16

#docker 代理
$ cat /etc/systemd/system/docker.service.d/http-proxy.conf

[Service]     
Environment="HTTP_PROXY=http://192.168.10.5:3128" "NO_PROXY=localhost,127.0.0.1,192.168.10.43,10.96.0.0/12,192.168.0.0/16"
:27:28.810079   18447 configset.go:348] WARNING: kubeadm cannot validate component configs for API groups [kubelet.config.k8s.io kubeproxy.config.k8s.io]
failed to pull image "registry.cn-beijing.aliyuncs.com/imcto/kube-apiserver:v1.19.3": output: Error response from daemon: manifest for registry.cn-beijing.aliyuncs.com/imcto/kube-apiserver:v1.19.3 not found
, error: exit status 1
To see the stack trace of this error execute with --v=5 or higher
ps -aux |grep czht-
kubectl get -A svc

kubectl apply -f person-center.yaml 

kubectl logs -f -n czht person-center-7c665d5b45-nzcfw
kubectl delete po -n czht person-center-7c665d5b45-nzcfw

watch kubectl get -A po
kubectl get -A svc
delete svc -n czht smart-new-api-gateway 

kubectl describe po -nczht czht-user-center-6f84944d5b-47z7c


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值