contiv / install

Contiv Installer
https://contiv.github.io
Other
114 stars 56 forks source link

Failed to load TLS key pair: open /var/contiv/auth_proxy_cert.pem: no such file or directory #298

Closed KeithTt closed 6 years ago

KeithTt commented 6 years ago

kube version: 1.8.2 docker version: 17.06.2-ce etcd version: 3.2.9 OS version: debian stretch

# kubectl logs -f contiv-api-proxy-5z2np -n kube-system
time="2017-11-14T03:50:02Z" level=info msg="Auth Proxy 1.1.6 starting up..."
time="2017-11-14T03:50:02Z" level=info msg="Adding default users with default passwords"
time="2017-11-14T03:50:02Z" level=info msg="Adding local user \"admin\" to the system"
time="2017-11-14T03:50:02Z" level=info msg="Adding local user \"ops\" to the system"
time="2017-11-14T03:50:02Z" level=info msg="Skipping netmaster startup check"
time="2017-11-14T03:50:02Z" level=fatal msg="Failed to load TLS key pair: open /var/contiv/auth_proxy_cert.pem: no such file or directory"

how to add this pem...

KeithTt commented 6 years ago

I have two masters, and I add the label kubeadm.alpha.kubernetes.io/role=master to both of them, I just copy the pem file to the assigned node and the pod works.

# kubectl get po --all-namespaces -o wide
NAMESPACE     NAME                                    READY     STATUS    RESTARTS   AGE       IP               NODE
kube-system   contiv-api-proxy-d29m7                  1/1       Running   1          5m        122.14.206.195   uy05-13
kube-system   contiv-etcd-5rwb6                       1/1       Running   0          5m        122.14.206.195   uy05-13
kube-system   contiv-etcd-q549f                       1/1       Running   0          5m        192.168.5.104    uy08-07
kube-system   contiv-netmaster-xj65z                  1/1       Running   0          5m        192.168.5.104    uy08-07
kube-system   contiv-netplugin-4wjfh                  1/1       Running   0          4m        122.14.206.195   uy05-13
kube-system   contiv-netplugin-bc75r                  1/1       Running   0          4m        192.168.5.105    uy08-08
kube-system   contiv-netplugin-r4cpz                  1/1       Running   0          4m        192.168.5.104    uy08-07
kube-system   heapster-59ff54b574-jd4x8               1/1       Running   0          1d        192.168.72.0     uy05-13
kube-system   kube-apiserver-uy05-13                  1/1       Running   0          1d        122.14.206.195   uy05-13
kube-system   kube-apiserver-uy08-07                  1/1       Running   0          1d        192.168.5.104    uy08-07
kube-system   kube-controller-manager-uy05-13         1/1       Running   0          1d        122.14.206.195   uy05-13
kube-system   kube-controller-manager-uy08-07         1/1       Running   0          1d        192.168.5.104    uy08-07
kube-system   kube-dns-545bc4bfd4-b9njt               3/3       Running   0          1d        192.168.122.2    uy05-13
kube-system   kube-proxy-bbssx                        1/1       Running   0          1d        192.168.5.105    uy08-08
kube-system   kube-proxy-xl5m6                        1/1       Running   0          1d        192.168.5.104    uy08-07
kube-system   kube-proxy-zzkvq                        1/1       Running   0          1d        122.14.206.195   uy05-13
kube-system   kube-scheduler-uy05-13                  1/1       Running   0          1d        122.14.206.195   uy05-13
kube-system   kube-scheduler-uy08-07                  1/1       Running   0          1d        192.168.5.104    uy08-07
kube-system   kubernetes-dashboard-57f7b78668-jcsq5   1/1       Running   0          22h       192.168.4.69     uy08-08

And I open the dashboard, it seems everything is working.