You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
exit.Message(reason.Usage, "Sorry, the port provided with the --listen-apiserver-port flag is invalid: {{.listenAPIServerPort}}.", out.V{"listenAPIServerPort": listenAPIServerPort})
1256
+
}
1257
+
}
1258
+
1247
1259
// This function validates that the --insecure-registry follows one of the following formats:
Copy file name to clipboardExpand all lines: cmd/minikube/cmd/start_flags.go
+3
Original file line number
Diff line number
Diff line change
@@ -118,6 +118,7 @@ const (
118
118
defaultSSHUser="root"
119
119
defaultSSHPort=22
120
120
listenAddress="listen-address"
121
+
listenAPIServerPort="listen-apiserver-port"
121
122
)
122
123
123
124
var (
@@ -219,6 +220,7 @@ func initDriverFlags() {
219
220
220
221
// docker & podman
221
222
startCmd.Flags().String(listenAddress, "", "IP Address to use to expose ports (docker and podman driver only)")
223
+
startCmd.Flags().Int(listenAPIServerPort, 0, "Port that apiserver exposed (docker and podman driver only). Use it with --listen-address=0.0.0.0(for remote access) --apiserver-ips=HostIP(for certificate).")
222
224
startCmd.Flags().StringSlice(ports, []string{}, "List of ports that should be exposed (docker and podman driver only)")
--listen-address string IP Address to use to expose ports (docker and podman driver only)
76
+
--listen-apiserver-port int Port that apiserver exposed (docker and podman driver only). Use it with --listen-address=0.0.0.0(for remote access) --apiserver-ips=HostIP(for certificate).
76
77
--memory string Amount of RAM to allocate to Kubernetes (format: <number>[<unit>], where unit = b, k, m or g).
77
78
--mount This will start the mount daemon and automatically mount files into minikube.
78
79
--mount-string string The argument to pass the minikube mount command on start.
0 commit comments