2016-02-20 01:48:53 +08:00
|
|
|
# Directory where the binaries will be installed
|
2015-11-24 23:55:53 +08:00
|
|
|
bin_dir: /usr/local/bin
|
|
|
|
|
|
|
|
# Where the binaries will be downloaded.
|
|
|
|
# Note: ensure that you've enough disk space (about 1G)
|
|
|
|
local_release_dir: "/tmp/releases"
|
2015-12-11 18:46:02 +08:00
|
|
|
|
2016-02-20 01:48:53 +08:00
|
|
|
# Uncomment this line for CoreOS only.
|
|
|
|
# Directory where python binary is installed
|
|
|
|
# ansible_python_interpreter: "/opt/bin/python"
|
|
|
|
|
2016-01-23 00:18:45 +08: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-13 02:32:18 +08:00
|
|
|
# Cluster Loglevel configuration
|
|
|
|
kube_log_level: 2
|
|
|
|
|
2015-12-11 18:46:02 +08:00
|
|
|
# Users to create for basic auth in Kubernetes API via HTTP
|
2016-05-05 15:00:02 +08:00
|
|
|
kube_api_pwd: "changeme"
|
2015-12-13 02:32:18 +08:00
|
|
|
kube_users:
|
2016-05-05 15:00:02 +08:00
|
|
|
kube:
|
|
|
|
pass: "{{kube_api_pwd}}"
|
|
|
|
role: admin
|
|
|
|
root:
|
|
|
|
pass: "changeme"
|
|
|
|
role: admin
|
2015-12-11 18:46:02 +08:00
|
|
|
|
|
|
|
# Kubernetes cluster name, also will be used as DNS domain
|
2015-12-13 02:32:18 +08:00
|
|
|
cluster_name: cluster.local
|
2015-12-11 18:46:02 +08:00
|
|
|
|
2016-01-27 04:41:42 +08: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-02-10 02:55:57 +08:00
|
|
|
# Choose network plugin (calico, weave or flannel)
|
2016-03-07 23:07:00 +08:00
|
|
|
kube_network_plugin: flannel
|
2016-01-30 23:04:47 +08:00
|
|
|
|
2015-12-11 18:46:02 +08:00
|
|
|
# Kubernetes internal network for services, unused block of space.
|
2015-12-13 02:32:18 +08:00
|
|
|
kube_service_addresses: 10.233.0.0/18
|
2015-12-11 18:46:02 +08: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-13 02:32:18 +08:00
|
|
|
kube_pods_subnet: 10.233.64.0/18
|
2015-12-11 18:46:02 +08: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-13 02:32:18 +08:00
|
|
|
kube_network_node_prefix: 24
|
2015-12-11 18:46:02 +08:00
|
|
|
|
|
|
|
# With calico it is possible to distributed routes with border routers of the datacenter.
|
2015-12-13 02:32:18 +08:00
|
|
|
peer_with_router: false
|
2015-12-11 18:46:02 +08: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
|
|
|
|
|
|
|
|
# The port the API Server will be listening on.
|
2015-12-13 02:32:18 +08:00
|
|
|
kube_apiserver_ip: "{{ kube_service_addresses|ipaddr('net')|ipaddr(1)|ipaddr('address') }}"
|
|
|
|
kube_apiserver_port: 443 # (https)
|
|
|
|
kube_apiserver_insecure_port: 8080 # (http)
|
2015-12-11 18:46:02 +08: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.
|
|
|
|
# You still must manually configure all your containers to use this DNS server,
|
|
|
|
# Kubernetes won't do this for you (yet).
|
|
|
|
|
|
|
|
# Upstream dns servers used by dnsmasq
|
2015-12-13 02:32:18 +08:00
|
|
|
upstream_dns_servers:
|
|
|
|
- 8.8.8.8
|
2016-05-17 19:19:13 +08:00
|
|
|
- 8.8.4.4
|
2015-12-11 18:46:02 +08:00
|
|
|
#
|
|
|
|
# # Use dns server : https://github.com/ansibl8s/k8s-skydns/blob/master/skydns-README.md
|
2015-12-13 02:32:18 +08:00
|
|
|
dns_setup: true
|
|
|
|
dns_domain: "{{ cluster_name }}"
|
2015-12-11 18:46:02 +08:00
|
|
|
#
|
2016-03-18 22:07:33 +08:00
|
|
|
# # Ip address of the kubernetes skydns service
|
|
|
|
skydns_server: "{{ kube_service_addresses|ipaddr('net')|ipaddr(3)|ipaddr('address') }}"
|
2015-12-24 20:58:04 +08:00
|
|
|
dns_server: "{{ kube_service_addresses|ipaddr('net')|ipaddr(2)|ipaddr('address') }}"
|
2015-12-15 22:20:08 +08:00
|
|
|
|
2016-03-24 00:27:06 +08:00
|
|
|
# There are some changes specific to the cloud providers
|
|
|
|
# for instance we need to encapsulate packets with some network plugins
|
2016-03-29 20:50:22 +08:00
|
|
|
# If set the possible values are either 'gce', 'aws' or 'openstack'
|
|
|
|
# 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-03-24 00:27:06 +08:00
|
|
|
# cloud_provider:
|
|
|
|
|
2015-12-15 22:20:08 +08:00
|
|
|
# For multi masters architecture:
|
|
|
|
# kube-proxy doesn't support multiple apiservers for the time being so you'll need to configure your own loadbalancer
|
|
|
|
# This domain name will be inserted into the /etc/hosts file of all servers
|
2015-12-16 00:01:29 +08:00
|
|
|
# configuration example with haproxy :
|
|
|
|
# listen kubernetes-apiserver-https
|
2015-12-15 22:20:08 +08:00
|
|
|
# bind 10.99.0.21:8383
|
|
|
|
# option ssl-hello-chk
|
|
|
|
# mode tcp
|
|
|
|
# timeout client 3h
|
|
|
|
# timeout server 3h
|
|
|
|
# server master1 10.99.0.26:443
|
|
|
|
# server master2 10.99.0.27:443
|
|
|
|
# balance roundrobin
|
2015-12-16 00:01:29 +08:00
|
|
|
# apiserver_loadbalancer_domain_name: "lb-apiserver.kubernetes.local"
|
2016-05-11 06:49:27 +08:00
|
|
|
|
|
|
|
##Set these proxy values in order to update docker daemon to use proxies
|
|
|
|
#http_proxy: ""
|
|
|
|
#https_proxy: ""
|
|
|
|
#no_proxy: ""
|