Skip to content

Commit

Permalink
Merge pull request #8092 from sharifelgamal/apiserver-crt
Browse files Browse the repository at this point in the history
only copy apiserver certs to control plane
  • Loading branch information
sharifelgamal authored May 18, 2020
2 parents c1e108e + 5b53495 commit 9a03195
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/minikube/bootstrapper/certs.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,12 @@ func generateSharedCACerts() (CACerts, error) {

// generateProfileCerts generates profile certs for a profile
func generateProfileCerts(k8s config.KubernetesConfig, n config.Node, ccs CACerts) ([]string, error) {

// Only generate these certs for the api server
if !n.ControlPlane {
return []string{}, nil
}

profilePath := localpath.Profile(k8s.ClusterName)

serviceIP, err := util.GetServiceClusterIP(k8s.ServiceCIDR)
Expand Down

0 comments on commit 9a03195

Please sign in to comment.