minikube start --help
Jump to navigation
Jump to search
minikube start --help
Starts a local Kubernetes cluster Options: --addons=[]: Enable addons. see `minikube addons list` for a list of valid addon names. --apiserver-ips=[]: 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 --apiserver-name='minikubeCA': The authoritative apiserver hostname for apiserver certificates and connectivity. This can be used if you want to make the apiserver available from outside the machine --apiserver-names=[]: 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 --apiserver-port=8443: The apiserver listening port --auto-update-drivers=true: If set, automatically updates drivers to the latest version. Defaults to true. --base-image='gcr.io/k8s-minikube/kicbase:v0.0.30@sha256:02c921df998f95e849058af14de7045efc3954d90320967418a0d1f182bbc0b2': The base image to use for docker/podman drivers. Intended for local development. --binary-mirror='': Location to fetch kubectl, kubelet, & kubeadm binaries from. --cache-images=true: If true, cache docker images for the current bootstrapper and load them into the machine. Always false with --driver=none. --cert-expiration=26280h0m0s: Duration until minikube certificate expiration, defaults to three years (26280h). --cni='': CNI plug-in to use. Valid options: auto, bridge, calico, cilium, flannel, kindnet, or path to a CNI manifest (default: auto) --container-runtime='': The container runtime to be used. Valid options: docker, cri-o, containerd (default: auto) --cpus='2': Number of CPUs allocated to Kubernetes. Use "max" to use the maximum number of CPUs. --cri-socket='': The cri socket path to be used. --delete-on-failure=false: If set, delete the current cluster if start fails and try again. Defaults to false. --disable-driver-mounts=false: Disables the filesystem mounts provided by the hypervisors --disable-optimizations=false: If set, disables optimizations that are set for local Kubernetes. Including decreasing CoreDNS replicas from 2 to 1 and increasing kubeadm housekeeping-interval from 10s to 5m. Defaults to false. --disk-size='20000mb': Disk size allocated to the minikube VM (format: <number>[<unit>], where unit = b, k, m or g). --dns-domain='cluster.local': The cluster dns domain name used in the Kubernetes cluster --dns-proxy=false: Enable proxy for NAT DNS requests (virtualbox driver only) --docker-env=[]: Environment variables to pass to the Docker daemon. (format: key=value) --docker-opt=[]: Specify arbitrary flags to pass to the Docker daemon. (format: key=value) --download-only=false: If true, only download and cache files for later use - don't install or start anything. --driver='': Driver is one of: docker, podman (experimental), ssh (defaults to auto-detect) --dry-run=false: dry-run mode. Validates configuration, but does not mutate system state --embed-certs=false: if true, will embed the certs in kubeconfig. --enable-default-cni=false: DEPRECATED: Replaced by --cni=bridge --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. Valid components are: kubelet, kubeadm, apiserver, controller-manager, etcd, proxy, scheduler Valid kubeadm parameters: ignore-preflight-errors, dry-run, kubeconfig, kubeconfig-dir, node-name, cri-socket, experimental-upload-certs, certificate-key, rootfs, skip-phases, pod-network-cidr --extra-disks=0: Number of extra disks created and attached to the minikube VM (currently only implemented for hyperkit and kvm2 drivers) --feature-gates='': A set of key=value pairs that describe feature gates for alpha/experimental features. --force=false: Force minikube to perform possibly dangerous operations --force-systemd=false: If set, force the container runtime to use systemd as cgroup manager. Defaults to false. --host-dns-resolver=true: Enable host resolver for NAT DNS requests (virtualbox driver only) --host-only-cidr='192.168.59.1/24': The CIDR to be used for the minikube VM (virtualbox driver only) --host-only-nic-type='virtio': NIC Type used for host only network. One of Am79C970A, Am79C973, 82540EM, 82543GC, 82545EM, or virtio (virtualbox driver only) --hyperkit-vpnkit-sock='': Location of the VPNKit socket used for networking. If empty, disables Hyperkit VPNKitSock, if 'auto' uses Docker for Mac VPNKit connection, otherwise uses the specified VSock (hyperkit driver only) --hyperkit-vsock-ports=[]: List of guest VSock ports that should be exposed as sockets on the host (hyperkit driver only) --hyperv-external-adapter='': External Adapter on which external switch will be created if no external switch is found. (hyperv driver only) --hyperv-use-external-switch=false: Whether to use external switch over Default Switch if virtual switch not explicitly specified. (hyperv driver only) --hyperv-virtual-switch='': The hyperv virtual switch name. Defaults to first found. (hyperv driver only) --image-mirror-country='': Country code of the image mirror to be used. Leave empty to use the global one. For Chinese mainland users, set it to cn. --image-repository='': Alternative image repository to pull docker images from. This can be used when you have limited access to gcr.io. Set it to "auto" to let minikube decide one for you. For Chinese mainland users, you may use local gcr.io mirrors such as registry.cn-hangzhou.aliyuncs.com/google_containers --insecure-registry=[]: Insecure Docker registries to pass to the Docker daemon. The default service CIDR range will automatically be added. --install-addons=true: If set, install addons. Defaults to true. --interactive=true: Allow user prompts for more information --iso-url=[https://storage.googleapis.com/minikube/iso/minikube-v1.25.2.iso,https://github.com/kubernetes/minikube/releases/download/v1.25.2/minikube-v1.25.2.iso,https://kubernetes.oss-cn-hangzhou.aliyuncs.com/minikube/iso/minikube-v1.25.2.iso]: Locations to fetch the minikube ISO from. --keep-context=false: This will keep the existing kubectl context and will create a minikube context. --kubernetes-version='': The Kubernetes version that the minikube VM will use (ex: v1.2.3, 'stable' for v1.23.3, 'latest' for v1.23.4-rc.0). Defaults to 'stable'. --kvm-gpu=false: Enable experimental NVIDIA GPU support in minikube --kvm-hidden=false: Hide the hypervisor signature from the guest in minikube (kvm2 driver only) --kvm-network='default': The KVM default network name. (kvm2 driver only) --kvm-numa-count=1: Simulate numa node count in minikube, supported numa node count range is 1-8 (kvm2 driver only) --kvm-qemu-uri='qemu:///system': The KVM QEMU connection URI. (kvm2 driver only) --listen-address='': IP Address to use to expose ports (docker and podman driver only) --memory='': Amount of RAM to allocate to Kubernetes (format: <number>[<unit>], where unit = b, k, m or g). Use "max" to use the maximum amount of memory. --mount=false: This will start the mount daemon and automatically mount files into minikube. --mount-9p-version='9p2000.L': Specify the 9p version that the mount should use --mount-gid='docker': Default group id used for the mount --mount-ip='': Specify the ip that the mount should be setup on --mount-msize=262144: The number of bytes to use for 9p packet payload --mount-options=[]: Additional mount options, such as cache=fscache --mount-port=0: Specify the port that the mount should be setup on, where 0 means any free port. --mount-string='/Users:/minikube-host': The argument to pass the minikube mount command on start. --mount-type='9p': Specify the mount filesystem type (supported types: 9p) --mount-uid='docker': Default user id used for the mount --namespace='default': The named space to activate after start --nat-nic-type='virtio': NIC Type used for nat network. One of Am79C970A, Am79C973, 82540EM, 82543GC, 82545EM, or virtio (virtualbox driver only) --native-ssh=true: Use native Golang SSH client (default true). Set to 'false' to use the command line 'ssh' command when accessing the docker machine. Useful for the machine drivers when they will not start with 'Waiting for SSH'. --network='': network to run minikube with. Now it is used by docker/podman and KVM drivers. If left empty, minikube will create a new network. --network-plugin='': Kubelet network plug-in to use (default: auto) --nfs-share=[]: Local folders to share with Guest via NFS mounts (hyperkit driver only) --nfs-shares-root='/nfsshares': Where to root the NFS Shares, defaults to /nfsshares (hyperkit driver only) --no-kubernetes=false: If set, minikube VM/container will start without starting or configuring Kubernetes. (only works on new clusters) --no-vtx-check=false: Disable checking for the availability of hardware virtualization before the vm is started (virtualbox driver only) -n, --nodes=1: The number of nodes to spin up. Defaults to 1. -o, --output='text': Format to print stdout in. Options include: [text,json] --ports=[]: List of ports that should be exposed (docker and podman driver only) --preload=true: If set, download tarball of preloaded images if available to improve start time. Defaults to true. --registry-mirror=[]: Registry mirrors to pass to the Docker daemon --service-cluster-ip-range='10.96.0.0/12': The CIDR to be used for service cluster IPs. --ssh-ip-address='': IP address (ssh driver only) --ssh-key='': SSH key (ssh driver only) --ssh-port=22: SSH port (ssh driver only) --ssh-user='root': SSH user (ssh driver only) --trace='': Send trace events. Options include: [gcp] --uuid='': Provide VM UUID to restore MAC address (hyperkit driver only) --vm=false: Filter to use only VM Drivers --vm-driver='': DEPRECATED, use `driver` instead. --wait=[apiserver,system_pods]: comma separated list of Kubernetes components to verify and wait for after starting a cluster. defaults to "apiserver,system_pods", available options: "apiserver,system_pods,default_sa,apps_running,node_ready,kubelet" . other acceptable values are 'all' or 'none', 'true' and 'false' --wait-timeout=6m0s: max time to wait per Kubernetes or host to be healthy. Usage: minikube start [flags] [options] Use "minikube options" for a list of global command-line options (applies to all commands).
Related[edit]
See also[edit]
- minikube: [
status
|start
|stop
|version
|addons
|addons list
|addons enable
|dashboard
|logs
|tunnel
|ssh
|config
|image | delete
],config set
minikube start --vm=true
, kicbase,~/.minikube/, minikube --help
, Minikube changelog
Advertising: