Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing certs in kube-controller-manager #26

Open
indradhanush opened this issue Sep 10, 2018 · 0 comments
Open

Missing certs in kube-controller-manager #26

indradhanush opened this issue Sep 10, 2018 · 0 comments

Comments

@indradhanush
Copy link
Contributor

indradhanush commented Sep 10, 2018

Currently we run the following to configure the kube-controller-manager component:

# set up the kube-controller-manager
vagrant ssh node-0 -- sudo hab svc load core/kubernetes-controller-manager --channel "${channel}"

cat <<'EOF' | vagrant ssh node-0 -- bash
for f in /vagrant/certificates/{ca.pem,ca-key.pem}; do sudo hab file upload kubernetes-controller-manager.default $(date +%s) "${f}"; done
EOF
vagrant ssh node-0 -- sudo hab config apply kubernetes-controller-manager.default $(date +%s) /vagrant/config/svc-kubernetes-controller-manager.toml

However, the certificates do not get uploaded to /hab/svc/kubernetes-controller-manager/files and as a result the controller keeps getting restarted. This is an intermittent issue and hard to reproduce. Conditions that reproduce it are unknown as of yet.

Running the command again after ssh-ing into the node-0 works:

for f in /vagrant/certificates/{ca.pem,ca-key.pem}; do sudo hab file upload kubernetes-controller-manager.default $(date +%s) "${f}"; done

Here's more information that may or may not be relevant:

$ uname -a
Linux xps 4.18.5-arch1-1-ARCH #1 SMP PREEMPT Fri Aug 24 12:48:58 UTC 2018 x86_64 GNU/Linux
$ vagrant -v
Vagrant 2.1.4
$ virtualbox -h
Oracle VM VirtualBox Manager 5.2.18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant