• Siegfried Weber's avatar
    Sign CSRs for kubelet-serving with the server CA · 2b2f3182
    Siegfried Weber authored
    Problem:
    Only the client CA is passed to the kube-controller-manager and
    therefore CSRs with the signer name "kubernetes.io/kubelet-serving" are
    signed with the client CA. Serving certificates must be signed with the
    server CA otherwise e.g. "kubectl logs" fails with the error message
    "x509: certificate signed by unknown authority".
    
    Solution:
    Instead of providing only one CA via the kube-controller-manager
    parameter "--cluster-signing-cert-file", the corresponding CA for every
    signer is set with the parameters
    "--cluster-signing-kube-apiserver-client-cert-file",
    "--cluster-signing-kubelet-client-cert-file",
    "--cluster-signing-kubelet-serving-cert-file", and
    "--cluster-signing-legacy-unknown-cert-file".
    Signed-off-by: 's avatarSiegfried Weber <mail@siegfriedweber.net>
    (cherry picked from commit e77fd182)
    2b2f3182
Name
Last commit
Last update
.github Loading commit data...
cmd Loading commit data...
contrib Loading commit data...
e2e Loading commit data...
manifests Loading commit data...
package Loading commit data...
pkg Loading commit data...
scripts Loading commit data...
tests/perf Loading commit data...
vendor Loading commit data...
.dockerignore Loading commit data...
.drone.yml Loading commit data...
.gitignore Loading commit data...
.golangci.json Loading commit data...
BUILDING.md Loading commit data...
CODEOWNERS Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
CONTRIBUTING.md Loading commit data...
DCO Loading commit data...
Dockerfile.dapper Loading commit data...
Dockerfile.manifest Loading commit data...
Dockerfile.test.dapper Loading commit data...
Dockerfile.test.mod.dapper Loading commit data...
LICENSE Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
ROADMAP.md Loading commit data...
Vagrantfile Loading commit data...
channel.yaml Loading commit data...
docker-compose.yml Loading commit data...
go.mod Loading commit data...
go.sum Loading commit data...
install.sh Loading commit data...
k3s.service Loading commit data...
main.go Loading commit data...
vendor.go Loading commit data...