-
Notifications
You must be signed in to change notification settings - Fork 42.2k
Description
Is this a BUG REPORT or FEATURE REQUEST?:
Uncomment only one, leave it on its own line:
/kind support
/kind feature
What happened:
Enabled --client-cert-auth=true in etcd yaml to communicate over TLS and restarted the kubelet for the changes to effect. kube-apiserver, controller, scheduler and etd containers along with pause container came up. however when we do kubectl -n kube-system get pods or anything else for that matter results are coming up empty and worker nodes that already joined no longer show up.
kubectl get pods -n kube-system
No resources found.
When reverted etcd yaml without tls settings, everything back online.
kubelet keeps on throwing errors for all 4 components:
pods "kube-controller-manager-azwushubqaadmmaster01" is forbidden: no providers available to validate pod request
What you expected to happen:
The nodes registered before enabling TLS on ETCD should show.
How to reproduce it (as minimally and precisely as possible):
Kubeadm init on master and nodes.
create certs for etcd server and client. Followed document
Apply the changes are mentioned in the yaml files attached.
Attached etcd.yaml & kube-apiserver.yaml
tls.zip
Anything else we need to know?:
Environment:
-
Kubernetes version (use
kubectl version): 1.9.5 -
Cloud provider or hardware configuration:
-
OS (e.g. from /etc/os-release): Ubuntu
-
Kernel (e.g.
uname -a): 4.13.0-1012-azure Port forwarding should be through iptables #15-Ubuntu SMP Thu Mar 8 10:47:27 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux -
Install tools:
-
Others:
@kubernetes/sig-auth-bug