Merge pull request #1738 from aaron-prindle/storage-port
Fix storage provisioner to use insecure address portpull/1759/head
commit
4fd5f4797b
|
@ -19,8 +19,10 @@ package localkube
|
|||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"net"
|
||||
"os"
|
||||
"path"
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
"github.com/golang/glog"
|
||||
|
@ -123,7 +125,7 @@ func StartStorageProvisioner(lk LocalkubeServer) func() error {
|
|||
|
||||
// Create an InClusterConfig and use it to create a client for the controller
|
||||
// to use to communicate with Kubernetes
|
||||
config := rest.Config{Host: "http://localhost:8080"}
|
||||
config := rest.Config{Host: net.JoinHostPort("localhost", strconv.Itoa(lk.APIServerInsecurePort))}
|
||||
return func() error {
|
||||
|
||||
clientset, err := kubernetes.NewForConfig(&config)
|
||||
|
|
Loading…
Reference in New Issue