start

Starts a local Kubernetes cluster

minikube start

Starts a local Kubernetes cluster

Synopsis

Starts a local Kubernetes cluster

  1. minikube start [flags]

Options

  1. --addons minikube addons list Enable addons. see minikube addons list for a list of valid addon names.
  2. --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 [])
  3. --apiserver-name string 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 (default "minikubeCA")
  4. --apiserver-names strings 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
  5. --apiserver-port int The apiserver listening port (default 8443)
  6. --auto-update-drivers If set, automatically updates drivers to the latest version. Defaults to true. (default true)
  7. --base-image string The base image to use for docker/podman drivers. Intended for local development. (default "gcr.io/k8s-minikube/kicbase:v0.0.29@sha256:be897edc9ed473a9678010f390a0092f488f6a1c30865f571c3b6388f9f56f9b")
  8. --binary-mirror string Location to fetch kubectl, kubelet, & kubeadm binaries from.
  9. --cache-images If true, cache docker images for the current bootstrapper and load them into the machine. Always false with --driver=none. (default true)
  10. --cert-expiration duration Duration until minikube certificate expiration, defaults to three years (26280h). (default 26280h0m0s)
  11. --cni string CNI plug-in to use. Valid options: auto, bridge, calico, cilium, flannel, kindnet, or path to a CNI manifest (default: auto)
  12. --container-runtime string The container runtime to be used (docker, cri-o, containerd). (default "docker")
  13. --cpus string Number of CPUs allocated to Kubernetes. Use "max" to use the maximum number of CPUs. (default "2")
  14. --cri-socket string The cri socket path to be used.
  15. --delete-on-failure If set, delete the current cluster if start fails and try again. Defaults to false.
  16. --disable-driver-mounts Disables the filesystem mounts provided by the hypervisors
  17. --disable-optimizations 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.
  18. --disk-size string Disk size allocated to the minikube VM (format: <number>[<unit>], where unit = b, k, m or g). (default "20000mb")
  19. --dns-domain string The cluster dns domain name used in the Kubernetes cluster (default "cluster.local")
  20. --dns-proxy Enable proxy for NAT DNS requests (virtualbox driver only)
  21. --docker-env stringArray Environment variables to pass to the Docker daemon. (format: key=value)
  22. --docker-opt stringArray Specify arbitrary flags to pass to the Docker daemon. (format: key=value)
  23. --download-only If true, only download and cache files for later use - don't install or start anything.
  24. --driver string Used to specify the driver to run Kubernetes in. The list of available drivers depends on operating system.
  25. --dry-run dry-run mode. Validates configuration, but does not mutate system state
  26. --embed-certs if true, will embed the certs in kubeconfig.
  27. --enable-default-cni DEPRECATED: Replaced by --cni=bridge
  28. --extra-config ExtraOption A set of key=value pairs that describe configuration that may be passed to different components.
  29. The key should be '.' separated, and the first part before the dot is the component to apply the configuration to.
  30. Valid components are: kubelet, kubeadm, apiserver, controller-manager, etcd, proxy, scheduler
  31. 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
  32. --extra-disks int Number of extra disks created and attached to the minikube VM (currently only implemented for hyperkit and kvm2 drivers)
  33. --feature-gates string A set of key=value pairs that describe feature gates for alpha/experimental features.
  34. --force Force minikube to perform possibly dangerous operations
  35. --force-systemd If set, force the container runtime to use systemd as cgroup manager. Defaults to false.
  36. --host-dns-resolver Enable host resolver for NAT DNS requests (virtualbox driver only) (default true)
  37. --host-only-cidr string The CIDR to be used for the minikube VM (virtualbox driver only) (default "192.168.59.1/24")
  38. --host-only-nic-type string NIC Type used for host only network. One of Am79C970A, Am79C973, 82540EM, 82543GC, 82545EM, or virtio (virtualbox driver only) (default "virtio")
  39. --hyperkit-vpnkit-sock string 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)
  40. --hyperkit-vsock-ports strings List of guest VSock ports that should be exposed as sockets on the host (hyperkit driver only)
  41. --hyperv-external-adapter string External Adapter on which external switch will be created if no external switch is found. (hyperv driver only)
  42. --hyperv-use-external-switch Whether to use external switch over Default Switch if virtual switch not explicitly specified. (hyperv driver only)
  43. --hyperv-virtual-switch string The hyperv virtual switch name. Defaults to first found. (hyperv driver only)
  44. --image-mirror-country string Country code of the image mirror to be used. Leave empty to use the global one. For Chinese mainland users, set it to cn.
  45. --image-repository string 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
  46. --insecure-registry strings Insecure Docker registries to pass to the Docker daemon. The default service CIDR range will automatically be added.
  47. --install-addons If set, install addons. Defaults to true. (default true)
  48. --interactive Allow user prompts for more information (default true)
  49. --iso-url strings Locations to fetch the minikube ISO from. (default [https://storage.googleapis.com/minikube/iso/minikube-v1.25.0.iso,https://github.com/kubernetes/minikube/releases/download/v1.25.0/minikube-v1.25.0.iso,https://kubernetes.oss-cn-hangzhou.aliyuncs.com/minikube/iso/minikube-v1.25.0.iso])
  50. --keep-context This will keep the existing kubectl context and will create a minikube context.
  51. --kubernetes-version string The Kubernetes version that the minikube VM will use (ex: v1.2.3, 'stable' for v1.23.2, 'latest' for v1.23.3-rc.0). Defaults to 'stable'.
  52. --kvm-gpu Enable experimental NVIDIA GPU support in minikube
  53. --kvm-hidden Hide the hypervisor signature from the guest in minikube (kvm2 driver only)
  54. --kvm-network string The KVM default network name. (kvm2 driver only) (default "default")
  55. --kvm-numa-count int Simulate numa node count in minikube, supported numa node count range is 1-8 (kvm2 driver only) (default 1)
  56. --kvm-qemu-uri string The KVM QEMU connection URI. (kvm2 driver only) (default "qemu:///system")
  57. --listen-address string IP Address to use to expose ports (docker and podman driver only)
  58. --memory string 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.
  59. --mount This will start the mount daemon and automatically mount files into minikube.
  60. --mount-9p-version string Specify the 9p version that the mount should use (default "9p2000.L")
  61. --mount-gid string Default group id used for the mount (default "docker")
  62. --mount-ip string Specify the ip that the mount should be setup on
  63. --mount-msize int The number of bytes to use for 9p packet payload (default 262144)
  64. --mount-options strings Additional mount options, such as cache=fscache
  65. --mount-port uint16 Specify the port that the mount should be setup on, where 0 means any free port.
  66. --mount-string string The argument to pass the minikube mount command on start.
  67. --mount-type string Specify the mount filesystem type (supported types: 9p) (default "9p")
  68. --mount-uid string Default user id used for the mount (default "docker")
  69. --namespace string The named space to activate after start (default "default")
  70. --nat-nic-type string NIC Type used for nat network. One of Am79C970A, Am79C973, 82540EM, 82543GC, 82545EM, or virtio (virtualbox driver only) (default "virtio")
  71. --native-ssh 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'. (default true)
  72. --network string network to run minikube with. Now it is used by docker/podman and KVM drivers. If left empty, minikube will create a new network.
  73. --network-plugin string Kubelet network plug-in to use (default: auto)
  74. --nfs-share strings Local folders to share with Guest via NFS mounts (hyperkit driver only)
  75. --nfs-shares-root string Where to root the NFS Shares, defaults to /nfsshares (hyperkit driver only) (default "/nfsshares")
  76. --no-kubernetes If set, minikube VM/container will start without starting or configuring Kubernetes. (only works on new clusters)
  77. --no-vtx-check Disable checking for the availability of hardware virtualization before the vm is started (virtualbox driver only)
  78. -n, --nodes int The number of nodes to spin up. Defaults to 1. (default 1)
  79. -o, --output string Format to print stdout in. Options include: [text,json] (default "text")
  80. --ports strings List of ports that should be exposed (docker and podman driver only)
  81. --preload If set, download tarball of preloaded images if available to improve start time. Defaults to true. (default true)
  82. --registry-mirror strings Registry mirrors to pass to the Docker daemon
  83. --service-cluster-ip-range string The CIDR to be used for service cluster IPs. (default "10.96.0.0/12")
  84. --ssh-ip-address string IP address (ssh driver only)
  85. --ssh-key string SSH key (ssh driver only)
  86. --ssh-port int SSH port (ssh driver only) (default 22)
  87. --ssh-user string SSH user (ssh driver only) (default "root")
  88. --trace string Send trace events. Options include: [gcp]
  89. --uuid string Provide VM UUID to restore MAC address (hyperkit driver only)
  90. --vm Filter to use only VM Drivers
  91. --vm-driver driver DEPRECATED, use driver instead.
  92. --wait strings 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' (default [apiserver,system_pods])
  93. --wait-timeout duration max time to wait per Kubernetes or host to be healthy. (default 6m0s)

Options inherited from parent commands

  1. --add_dir_header If true, adds the file directory to the header of the log messages
  2. --alsologtostderr log to standard error as well as files
  3. -b, --bootstrapper string The name of the cluster bootstrapper that will set up the Kubernetes cluster. (default "kubeadm")
  4. -h, --help
  5. --log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0)
  6. --log_dir string If non-empty, write log files in this directory
  7. --log_file string If non-empty, use this log file
  8. --log_file_max_size uint Defines the maximum size a log file can grow to. Unit is megabytes. If the value is 0, the maximum file size is unlimited. (default 1800)
  9. --logtostderr log to standard error instead of files
  10. --one_output If true, only write logs to their native severity level (vs also writing to each lower severity level)
  11. -p, --profile string The name of the minikube VM being used. This can be set to allow having multiple instances of minikube independently. (default "minikube")
  12. --skip_headers If true, avoid header prefixes in the log messages
  13. --skip_log_headers If true, avoid headers when opening log files
  14. --stderrthreshold severity logs at or above this threshold go to stderr (default 2)
  15. --user string Specifies the user executing the operation. Useful for auditing operations executed by 3rd party tools. Defaults to the operating system username.
  16. -v, --v Level number for the log level verbosity
  17. --vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging

Last modified January 24, 2022: generate-docs (398906ebd)