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
Copy file name to clipboardExpand all lines: cmd/minikube/cmd/start.go
+12
Original file line number
Diff line number
Diff line change
@@ -99,6 +99,7 @@ const (
99
99
imageMirrorCountry="image-mirror-country"
100
100
mountString="mount-string"
101
101
disableDriverMounts="disable-driver-mounts"
102
+
addons="addons"
102
103
cacheImages="cache-images"
103
104
uuid="uuid"
104
105
vpnkitSock="hyperkit-vpnkit-sock"
@@ -124,6 +125,7 @@ var (
124
125
dockerOpt []string
125
126
insecureRegistry []string
126
127
apiServerNames []string
128
+
addonList []string
127
129
apiServerIPs []net.IP
128
130
extraOptions cfg.ExtraOptionSlice
129
131
enableUpdateNotification=true
@@ -162,6 +164,7 @@ func initMinikubeFlags() {
162
164
startCmd.Flags().String(containerRuntime, "docker", "The container runtime to be used (docker, crio, containerd).")
163
165
startCmd.Flags().Bool(createMount, false, "This will start the mount daemon and automatically mount files into minikube.")
164
166
startCmd.Flags().String(mountString, constants.DefaultMountDir+":/minikube-host", "The argument to pass the minikube mount command on start.")
167
+
startCmd.Flags().StringArrayVar(&addonList, addons, nil, "Enable addons. see `minikube addons list` for a list of valid addon names.")
165
168
startCmd.Flags().String(criSocket, "", "The cri socket path to be used.")
166
169
startCmd.Flags().String(networkPlugin, "", "The name of the network plugin.")
167
170
startCmd.Flags().Bool(enableDefaultCNI, false, "Enable the default CNI plugin (/etc/cni/net.d/k8s.conf). Used in conjunction with \"--network-plugin=cni\".")
Copy file name to clipboardExpand all lines: site/content/en/docs/Reference/Commands/start.md
+1
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,7 @@ minikube start [flags]
16
16
### Options
17
17
18
18
```
19
+
--addons Enable addons. see `minikube addons list` for a list of valid addon names.
19
20
--apiserver-ips ipSlice A set of apiserver IP Addresses which are used in the generated certificate for kubernetes. This can be used if you want to make the apiserver available from outside the machine (default [])
20
21
--apiserver-name string The apiserver name which is used in the generated certificate for kubernetes. This can be used if you want to make the apiserver available from outside the machine (default "minikubeCA")
21
22
--apiserver-names stringArray A set of apiserver names which are used in the generated certificate for kubernetes. This can be used if you want to make the apiserver available from outside the machine
0 commit comments