1 # Valid bootstrap options (required): ubuntu, coreos, centos, none
4 #Directory where etcd data stored
5 etcd_data_dir: /var/lib/etcd
7 # Directory where the binaries will be installed
8 bin_dir: /usr/local/bin
10 ### OTHER OPTIONAL VARIABLES
11 ## For some things, kubelet needs to load kernel modules. For example, dynamic kernel services are needed
12 ## for mounting persistent volumes into containers. These may not be loaded by preinstall kubernetes
13 ## processes. For example, ceph and rbd backed volumes. Set to true to allow kubelet to load kernel
15 kubelet_load_modules: true
17 # Uncomment this if you have more than 3 nameservers, then we'll only use the first 3.
18 docker_dns_servers_strict: false
20 # Kubernetes configuration dirs and system namespace.
21 # Those are where all the additional config stuff goes
22 # kubernetes normally puts in /srv/kubernetes.
23 # This puts them in a sane location and namespace.
24 # Editing those values will almost surely break something.
25 kube_config_dir: /etc/kubernetes
26 kube_script_dir: "{{ bin_dir }}/kubernetes-scripts"
27 kube_manifest_dir: "{{ kube_config_dir }}/manifests"
28 system_namespace: kube-system
30 # Logging directory (sysvinit systems)
31 kube_log_dir: "/var/log/kubernetes"
33 # This is where all the cert scripts and certs will be located
34 kube_cert_dir: "{{ kube_config_dir }}/ssl"
36 # This is where all of the bearer tokens will be stored
37 kube_token_dir: "{{ kube_config_dir }}/tokens"
39 # This is where to save basic auth file
40 kube_users_dir: "{{ kube_config_dir }}/users"
42 kube_api_anonymous_auth: true
44 # Where the binaries will be downloaded.
45 # Note: ensure that you've enough disk space (about 1G)
46 local_release_dir: "/tmp/releases"
47 # Random shifts for retrying failed ops like pushing/downloading
50 # This is the group that the cert creation scripts chgrp the
51 # cert files to. Not really changable...
52 kube_cert_group: kube-cert
54 # Users to create for basic auth in Kubernetes API via HTTP
55 # Optionally add groups for user
56 kube_api_pwd: "secret"
59 pass: "{{kube_api_pwd}}"
64 ## It is possible to activate / deactivate selected authentication methods (basic auth, static token auth)
65 #kube_oidc_auth: false
69 # Choose network plugin (calico, contiv, weave or flannel)
70 # Can also be set to 'cloud', which lets the cloud provider setup appropriate routing
71 kube_network_plugin: flannel
73 # Enable kubernetes network policies
74 enable_network_policy: false
76 # Kubernetes internal network for services, unused block of space.
77 kube_service_addresses: 10.233.0.0/18
79 # internal network. When used, it will assign IP
80 # addresses from this range to individual pods.
81 # This network must be unused in your network infrastructure!
82 kube_pods_subnet: 10.233.64.0/18
84 # internal network node size allocation (optional). This is the size allocated
85 # to each node on your network. With these defaults you should have
86 # room for 4096 nodes with 254 pods per node.
87 kube_network_node_prefix: 24
89 # The port the API Server will be listening on.
90 kube_apiserver_ip: "{{ kube_service_addresses|ipaddr('net')|ipaddr(1)|ipaddr('address') }}"
91 kube_apiserver_port: 6443 # (https)
92 kube_apiserver_insecure_port: 8080 # (http)
95 # Kubernetes cluster name, also will be used as DNS domain
96 cluster_name: cluster.local
97 # Subdomains of DNS domain to be resolved via /etc/resolv.conf for hostnet pods
99 # Can be dnsmasq_kubedns, kubedns or none
101 # Can be docker_dns, host_resolvconf or none
102 resolvconf_mode: docker_dns
103 # Deploy netchecker app to verify DNS resolve as an HTTP service
104 deploy_netchecker: false
105 # Ip address of the kubernetes skydns service
106 skydns_server: "{{ kube_service_addresses|ipaddr('net')|ipaddr(3)|ipaddr('address') }}"
107 dnsmasq_dns_server: "{{ kube_service_addresses|ipaddr('net')|ipaddr(2)|ipaddr('address') }}"
108 dns_domain: "{{ cluster_name }}"
110 # Path used to store Docker data
111 docker_daemon_graph: "/var/lib/docker"
113 ## A string of extra options to pass to the docker daemon.
114 ## This string should be exactly as you wish it to appear.
115 ## An obvious use case is allowing insecure-registry access
116 ## to self hosted registries like so:
118 docker_options: "--insecure-registry={{ kube_service_addresses }} --graph={{ docker_daemon_graph }} {{ docker_log_opts }}"
119 docker_bin_dir: "/usr/bin"
121 # Settings for containerized control plane (etcd/kubelet/secrets)
122 etcd_deployment_type: docker
123 kubelet_deployment_type: host
124 vault_deployment_type: docker
125 helm_deployment_type: host
127 # K8s image pull policy (imagePullPolicy)
128 k8s_image_pull_policy: IfNotPresent
130 # Kubernetes dashboard
131 # RBAC required. see docs/getting-started.md for access details.
132 dashboard_enabled: true
134 # Monitoring apps for k8s
143 # Add Persistent Volumes Storage Class for corresponding cloud provider ( OpenStack is only supported now )
144 persistent_volumes_enabled: false
146 # Make a copy of kubeconfig on the host that runs Ansible in GITDIR/artifacts
147 kubeconfig_localhost: true
148 # Download kubectl onto the host that runs Ansible in GITDIR/artifacts
149 kubectl_localhost: false
150 artifacts_dir: "{{ ansible_env.HOME }}"
152 # Enable MountPropagation gate feature
153 local_volumes_enabled: true
155 ## Change this to use another Kubernetes version, e.g. a current beta release
156 kube_version: v1.11.2