Skip to content

Detailed description of a few selected arguments

This list is not the full list, but a few arguments that were chosen.


admin-access controls the CIDR which can access the admin endpoints (SSH to each node, HTTPS to the master).

If not specified, no IP level restrictions will apply (though there are still restrictions, for example you need a permitted SSH key to access the SSH service!).



--admin-access= to restrict to IPs in the CIDR

--admin-access= --admin-access= to restrict to IPs in the and CIDR blocks


See the docs in ../


dns-zone controls the Route53 hosted zone in which DNS records will be created. It can either be the name of the hosted zone (, or it can be the ID of the hosted zone (Z1GABCD1ABC2DEF)

Suppose you are creating a cluster named "`:

  • You can specify a (you can have subdomains in a hosted zone)
  • You could also use

You do have to set up the DNS nameservers so your hosted zone resolves. kOps used to create the hosted zone for you, but now (as you have to set up the nameservers anyway), there doesn't seem much reason to do so!

If you don't specify a dns-zone, kOps will list all your hosted zones, and choose the longest that is a suffix of your cluster name. So for, if you have, and, it would choose matches but is shorter; is not a suffix-match.

Examples: to use the hosted zone with a name of


cloud-labels specifies labels or tags for cloud provider resources managed by kOps. The supported format is a CSV list of key=value pairs. Keys and values must not contain embedded commas but they may contain equals signs ('=') as long as the field is quoted:

  • --cloud-labels "Project=\"Name=Foo Customer=Acme\",Owner=Jane Doe" will be parsed as {Project:"Name=Foo Customer=Acme", Owner: "Jane Doe"}

The exact allowed characters vary by cloud provider.




  • external updates are performed by an external system (or manually), should not be automatically applied

  • unset means to use the default policy, which is currently to apply OS security updates unless they require a reboot

Required packages are also updated during bootstrapping if the value is not set.


out determines the directory into which kOps will write the target output for Terraform. It defaults to out/terraform.

API only Arguments

Certain arguments can only be passed via the API, eg, kops edit cluster. The following documents some of the more interesting or lesser-known options. See the Cluster Spec page for more fields.


The apiserver can now select which type of kubelet-reported address to use for apiserver->node communications, using the --kubelet-preferred-address-types flag. (, @liggitt)


    - InternalIP
    - ExternalIP

More information about using YAML is available here.