linux怎么查看本机内存大小
237
2022-11-13
K8S 1.9.0二进制包部署(二)
3、k8s master#############kube-apiserver
cp kube-apiserver /usr/binchmod 755 /usr/bin/kube-apiservermkdir -p /app/kubernetes/confmkdir -p /app/kubernetes/log
vi /usr/lib/systemd/system/kube-apiserver.service[Unit]Description=Kubernetes API ServerDocumentation=$KUBE_API_ARGSRestart=on-failureType=notifyLimitNOFILE=65536[Install]WantedBy=multi-user.target
vi /app/kubernetes/conf/apiserverKUBE_API_ARGS="--etcd-servers=--insecure-bind-address=0.0.0.0 --insecure-port=8080 --service-cluster-ip-range=10.254.0.0/16 --service-node-port-range=1-65535 --admission-control=NamespaceLifecycle,LimitRanger,SecurityContextDeny,ServiceAccount,ResourceQuota --logtostderr=false --log-dir=/app/kubernetes/log --v=2"# --admission-control= 参数是准入控制 具体意思参考 daemon-reloadsystemctl enable kube-apiserver.servicesystemctl start kube-apiserver.servicesystemctl status kube-apiserver.service
#############kube-controller-manager
cp kube-controller-manager /usr/binchmod 755 /usr/bin/kube-controller-manager
vi /usr/lib/systemd/system/kube-controller-manager.service[Unit]Description=Kubernetes Controller ManagerDocumentation=$KUBE_CONTROLLER_MANAGER_ARGSRestart=on-failureLimitNOFILE=65536[Install]WantedBy=multi-user.target
vi /app/kubernetes/conf/controller-managerKUBE_CONTROLLER_MANAGER_ARGS="--master=--logtostderr=false --log-dir=/app/kubernetes/log --v=2"
systemctl daemon-reloadsystemctl enable kube-controller-manager.servicesystemctl start kube-controller-manager.servicesystemctl status kube-controller-manager.service
#############kube-scheduler
cp kube-scheduler /usr/bin/chmod 755 /usr/bin/kube-scheduler
vi /usr/lib/systemd/system/kube-scheduler.service[Unit]Description=Kubernetes SchedulerDocumentation=$KUBE_SCHEDULER_ARGSRestart=on-failureLimitNOFILE=65536[Install]WantedBy=multi-user.target
vi /app/kubernetes/conf/schedulerKUBE_SCHEDULER_ARGS="--master=--logtostderr=false --log-dir=/app/kubernetes/log --v=2"
systemctl daemon-reloadsystemctl enable kube-scheduler.servicesystemctl start kube-scheduler.servicesystemctl status kube-scheduler.service
#安装后发现kubectl 没法使用报错,参考/]# kubectl-bash: kubectl: 未找到命令server压缩包里有此文件,解决kubectl未找到问题cp kubectl /usr/binchmod 755 /usr/bin/kubectlsource ~/.bash_profile
kubectl -s get componentstatuskubectl -s get node
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~