kubernets 单机版安装脚本

详情参阅 https://github.com/ainnodb/pyauto/tree/master/kubernetes

运行

sh inst.sh st

安装日志在 /var/kubernetes/logs

配置文件 standalone.sh

[root@win74 metrix-server]# kubectl get cs
Warning: v1 ComponentStatus is deprecated in v1.19+
NAME                 STATUS    MESSAGE                         ERROR
scheduler            Healthy   ok
controller-manager   Healthy   ok
etcd-0               Healthy   {"health":"true","reason":""}
[root@win74 metrix-server]# kubectl get nodes
NAME             STATUS   ROLES    AGE   VERSION
win74.inno.com   Ready    <none>   78m   v1.22.4
[root@win74 metrix-server]# kubectl cluster-info
Kubernetes control plane is running at https://10.10.10.74:6443
CoreDNS is running at https://10.10.10.74:6443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy

To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.

 



以下是运行日志

[root@win74 metrix-server]# ls -ltr /var/kubernetes/logs
total 1400
-rw-r--r-- 1 root root  68609 May 12 19:43 cfssl_inst.sh.log20220512194329
-rw-r--r-- 1 root root  13223 May 12 19:44 kubernetsgencert.sh.log20220512194400
-rw-r--r-- 1 root root 735161 May 12 19:45 etcd_inst.sh.log20220512194543
-rw-r--r-- 1 root root   1752 May 12 19:45 etcd.sh.log
-rw-r--r-- 1 root root  22107 May 12 19:45 flanneld_inst.sh.log20220512194556
-rw-r--r-- 1 root root   2509 May 12 19:45 flanneld.sh.log
-rw-r--r-- 1 root root    670 May 12 19:45 docker.sh.log
-rw-r--r-- 1 root root 541196 May 12 19:50 kubernetes_inst.sh.log20220512195053
-rw-r--r-- 1 root root   2898 May 12 19:50 kubeconfig.sh.log20220512195055
-rw-r--r-- 1 root root   1062 May 12 19:50 kube-apiserver.sh.log
-rw-r--r-- 1 root root    949 May 12 19:50 kube-controller-manager.sh.log
-rw-r--r-- 1 root root   1677 May 12 19:50 kube-schedule.sh.log
-rw-r--r-- 1 root root    814 May 12 19:50 kube-proxy.sh.log
-rw-r--r-- 1 root root   1222 May 12 19:51 kubelet.sh.log20220512195107
-rw-r--r-- 1 root root    212 May 12 19:51 inst.sh.log20220512195107

 



 

posted on 2022-05-12 21:08  InnoLeo  阅读(53)  评论(0编辑  收藏  举报