-
According to the documentation the
However looking at the kube-apiserver flags kube-apiserver
...
--service-account-key-file=/var/lib/rancher/k3s/server/tls/service.key
it points to a private key. How come this is even possible that work? I would expect that the CM points to a private key while the API Server to a public key. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
Honestly I'm not sure; it's been that way since the project was started: Most of this behavior was taken from upstream's Perhaps only using the public key for the apiserver would be a best practice, but upstream doesn't currently follow it, and obviously has code to handle using the private key for both flags. |
Beta Was this translation helpful? Give feedback.
-
The text on that page was suggested by a community member at kubernetes/website#3166 (comment) and perhaps doesn't reflect reality, as the kube-apiserver docs for that flag say:
So it would appear that it is absolutely valid to pass the private key to both. |
Beta Was this translation helpful? Give feedback.
-
@brandond Since the way signing keys work is different from default K8s, is there official confirmation that since the |
Beta Was this translation helpful? Give feedback.
The text on that page was suggested by a community member at kubernetes/website#3166 (comment) and perhaps doesn't reflect reality, as the kube-apiserver docs for that flag say:
So it would appear that it is absolutely valid to pass the private key to both.