linux怎么查看本机内存大小
225
2022-11-13
K8S 1.9.0二进制包部署(三)
4、k8s node#############kubelet
cp kubelet /usr/bin/chmod 755 /usr/bin/kubeletmkdir -p /app/kubernetes/datamkdir -p /app/kubernetes/confmkdir -p /app/kubernetes/log
vi /usr/lib/systemd/system/kubelet.service[Unit]Description=Kubernetes Kubelet ServerDocumentation=$KUBELET_ARGSRestart=on-failureLimitNOFILE=65536[Install]WantedBy=multi-user.target
vi /app/kubernetes/conf/kubeletKUBELET_ARGS="--kubeconfig=/app/kubernetes/conf/kubelet.kubeconfig --fail-swap-on=false --hostname-override=192.168.254.54 --pod-infra-container-image=mirrorgooglecontainers/pause-amd64:3.0 --logtostderr=false --log-dir=/app/kubernetes/log --v=2"hostname-override=参数是指定名字,如果不写此参数默认是主机hostname名。--pod-infra-container-image= 改写一个可下载镜像的地址,此image如果pull不了会导致分发无法创建podkubeconfig配置文件参考/app/kubernetes/conf/kubelet.kubeconfigapiVersion: v1kind: Configclusters:
cluster:server: #此处输入集群master地址name: localcontexts: context:cluster: localname: localcurrent-context: local
systemctl daemon-reloadsystemctl enable kubelet.servicesystemctl start kubelet.servicesystemctl status kubelet.service
#############kube-proxy
cp kube-proxy /usr/bin/chmod 755 /usr/bin/kube-proxy
vi /usr/lib/systemd/system/kube-proxy.service[Unit]Description=Kubernetes Kube-Proxy ServerDocumentation=$KUBE_PROXY_ARGSRestart=on-failureLimitNOFILE=65536[Install]WantedBy=multi-user.target
vi /app/kubernetes/conf/proxyKUBE_PROXY_ARGS="--master=--logtostderr=false --log-dir=/app/kubernetes/log --v=2"#此处输入集群master地址
systemctl daemon-reloadsystemctl enable kube-proxy.servicesystemctl start kube-proxy.servicesystemctl status kube-proxy.service
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~