From b38b7c7106a5208b53dbfec6f1c8178f3108b01c Mon Sep 17 00:00:00 2001 From: kaiyou <dev@kaiyou.fr> Date: Tue, 13 Sep 2022 23:21:29 +0200 Subject: [PATCH] Get apiserver to start --- pkg/cluster/services.go | 2 +- pkg/pki/io.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/cluster/services.go b/pkg/cluster/services.go index 1ee6299..00d21e5 100644 --- a/pkg/cluster/services.go +++ b/pkg/cluster/services.go @@ -56,7 +56,7 @@ func (s *ClusterServices) startK8sMaster(pki *ClusterPKI, certs *MasterCerts) { "--bind-address", "::", "--tls-cert-file", certs.Service.CertPath(), "--tls-private-key-file", certs.Service.KeyPath(), - "--client-ca-file", pki.API.Path, + "--client-ca-file", pki.API.CertPath(), "--kubelet-certificate-authority", pki.Kubelet.CertPath(), "--kubelet-client-certificate", certs.Kubelet.CertPath(), "--kubelet-client-key", certs.Kubelet.KeyPath(), diff --git a/pkg/pki/io.go b/pkg/pki/io.go index 6e72fc3..8bb6292 100644 --- a/pkg/pki/io.go +++ b/pkg/pki/io.go @@ -29,7 +29,7 @@ func (f FileIO) blockFor(t Type) *pem.Block { var blockType string switch t { case KeyType: - blockType = "ECDSA PRIVATE KEY" + blockType = "EC PRIVATE KEY" case CertType: blockType = "CERTIFICATE" case CSRType: -- GitLab