Clean kubectl cache after upgrade on first master (#5479)

Resolves issue where kubectl cache of <v1.16 api schema
interferes with interacting with daemonsets and deployments.

Change-Id: I63b7046958f2008eb144b6da0004c598f945e0ae
This commit is contained in:
Matthew Mosesohn 2020-01-06 13:23:35 +03:00 committed by Kubernetes Prow Robot
parent 3c3ebc05cc
commit 5fab610fab

View file

@ -38,6 +38,14 @@
- kubeadm_upgrade.stdout_lines | length > 1
notify: Master | restart kubelet
- name: kubeadm | clean kubectl cache to refresh api types
file:
path: "{{ item }}"
state: absent
with_items:
- /root/.kube/cache
- /root/.kube/http-cache
# FIXME: https://github.com/kubernetes/kubeadm/issues/1318
- name: kubeadm | scale down coredns replicas to 0 if not using coredns dns_mode
command: >-