Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Certificate error after upgrading CDK to 1.5.2 -> 1.5.3 #43209
Comments
|
Thanks for reporting this. This looks related to #41919 where we added server certificates to kubernetes-worker. I'm not sure why but it looks like they were signed with a different CA cert. |
jonathanmarsaud
commented
Mar 16, 2017
•
|
@Cynerva Hmm, just for additionnal infos: I tried to switch my local ~/.kube/config to a https://master:6443 directly instead of https://kube-api-loadbalancer:443 and I got the same error. I don't know so if it's tied only to the certificates tied to the kube-api-loadbalancer? |
Yeah, I think the |
jonathanmarsaud
commented
Mar 20, 2017
|
Hi, I just discovered and solved my bug! KUBELET_ARGS before upgrading to 1.5.3 from 1.5.2:
KUBELET_ARGS after upgrading to 1.5.3 from 1.5.2:
So no configuration about CA & certificates/keys (+some other parameters). I just replaced my KUBELET_ARGS and |
k8s-merge-robot
added
the
needs-sig
label
May 31, 2017
|
/sig cluster-lifecycle |
k8s-ci-robot
added
the
sig/cluster-lifecycle
label
Jun 14, 2017
|
@castrojo: GitHub didn't allow me to assign the following users: Cynerva. Note that only kubernetes members can be assigned. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
k8s-merge-robot
removed
the
needs-sig
label
Jun 14, 2017
|
/assign |
k8s-ci-robot
assigned
castrojo
Jun 14, 2017
|
/close |
jonathanmarsaud commentedMar 16, 2017
Is this a request for help?
No.
What keywords did you search in Kubernetes issues before filing this one? (If you have found any duplicates, you should instead reply there.):
, 1.5.3, upgrade, cdk, easyrsa, exec, logs
Is this a BUG REPORT or FEATURE REQUEST? (choose one):
BUG REPORT
Kubernetes version (use
kubectl version):Client Version: version.Info{Major:"1", Minor:"5", GitVersion:"v1.5.3", GitCommit:"029c3a408176b55c30846f0faedf56aae5992e9b", GitTreeState:"clean", BuildDate:"2017-02-23T22:48:32Z", GoVersion:"go1.7.4", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"5", GitVersion:"v1.5.3", GitCommit:"029c3a408176b55c30846f0faedf56aae5992e9b", GitTreeState:"clean", BuildDate:"2017-02-23T22:28:16Z", GoVersion:"go1.7.4", Compiler:"gc", Platform:"linux/amd64"}
Environment:
uname -a): Linux mth-k8smaster-01 4.4.0-67-generic #88-Ubuntu SMP Wed Mar 8 16:34:45 UTC 2017 x86_64 x86_64 x86_64 GNU/LinuxWhat happened:
After upgrading our CDK cluster in 1.5.2 to latest versions of every charms of the bundle (to go to Kubernetes 1.5.3), we discovered that "kubectl exec" and "kubectl logs" versions return certificate error.
"exec/logs" are the only subcommands affected by this error, all others seems to be OK for what we discovered for now.
Below are the kind of error we got:
$ kubectl -exec -it phpbackend-w0bnv /bin/bash
Error from server: error dialing backend: x509: certificate signed by unknown authority
$ kubectl logs phpbackend-w0bnv
Error from server: Get https://ig1-k8s-03:10250/containerLogs/development/phpbackend-w0bnv/phpbackend: x509: certificate signed by unknown authority
(For info ig1-k8s-03 is one of our nodes.)
What you expected to happen:
As usual, exec should enter in a container of a pod, logs should display logs of pods in stdout.
How to reproduce it (as minimally and precisely as possible):
Deploy a 1.5.2 CDK Cluster, follow https://kubernetes.io/docs/getting-started-guides/ubuntu/upgrades/ to upgrade charms in correct order (EasyRSA at the end).
Anything else we need to know:
root@ig1-k8s-03:/srv/kubernetes# ls -l
total 40
-rwxrwx--- 1 root root 1179 Feb 15 12:32 ca.crt
-rwxrwx--- 1 root root 4367 Feb 15 12:32 client.crt
-rwxrwx--- 1 root root 1703 Feb 15 12:32 client.key
-rw------- 1 root root 10023 Feb 15 12:33 config
-rwxrwx--- 1 root root 4637 Mar 15 10:11 server.crt
-rwxrwx--- 1 root root 1704 Mar 15 10:11 server.key
-> March 15th 10:11 is the exact date of the CDK upgrades.
root@ig1-k8s-03:/srv/kubernetes# openssl x509 -in server.crt -text -noout
[...]
X509v3 extensions:
X509v3 Basic Constraints:
CA:FALSE
X509v3 Subject Key Identifier:
5D:C1:97:0C:F9:51:8E:D8:FF:70:37:F2:B9:6A:3A:BC:CF:F3:A8:FF
X509v3 Authority Key Identifier:
keyid:B7:DE:65:69:D5:47:3B:42:E0:6D:27:1D:BE:4B:DE:B8:EF:30:38:4C
DirName:/CN=ig1-k8srsa-01
serial:AF:F9:82:DA:3B:7F:74:B5
[...]
Regards,