kubeadm alpha certs check-expiration and kubeadm alpha certs renew all fail with: "open /etc/kubernetes/pki/apiserver-etcd-client.crt: no such file or directory" #6375
Labels
kind/bug
Categorizes issue or PR as related to a bug.
lifecycle/stale
Denotes an issue or PR has remained open with no activity and has become stale.
Environment:
Cloud provider or hardware configuration: hardware
OS (
printf "$(uname -srm)\n$(cat /etc/os-release)\n"
)::Linux 3.10.0-957.el7.x86_64 x86_64
NAME="Red Hat Enterprise Linux Server"
VERSION="7.6 (Maipo)"
ID="rhel"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="7.6"
PRETTY_NAME="Red Hat Enterprise Linux Server 7.6 (Maipo)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:7.6:GA:server"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"
REDHAT_BUGZILLA_PRODUCT_VERSION=7.6
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="7.6"
ansible --version
):ansible 2.8.2
config file = /opt/ansible/ansible.cfg
configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /opt/openwatt/local/lib/python2.7/site-packages/ansible
executable location = /opt/openwatt/bin/ansible
python version = 2.7.12 (default, Dec 4 2017, 14:50:18) [GCC 5.4.0 20160609]
python --version
):Python 2.7.12
Kubespray version (commit) (
git rev-parse --short HEAD
):29cfe2b
Network plugin used: calico
Full inventory with variables (
ansible -i inventory/sample/inventory.ini all -m debug -a "var=hostvars[inventory_hostname]"
):[all]
node1
node2
node3
node4
node5
node6
[kube-master]
node1
node2
node3
[etcd]
node1
node2
node3
[kube-node]
node4
node5
node6
[calico-rr]
[k8s-cluster:children]
kube-master
kube-node
calico-rr
Command used to invoke ansible:
ansible-playbook -i inventory/mycluster/inventory.ini --become --become-user=root cluster.yml
Anything else do we need to know:
I ran this on v2.12.7 of kubespray to see if it occurs (which is does) but I initially tried onan older version (v2.12.0) and it's the same. I ran a vanilla deployment without changing any variables, so i guess it should be easily reproducible.
My main scope was: "How to rotate the certificates without actually updating the k8s version"; so i got to manually trying to use kubeadm and thus received the errors in the title.
The text was updated successfully, but these errors were encountered: