Загрузка данных


[altlinux@k8s-srv1 ~]$ sudo kubeadm init phase addon all --config /etc/kubernetes/kube
kubeadm-config.yaml  kubelet              kubelet.conf         
[altlinux@k8s-srv1 ~]$ sudo kubeadm init phase addon all --config /etc/kubernetes/kubeadm-config.yaml 
W0416 05:20:48.884435    9074 common.go:100] your configuration file uses a deprecated API spec: "kubeadm.k8s.io/v1beta3" (kind: "ClusterConfiguration"). Please use 'kubeadm config migrate --old-config old-config-file --new-config new-config-file', which will write the new, similar spec using a newer API version.
W0416 05:20:48.884737    9074 common.go:100] your configuration file uses a deprecated API spec: "kubeadm.k8s.io/v1beta3" (kind: "InitConfiguration"). Please use 'kubeadm config migrate --old-config old-config-file --new-config new-config-file', which will write the new, similar spec using a newer API version.
W0416 05:20:48.885503    9074 utils.go:69] The recommended value for "clusterDNS" in "KubeletConfiguration" is: [10.96.0.10]; the provided value is: [169.254.25.10]
^[

^C
[altlinux@k8s-srv1 ~]$ sudo cp -f /etc/k
keepalived/  kernel/      keys/        krb5.conf    krb5.conf.d/ kubernetes/  
[altlinux@k8s-srv1 ~]$ sudo cp -f /etc/kubernetes/admin.conf $HOME/.kube/config 
[altlinux@k8s-srv1 ~]$ sudo chown $(id -u):$(id -g) $HOME/.kube/config 
[altlinux@k8s-srv1 ~]$ sed -i 's/192.168.0.253:7443/127.0.0.1:6443/g' $HOME/.kube/config 
[altlinux@k8s-srv1 ~]$ kubectl get nodes
E0416 05:22:23.058717    9241 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"https://127.0.0.1:6443/api?timeout=32s\": tls: failed to verify certificate: x509: certificate is valid for 10.96.0.1, 192.168.0.201, 192.168.0.253, not 127.0.0.1"
E0416 05:22:23.061395    9241 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"https://127.0.0.1:6443/api?timeout=32s\": tls: failed to verify certificate: x509: certificate is valid for 10.96.0.1, 192.168.0.201, 192.168.0.253, not 127.0.0.1"
E0416 05:22:23.064002    9241 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"https://127.0.0.1:6443/api?timeout=32s\": tls: failed to verify certificate: x509: certificate is valid for 10.96.0.1, 192.168.0.201, 192.168.0.253, not 127.0.0.1"
E0416 05:22:23.066498    9241 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"https://127.0.0.1:6443/api?timeout=32s\": tls: failed to verify certificate: x509: certificate is valid for 10.96.0.1, 192.168.0.201, 192.168.0.253, not 127.0.0.1"
E0416 05:22:23.069079    9241 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"https://127.0.0.1:6443/api?timeout=32s\": tls: failed to verify certificate: x509: certificate is valid for 10.96.0.1, 192.168.0.201, 192.168.0.253, not 127.0.0.1"
Unable to connect to the server: tls: failed to verify certificate: x509: certificate is valid for 10.96.0.1, 192.168.0.201, 192.168.0.253, not 127.0.0.1
[altlinux@k8s-srv1 ~]$ kubectl get nodes --as=system:admin
E0416 05:22:48.634114    9316 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"https://127.0.0.1:6443/api?timeout=32s\": tls: failed to verify certificate: x509: certificate is valid for 10.96.0.1, 192.168.0.201, 192.168.0.253, not 127.0.0.1"
E0416 05:22:48.636781    9316 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"https://127.0.0.1:6443/api?timeout=32s\": tls: failed to verify certificate: x509: certificate is valid for 10.96.0.1, 192.168.0.201, 192.168.0.253, not 127.0.0.1"
E0416 05:22:48.639397    9316 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"https://127.0.0.1:6443/api?timeout=32s\": tls: failed to verify certificate: x509: certificate is valid for 10.96.0.1, 192.168.0.201, 192.168.0.253, not 127.0.0.1"
E0416 05:22:48.641871    9316 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"https://127.0.0.1:6443/api?timeout=32s\": tls: failed to verify certificate: x509: certificate is valid for 10.96.0.1, 192.168.0.201, 192.168.0.253, not 127.0.0.1"
E0416 05:22:48.644434    9316 memcache.go:265] "Unhandled Error" err="couldn't get current server API group list: Get \"https://127.0.0.1:6443/api?timeout=32s\": tls: failed to verify certificate: x509: certificate is valid for 10.96.0.1, 192.168.0.201, 192.168.0.253, not 127.0.0.1"
Unable to connect to the server: tls: failed to verify certificate: x509: certificate is valid for 10.96.0.1, 192.168.0.201, 192.168.0.253, not 127.0.0.1