2016-12-07 16:16:06 +00:00
|
|
|
# Valid bootstrap options (required): ubuntu, coreos, centos, none
|
2016-09-06 14:04:41 +00:00
|
|
|
bootstrap_os: none
|
|
|
|
|
2016-02-19 17:48:53 +00:00
|
|
|
# Directory where the binaries will be installed
|
2015-11-24 15:55:53 +00:00
|
|
|
bin_dir: /usr/local/bin
|
|
|
|
|
2016-12-13 10:43:06 +00:00
|
|
|
# Kubernetes configuration dirs and system namespace.
|
|
|
|
# Those are where all the additional config stuff goes
|
|
|
|
# the kubernetes normally puts in /srv/kubernets.
|
|
|
|
# This puts them in a sane location and namespace.
|
|
|
|
# Editting those values will almost surely break something.
|
|
|
|
kube_config_dir: /etc/kubernetes
|
|
|
|
kube_script_dir: "{{ bin_dir }}/kubernetes-scripts"
|
|
|
|
kube_manifest_dir: "{{ kube_config_dir }}/manifests"
|
|
|
|
system_namespace: kube-system
|
|
|
|
|
|
|
|
# This is where all the cert scripts and certs will be located
|
|
|
|
kube_cert_dir: "{{ kube_config_dir }}/ssl"
|
|
|
|
|
|
|
|
# This is where all of the bearer tokens will be stored
|
|
|
|
kube_token_dir: "{{ kube_config_dir }}/tokens"
|
|
|
|
|
|
|
|
# This is where to save basic auth file
|
|
|
|
kube_users_dir: "{{ kube_config_dir }}/users"
|
|
|
|
|
2016-12-09 09:33:04 +00:00
|
|
|
## Change this to use another Kubernetes version, e.g. a current beta release
|
2016-12-16 12:53:25 +00:00
|
|
|
kube_version: v1.5.1
|
2016-12-09 09:33:04 +00:00
|
|
|
|
2015-11-24 15:55:53 +00:00
|
|
|
# Where the binaries will be downloaded.
|
|
|
|
# Note: ensure that you've enough disk space (about 1G)
|
|
|
|
local_release_dir: "/tmp/releases"
|
2016-09-15 09:23:27 +00:00
|
|
|
# Random shifts for retrying failed ops like pushing/downloading
|
|
|
|
retry_stagger: 5
|
2015-12-11 10:46:02 +00:00
|
|
|
|
2016-02-19 17:48:53 +00:00
|
|
|
# Uncomment this line for CoreOS only.
|
|
|
|
# Directory where python binary is installed
|
|
|
|
# ansible_python_interpreter: "/opt/bin/python"
|
|
|
|
|
2016-01-22 16:18:45 +00:00
|
|
|
# This is the group that the cert creation scripts chgrp the
|
|
|
|
# cert files to. Not really changable...
|
|
|
|
kube_cert_group: kube-cert
|
|
|
|
|
2015-12-12 18:32:18 +00:00
|
|
|
# Cluster Loglevel configuration
|
|
|
|
kube_log_level: 2
|
|
|
|
|
2016-12-13 16:06:53 +00:00
|
|
|
# Kubernetes 1.5 added a new flag to the apiserver to disable anonymous auth. In previos versions, anonymous auth was
|
|
|
|
# not implemented. As the new flag defaults to true, we have to explicetely disable it. Change this line if you want the
|
|
|
|
# 1.5 default behavior. The flag is actually only added if the used kubernetes version is >= 1.5
|
|
|
|
kube_api_anonymous_auth: false
|
|
|
|
|
2015-12-11 10:46:02 +00:00
|
|
|
# Users to create for basic auth in Kubernetes API via HTTP
|
2016-05-05 07:00:02 +00:00
|
|
|
kube_api_pwd: "changeme"
|
2015-12-12 18:32:18 +00:00
|
|
|
kube_users:
|
2016-05-05 07:00:02 +00:00
|
|
|
kube:
|
|
|
|
pass: "{{kube_api_pwd}}"
|
|
|
|
role: admin
|
|
|
|
root:
|
2017-01-23 18:09:30 +00:00
|
|
|
pass: "{{kube_api_pwd}}"
|
2016-05-05 07:00:02 +00:00
|
|
|
role: admin
|
2015-12-11 10:46:02 +00:00
|
|
|
|
|
|
|
# Kubernetes cluster name, also will be used as DNS domain
|
2015-12-12 18:32:18 +00:00
|
|
|
cluster_name: cluster.local
|
2016-12-07 15:57:05 +00:00
|
|
|
# Subdomains of DNS domain to be resolved via /etc/resolv.conf for hostnet pods
|
|
|
|
ndots: 2
|
2016-09-30 15:23:47 +00:00
|
|
|
# Deploy netchecker app to verify DNS resolve as an HTTP service
|
|
|
|
deploy_netchecker: false
|
2015-12-11 10:46:02 +00:00
|
|
|
|
2016-01-26 20:41:42 +00:00
|
|
|
# For some environments, each node has a pubilcally accessible
|
|
|
|
# address and an address it should bind services to. These are
|
|
|
|
# really inventory level variables, but described here for consistency.
|
|
|
|
#
|
|
|
|
# When advertising access, the access_ip will be used, but will defer to
|
|
|
|
# ip and then the default ansible ip when unspecified.
|
|
|
|
#
|
|
|
|
# When binding to restrict access, the ip variable will be used, but will
|
|
|
|
# defer to the default ansible ip when unspecified.
|
|
|
|
#
|
|
|
|
# The ip variable is used for specific address binding, e.g. listen address
|
|
|
|
# for etcd. This is use to help with environments like Vagrant or multi-nic
|
|
|
|
# systems where one address should be preferred over another.
|
|
|
|
# ip: 10.2.2.2
|
|
|
|
#
|
|
|
|
# The access_ip variable is used to define how other nodes should access
|
|
|
|
# the node. This is used in flannel to allow other flannel nodes to see
|
|
|
|
# this node for example. The access_ip is really useful AWS and Google
|
|
|
|
# environments where the nodes are accessed remotely by the "public" ip,
|
|
|
|
# but don't know about that address themselves.
|
|
|
|
# access_ip: 1.1.1.1
|
|
|
|
|
2016-07-11 14:05:05 +00:00
|
|
|
# Etcd access modes:
|
|
|
|
# Enable multiaccess to configure clients to access all of the etcd members directly
|
|
|
|
# as the "http://hostX:port, http://hostY:port, ..." and ignore the proxy loadbalancers.
|
|
|
|
# This may be the case if clients support and loadbalance multiple etcd servers natively.
|
2016-11-09 10:31:12 +00:00
|
|
|
etcd_multiaccess: true
|
2016-07-11 14:05:05 +00:00
|
|
|
|
2016-09-28 11:05:08 +00:00
|
|
|
# Assume there are no internal loadbalancers for apiservers exist and listen on
|
|
|
|
# kube_apiserver_port (default 443)
|
|
|
|
loadbalancer_apiserver_localhost: true
|
2016-07-11 14:05:05 +00:00
|
|
|
|
2016-02-09 18:55:57 +00:00
|
|
|
# Choose network plugin (calico, weave or flannel)
|
2016-12-07 16:41:53 +00:00
|
|
|
# Can also be set to 'cloud', which lets the cloud provider setup appropriate routing
|
2016-03-07 15:07:00 +00:00
|
|
|
kube_network_plugin: flannel
|
2016-01-30 15:04:47 +00:00
|
|
|
|
2015-12-11 10:46:02 +00:00
|
|
|
# Kubernetes internal network for services, unused block of space.
|
2015-12-12 18:32:18 +00:00
|
|
|
kube_service_addresses: 10.233.0.0/18
|
2015-12-11 10:46:02 +00:00
|
|
|
|
|
|
|
# internal network. When used, it will assign IP
|
|
|
|
# addresses from this range to individual pods.
|
|
|
|
# This network must be unused in your network infrastructure!
|
2015-12-12 18:32:18 +00:00
|
|
|
kube_pods_subnet: 10.233.64.0/18
|
2015-12-11 10:46:02 +00:00
|
|
|
|
|
|
|
# internal network total size (optional). This is the prefix of the
|
|
|
|
# entire network. Must be unused in your environment.
|
|
|
|
# kube_network_prefix: 18
|
|
|
|
|
|
|
|
# internal network node size allocation (optional). This is the size allocated
|
|
|
|
# to each node on your network. With these defaults you should have
|
|
|
|
# room for 4096 nodes with 254 pods per node.
|
2015-12-12 18:32:18 +00:00
|
|
|
kube_network_node_prefix: 24
|
2015-12-11 10:46:02 +00:00
|
|
|
|
|
|
|
# With calico it is possible to distributed routes with border routers of the datacenter.
|
2015-12-12 18:32:18 +00:00
|
|
|
peer_with_router: false
|
2015-12-11 10:46:02 +00:00
|
|
|
# Warning : enabling router peering will disable calico's default behavior ('node mesh').
|
|
|
|
# The subnets of each nodes will be distributed by the datacenter router
|
|
|
|
|
2016-07-22 10:54:38 +00:00
|
|
|
# The port the API Server will be listening on.
|
|
|
|
kube_apiserver_ip: "{{ kube_service_addresses|ipaddr('net')|ipaddr(1)|ipaddr('address') }}"
|
|
|
|
kube_apiserver_port: 443 # (https)
|
|
|
|
kube_apiserver_insecure_port: 8080 # (http)
|
2017-01-15 05:38:07 +00:00
|
|
|
# local loadbalancer should use this port instead - default to kube_apiserver_port
|
|
|
|
nginx_kube_apiserver_port: "{{ kube_apiserver_port }}"
|
2016-07-22 10:54:38 +00:00
|
|
|
|
2015-12-11 10:46:02 +00:00
|
|
|
# Internal DNS configuration.
|
|
|
|
# Kubernetes can create and mainatain its own DNS server to resolve service names
|
|
|
|
# into appropriate IP addresses. It's highly advisable to run such DNS server,
|
|
|
|
# as it greatly simplifies configuration of your applications - you can use
|
|
|
|
# service names instead of magic environment variables.
|
|
|
|
|
2016-12-21 16:18:11 +00:00
|
|
|
# Can be dnsmasq_kubedns, kubedns or none
|
|
|
|
dns_mode: dnsmasq_kubedns
|
|
|
|
|
|
|
|
# Can be docker_dns, host_resolvconf or none
|
|
|
|
resolvconf_mode: docker_dns
|
|
|
|
|
|
|
|
## Upstream dns servers used by dnsmasq
|
2016-10-08 17:19:25 +00:00
|
|
|
#upstream_dns_servers:
|
|
|
|
# - 8.8.8.8
|
|
|
|
# - 8.8.4.4
|
2016-12-21 16:18:11 +00:00
|
|
|
|
2015-12-12 18:32:18 +00:00
|
|
|
dns_domain: "{{ cluster_name }}"
|
2016-12-21 16:18:11 +00:00
|
|
|
|
|
|
|
# Ip address of the kubernetes skydns service
|
2016-03-18 14:07:33 +00:00
|
|
|
skydns_server: "{{ kube_service_addresses|ipaddr('net')|ipaddr(3)|ipaddr('address') }}"
|
2015-12-24 12:58:04 +00:00
|
|
|
dns_server: "{{ kube_service_addresses|ipaddr('net')|ipaddr(2)|ipaddr('address') }}"
|
2015-12-15 14:20:08 +00:00
|
|
|
|
2016-03-23 16:27:06 +00:00
|
|
|
# There are some changes specific to the cloud providers
|
|
|
|
# for instance we need to encapsulate packets with some network plugins
|
2016-11-29 09:20:28 +00:00
|
|
|
# If set the possible values are either 'gce', 'aws', 'azure' or 'openstack'
|
2016-03-29 12:50:22 +00:00
|
|
|
# When openstack is used make sure to source in the openstack credentials
|
|
|
|
# like you would do when using nova-client before starting the playbook.
|
2016-11-29 09:20:28 +00:00
|
|
|
# When azure is used, you need to also set the following variables.
|
2016-03-23 16:27:06 +00:00
|
|
|
# cloud_provider:
|
|
|
|
|
2016-11-29 09:20:28 +00:00
|
|
|
# see docs/azure.md for details on how to get these values
|
|
|
|
#azure_tenant_id:
|
|
|
|
#azure_subscription_id:
|
|
|
|
#azure_aad_client_id:
|
|
|
|
#azure_aad_client_secret:
|
|
|
|
#azure_resource_group:
|
|
|
|
#azure_location:
|
|
|
|
#azure_subnet_name:
|
|
|
|
#azure_security_group_name:
|
|
|
|
#azure_vnet_name:
|
2016-12-09 13:06:48 +00:00
|
|
|
#azure_route_table_name:
|
2016-11-29 09:20:28 +00:00
|
|
|
|
|
|
|
|
2016-05-28 14:25:48 +00:00
|
|
|
## Set these proxy values in order to update docker daemon to use proxies
|
|
|
|
# http_proxy: ""
|
|
|
|
# https_proxy: ""
|
|
|
|
# no_proxy: ""
|
|
|
|
|
2016-11-04 21:40:14 +00:00
|
|
|
# Path used to store Docker data
|
|
|
|
docker_daemon_graph: "/var/lib/docker"
|
|
|
|
|
2016-05-28 14:25:48 +00:00
|
|
|
## A string of extra options to pass to the docker daemon.
|
|
|
|
## This string should be exactly as you wish it to appear.
|
|
|
|
## An obvious use case is allowing insecure-registry access
|
|
|
|
## to self hosted registries like so:
|
2016-11-04 21:40:14 +00:00
|
|
|
docker_options: "--insecure-registry={{ kube_service_addresses }} --graph={{ docker_daemon_graph }}"
|
2016-12-23 14:44:44 +00:00
|
|
|
docker_bin_dir: "/usr/bin"
|
2016-05-04 16:00:46 +00:00
|
|
|
|
2016-12-07 16:18:41 +00:00
|
|
|
## Uncomment this if you want to force overlay/overlay2 as docker storage driver
|
|
|
|
## Please note that overlay2 is only supported on newer kernels
|
|
|
|
#docker_storage_options: -s overlay2
|
|
|
|
|
2016-11-22 15:16:04 +00:00
|
|
|
# K8s image pull policy (imagePullPolicy)
|
|
|
|
k8s_image_pull_policy: IfNotPresent
|
|
|
|
|
2016-05-04 16:00:46 +00:00
|
|
|
# default packages to install within the cluster
|
2016-09-07 18:02:06 +00:00
|
|
|
kpm_packages: []
|
2016-05-04 16:00:46 +00:00
|
|
|
# - name: kube-system/grafana
|
2016-12-13 15:36:17 +00:00
|
|
|
|
2017-01-05 09:37:42 +00:00
|
|
|
# Settings for containerized control plane (etcd/kubelet)
|
2016-12-13 15:36:17 +00:00
|
|
|
rkt_version: 1.21.0
|
2016-12-13 17:20:22 +00:00
|
|
|
etcd_deployment_type: docker
|
2016-12-13 15:36:17 +00:00
|
|
|
kubelet_deployment_type: docker
|