Skip to content

Commit

Permalink
Merge pull request #4386 from moduspwnens/master
Browse files Browse the repository at this point in the history
Fixed addon-manager failing with non-default --apiserver-port
  • Loading branch information
tstromberg authored May 31, 2019
2 parents 44c1b2a + 529b5aa commit 27d56c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/minikube/bootstrapper/certs.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ limitations under the License.
package bootstrapper

import (
"fmt"
"net"
"path"
"path/filepath"
Expand Down Expand Up @@ -66,7 +67,7 @@ func SetupCerts(cmd CommandRunner, k8s config.KubernetesConfig) error {

kubeCfgSetup := &util.KubeConfigSetup{
ClusterName: k8s.NodeName,
ClusterServerAddress: "https://localhost:8443",
ClusterServerAddress: fmt.Sprintf("https://localhost:%d", k8s.NodePort),
ClientCertificate: path.Join(util.DefaultCertPath, "apiserver.crt"),
ClientKey: path.Join(util.DefaultCertPath, "apiserver.key"),
CertificateAuthority: path.Join(util.DefaultCertPath, "ca.crt"),
Expand Down

0 comments on commit 27d56c1

Please sign in to comment.