Note: All alpha and experimental features are not guaranteed to work with minikube.
#### Examples
#### Examples
To change the `MaxPods` setting to 5 on the Kubelet, pass this flag: `--extra-config=kubelet.MaxPods=5`.
To change the `MaxPods` setting to 5 on the Kubelet, pass this flag: `--extra-config=kubelet.MaxPods=5`.
...
@@ -186,6 +198,8 @@ This feature also supports nested structs. To change the `LeaderElection.LeaderE
...
@@ -186,6 +198,8 @@ This feature also supports nested structs. To change the `LeaderElection.LeaderE
To set the `AuthorizationMode` on the `apiserver` to `RBAC`, you can use: `--extra-config=apiserver.GenericServerRunOptions.AuthorizationMode=RBAC`. You should use `--extra-config=apiserver.GenericServerRunOptions.AuthorizationRBACSuperUser=minikube` as well in that case.
To set the `AuthorizationMode` on the `apiserver` to `RBAC`, you can use: `--extra-config=apiserver.GenericServerRunOptions.AuthorizationMode=RBAC`. You should use `--extra-config=apiserver.GenericServerRunOptions.AuthorizationRBACSuperUser=minikube` as well in that case.
To enable all alpha feature gates, you can use: `--feature-gates=AllAlpha=true`
### Stopping a Cluster
### Stopping a Cluster
The [minikube stop](./docs/minikube_stop.md) command can be used to stop your cluster.
The [minikube stop](./docs/minikube_stop.md) command can be used to stop your cluster.
This command shuts down the minikube virtual machine, but preserves all cluster state and data.
This command shuts down the minikube virtual machine, but preserves all cluster state and data.
flag.IPVar(&s.NodeIP,"node-ip",s.NodeIP,"IP address of the node. If set, kubelet will use this IP address for the node.")
flag.IPVar(&s.NodeIP,"node-ip",s.NodeIP,"IP address of the node. If set, kubelet will use this IP address for the node.")
flag.StringVar(&s.ContainerRuntime,"container-runtime","","The container runtime to be used")
flag.StringVar(&s.ContainerRuntime,"container-runtime","","The container runtime to be used")
flag.StringVar(&s.NetworkPlugin,"network-plugin","","The name of the network plugin")
flag.StringVar(&s.NetworkPlugin,"network-plugin","","The name of the network plugin")
flag.StringVar(&s.FeatureGates,"feature-gates","","A set of key=value pairs that describe feature gates for alpha/experimental features.")
flag.Var(&s.ExtraConfig,"extra-config","A set of key=value pairs that describe configuration that may be passed to different components. The key should be '.' separated, and the first part before the dot is the component to apply the configuration to.")
flag.Var(&s.ExtraConfig,"extra-config","A set of key=value pairs that describe configuration that may be passed to different components. The key should be '.' separated, and the first part before the dot is the component to apply the configuration to.")
// These two come from vendor/ packages that use flags. We should hide them
// These two come from vendor/ packages that use flags. We should hide them
startCmd.Flags().String(kubernetesVersion,constants.DefaultKubernetesVersion,"The kubernetes version that the minikube VM will use (ex: v1.2.3) \n OR a URI which contains a localkube binary (ex: https://storage.googleapis.com/minikube/k8sReleases/v1.3.0/localkube-linux-amd64)")
startCmd.Flags().String(kubernetesVersion,constants.DefaultKubernetesVersion,"The kubernetes version that the minikube VM will use (ex: v1.2.3) \n OR a URI which contains a localkube binary (ex: https://storage.googleapis.com/minikube/k8sReleases/v1.3.0/localkube-linux-amd64)")
startCmd.Flags().String(containerRuntime,"","The container runtime to be used")
startCmd.Flags().String(containerRuntime,"","The container runtime to be used")
startCmd.Flags().String(networkPlugin,"","The name of the network plugin")
startCmd.Flags().String(networkPlugin,"","The name of the network plugin")
startCmd.Flags().String(featureGates,"","A set of key=value pairs that describe feature gates for alpha/experimental features.")