Version changes
Only version of the Kubernetes change
Package | Version before update | current version |
---|---|---|
Kubernetes | 1.15.0 | 1.16.0 |
Docker | 18.09.7 | 18.09.7 |
ETCD | 3.3.13 | 3.3.13 |
FLANNEL | 0.10.0 | 0.11.0 |
Question 1: coredns installation fails
Reason:
the Deployment of apiVersion is written in coredns.yml extensions / v1beta1, extensions / v1beta1 execution error is discarded resulting in
core.yml file example is shown below
[root@host132 ansible]# cat /etc/k8s/coredns/coredns.yaml
# __MACHINE_GENERATED_WARNING__
...省略
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: coredns
namespace: kube-system
labels:
k8s-app: kube-dns
kubernetes.io/cluster-service: "true"
addonmanager.kubernetes.io/mode: Reconcile
kubernetes.io/name: "CoreDNS"
...省略
[root@host132 ansible]#
Corresponding method:
modified apps / v1 to
[root@host132 templates]# git diff coredns.yaml
diff --git a/k8s/ansible/coredns/templates/coredns.yaml b/k8s/ansible/coredns/templates/coredns.yaml
index 96abe75..69af15a 100644
--- a/k8s/ansible/coredns/templates/coredns.yaml
+++ b/k8s/ansible/coredns/templates/coredns.yaml
@@ -77,7 +77,7 @@ data:
loadbalance
}
---
-apiVersion: extensions/v1beta1
+apiVersion: apps/v1
kind: Deployment
metadata:
name: coredns
[root@host132 templates]#
Problems 2: kubectl get cs displayed as unknown
error message example as follows:
[the root @ host132 ansible] # kubectl GET CS
NAME of AGE
Scheduler <unknown>
Controller-Manager <unknown>
ETCD-0 <unknown>
[the root @ host132 ansible] #
It does not seem to have much impact, yet correspondence, will continue to be updated after the follow-up to confirm the cause.