2017-08-24 09:09:52 +00:00
|
|
|
---
|
2018-12-25 07:06:27 +00:00
|
|
|
# disable upgrade cluster
|
|
|
|
upgrade_cluster_setup: false
|
|
|
|
|
2019-06-20 18:12:51 +00:00
|
|
|
# Enable kubeadm experimental control plane
|
|
|
|
kubeadm_control_plane: false
|
|
|
|
|
|
|
|
# Experimental kubeadm etcd deployment mode. Available only for new deployment
|
|
|
|
etcd_kubeadm_enabled: false
|
|
|
|
|
2016-08-25 09:16:14 +00:00
|
|
|
# An experimental dev/test only dynamic volumes provisioner,
|
|
|
|
# for PetSets. Works for kube>=v1.3 only.
|
|
|
|
kube_hostpath_dynamic_provisioner: "false"
|
2016-10-24 13:11:52 +00:00
|
|
|
|
|
|
|
# change to 0.0.0.0 to enable insecure access from anywhere (not recommended)
|
|
|
|
kube_apiserver_insecure_bind_address: 127.0.0.1
|
|
|
|
|
2017-11-29 15:24:02 +00:00
|
|
|
# By default the external API listens on all interfaces, this can be changed to
|
|
|
|
# listen on a specific address/interface.
|
|
|
|
kube_apiserver_bind_address: 0.0.0.0
|
|
|
|
|
2016-11-18 12:56:55 +00:00
|
|
|
# A port range to reserve for services with NodePort visibility.
|
|
|
|
# Inclusive at both ends of the range.
|
|
|
|
kube_apiserver_node_port_range: "30000-32767"
|
|
|
|
|
2017-03-06 10:22:13 +00:00
|
|
|
# ETCD backend for k8s data
|
|
|
|
kube_apiserver_storage_backend: etcd3
|
|
|
|
|
2017-03-30 13:08:13 +00:00
|
|
|
# By default, force back to etcd2. Set to true to force etcd3 (experimental!)
|
|
|
|
force_etcd3: false
|
|
|
|
|
2019-04-19 13:01:54 +00:00
|
|
|
kube_etcd_cacert_file: ca.pem
|
|
|
|
kube_etcd_cert_file: node-{{ inventory_hostname }}.pem
|
|
|
|
kube_etcd_key_file: node-{{ inventory_hostname }}-key.pem
|
|
|
|
|
2019-01-08 04:41:54 +00:00
|
|
|
# Associated interfaces must be reachable by the rest of the cluster, and by
|
|
|
|
# CLI/web clients.
|
|
|
|
kube_controller_manager_bind_address: 0.0.0.0
|
|
|
|
kube_scheduler_bind_address: 0.0.0.0
|
|
|
|
|
2019-04-19 13:01:54 +00:00
|
|
|
# discovery_timeout modifies the discovery timeout
|
|
|
|
discovery_timeout: 5m0s
|
|
|
|
|
2018-08-15 08:41:13 +00:00
|
|
|
# audit support
|
|
|
|
kubernetes_audit: false
|
2018-08-20 05:00:53 +00:00
|
|
|
# path to audit log file
|
2018-08-15 08:41:13 +00:00
|
|
|
audit_log_path: /var/log/audit/kube-apiserver-audit.log
|
|
|
|
# num days
|
|
|
|
audit_log_maxage: 30
|
|
|
|
# the num of audit logs to retain
|
|
|
|
audit_log_maxbackups: 1
|
2018-08-22 16:16:13 +00:00
|
|
|
# the max size in MB to retain
|
2018-08-15 08:41:13 +00:00
|
|
|
audit_log_maxsize: 100
|
|
|
|
# policy file
|
|
|
|
audit_policy_file: "{{ kube_config_dir }}/audit-policy/apiserver-audit-policy.yaml"
|
2018-08-20 05:04:56 +00:00
|
|
|
# custom audit policy rules (to replace the default ones)
|
2018-08-21 07:04:04 +00:00
|
|
|
# audit_policy_custom_rules: |
|
2018-08-20 05:04:56 +00:00
|
|
|
# - level: None
|
|
|
|
# users: []
|
|
|
|
# verbs: []
|
|
|
|
# resources: []
|
2018-08-15 08:41:13 +00:00
|
|
|
|
|
|
|
# audit log hostpath
|
|
|
|
audit_log_name: audit-logs
|
|
|
|
audit_log_hostpath: /var/log/kubernetes/audit
|
2018-08-16 10:51:09 +00:00
|
|
|
audit_log_mountpath: "{{ audit_log_path | dirname }}"
|
2018-08-15 08:41:13 +00:00
|
|
|
|
|
|
|
# audit policy hostpath
|
|
|
|
audit_policy_name: audit-policy
|
2018-08-16 10:51:09 +00:00
|
|
|
audit_policy_hostpath: "{{ audit_policy_file | dirname }}"
|
2018-08-15 08:41:13 +00:00
|
|
|
audit_policy_mountpath: "{{ audit_policy_hostpath }}"
|
|
|
|
|
2016-12-23 14:44:44 +00:00
|
|
|
# Limits for kube components
|
|
|
|
kube_controller_memory_limit: 512M
|
|
|
|
kube_controller_cpu_limit: 250m
|
2017-03-23 09:11:30 +00:00
|
|
|
kube_controller_memory_requests: 100M
|
2016-12-23 14:44:44 +00:00
|
|
|
kube_controller_cpu_requests: 100m
|
2017-02-07 14:01:02 +00:00
|
|
|
kube_controller_node_monitor_grace_period: 40s
|
|
|
|
kube_controller_node_monitor_period: 5s
|
|
|
|
kube_controller_pod_eviction_timeout: 5m0s
|
2018-09-24 09:17:18 +00:00
|
|
|
kube_controller_terminated_pod_gc_threshold: 12500
|
2016-12-23 14:44:44 +00:00
|
|
|
kube_scheduler_memory_limit: 512M
|
|
|
|
kube_scheduler_cpu_limit: 250m
|
|
|
|
kube_scheduler_memory_requests: 170M
|
2017-03-23 09:11:30 +00:00
|
|
|
kube_scheduler_cpu_requests: 80m
|
2016-12-23 14:44:44 +00:00
|
|
|
kube_apiserver_memory_limit: 2000M
|
|
|
|
kube_apiserver_cpu_limit: 800m
|
|
|
|
kube_apiserver_memory_requests: 256M
|
2017-03-23 09:11:30 +00:00
|
|
|
kube_apiserver_cpu_requests: 100m
|
2018-09-24 09:17:18 +00:00
|
|
|
kube_apiserver_request_timeout: "1m0s"
|
2017-02-27 12:24:21 +00:00
|
|
|
|
2018-08-06 18:50:48 +00:00
|
|
|
# 1.9 and below Admission control plug-ins
|
2017-04-17 02:03:45 +00:00
|
|
|
kube_apiserver_admission_control:
|
|
|
|
- NamespaceLifecycle
|
|
|
|
- LimitRanger
|
|
|
|
- ServiceAccount
|
|
|
|
- DefaultStorageClass
|
2019-04-04 09:36:50 +00:00
|
|
|
- PersistentVolumeClaimResize
|
2017-12-20 10:48:09 +00:00
|
|
|
- >-
|
2018-10-16 22:33:30 +00:00
|
|
|
{%- if kube_version is version('v1.9', '<') -%}
|
2017-12-20 10:48:09 +00:00
|
|
|
GenericAdmissionWebhook
|
|
|
|
{%- else -%}
|
2018-04-10 15:17:39 +00:00
|
|
|
MutatingAdmissionWebhook,ValidatingAdmissionWebhook
|
2017-12-20 10:48:09 +00:00
|
|
|
{%- endif -%}
|
2017-10-24 16:28:07 +00:00
|
|
|
- ResourceQuota
|
2017-10-13 14:42:54 +00:00
|
|
|
|
2018-08-03 18:58:03 +00:00
|
|
|
# 1.10+ admission plugins
|
2018-08-06 17:54:20 +00:00
|
|
|
kube_apiserver_enable_admission_plugins: []
|
2018-08-03 18:58:03 +00:00
|
|
|
|
|
|
|
# 1.10+ list of disabled admission plugins
|
|
|
|
kube_apiserver_disable_admission_plugins: []
|
|
|
|
|
2017-10-13 14:42:54 +00:00
|
|
|
# extra runtime config
|
2019-04-19 13:01:54 +00:00
|
|
|
kube_api_runtime_config: []
|
2017-02-27 13:15:50 +00:00
|
|
|
|
|
|
|
## Enable/Disable Kube API Server Authentication Methods
|
2017-10-15 19:41:17 +00:00
|
|
|
kube_basic_auth: false
|
|
|
|
kube_token_auth: false
|
2017-02-27 13:15:50 +00:00
|
|
|
kube_oidc_auth: false
|
2018-12-26 09:52:53 +00:00
|
|
|
kube_webhook_token_auth: false
|
2017-02-27 13:15:50 +00:00
|
|
|
|
2017-02-27 12:24:21 +00:00
|
|
|
## Variables for OpenID Connect Configuration https://kubernetes.io/docs/admin/authentication/
|
|
|
|
## To use OpenID you have to deploy additional an OpenID Provider (e.g Dex, Keycloak, ...)
|
2017-02-27 13:15:50 +00:00
|
|
|
|
2017-08-24 09:09:52 +00:00
|
|
|
# kube_oidc_url: https:// ...
|
2017-02-27 12:24:21 +00:00
|
|
|
# kube_oidc_client_id: kubernetes
|
|
|
|
## Optional settings for OIDC
|
|
|
|
# kube_oidc_username_claim: sub
|
2018-04-23 03:17:00 +00:00
|
|
|
# kube_oidc_username_prefix: oidc:
|
2017-02-27 12:24:21 +00:00
|
|
|
# kube_oidc_groups_claim: groups
|
2018-04-23 03:17:00 +00:00
|
|
|
# kube_oidc_groups_prefix: oidc:
|
2019-04-24 16:40:01 +00:00
|
|
|
# Copy oidc CA file to the following path if needed
|
|
|
|
# kube_oidc_ca_file: {{ kube_cert_dir }}/ca.pem
|
|
|
|
# Optionally include a base64-encoded oidc CA cert
|
|
|
|
# kube_oidc_ca_cert: c3RhY2thYnVzZS5jb20...
|
2017-04-14 21:33:04 +00:00
|
|
|
|
2018-12-26 09:52:53 +00:00
|
|
|
## Variables for webhook token auth https://kubernetes.io/docs/reference/access-authn-authz/authentication/#webhook-token-authentication
|
|
|
|
# kube_webhook_token_auth_url: https://...
|
|
|
|
|
2017-08-24 09:09:52 +00:00
|
|
|
## Variables for custom flags
|
2017-04-14 21:33:04 +00:00
|
|
|
apiserver_custom_flags: []
|
|
|
|
|
2017-07-12 07:51:12 +00:00
|
|
|
# List of the preferred NodeAddressTypes to use for kubelet connections.
|
|
|
|
kubelet_preferred_address_types: 'InternalDNS,InternalIP,Hostname,ExternalDNS,ExternalIP'
|
|
|
|
|
2017-04-14 21:33:04 +00:00
|
|
|
controller_mgr_custom_flags: []
|
|
|
|
|
2017-06-27 04:27:25 +00:00
|
|
|
scheduler_custom_flags: []
|
2017-09-13 18:00:51 +00:00
|
|
|
|
2018-02-05 13:49:13 +00:00
|
|
|
## Extra args for k8s components passing by kubeadm
|
2018-02-12 07:29:46 +00:00
|
|
|
kube_kubeadm_apiserver_extra_args: {}
|
2018-02-05 13:49:13 +00:00
|
|
|
kube_kubeadm_controller_extra_args: {}
|
|
|
|
kube_kubeadm_scheduler_extra_args: {}
|
2018-01-18 10:55:23 +00:00
|
|
|
|
2018-11-29 07:16:55 +00:00
|
|
|
## Extra control plane host volume mounts
|
|
|
|
## Example:
|
2018-12-18 08:34:19 +00:00
|
|
|
# apiserver_extra_volumes:
|
2018-11-29 07:16:55 +00:00
|
|
|
# - name: name
|
|
|
|
# hostPath: /host/path
|
|
|
|
# mountPath: /mount/path
|
2019-01-10 02:43:35 +00:00
|
|
|
# readOnly: true
|
2018-11-29 07:16:55 +00:00
|
|
|
apiserver_extra_volumes: {}
|
|
|
|
controller_manager_extra_volumes: {}
|
|
|
|
scheduler_extra_volumes: {}
|
|
|
|
|
2018-03-15 19:20:05 +00:00
|
|
|
## Encrypting Secret Data at Rest
|
|
|
|
kube_encrypt_secret_data: false
|
2018-09-03 16:04:50 +00:00
|
|
|
kube_encrypt_token: "{{ lookup('password', credentials_dir + '/kube_encrypt_token.creds length=32 chars=ascii_letters,digits') }}"
|
2018-03-28 14:30:00 +00:00
|
|
|
# Must be either: aescbc, secretbox or aesgcm
|
|
|
|
kube_encryption_algorithm: "aescbc"
|
2018-05-11 16:11:38 +00:00
|
|
|
|
|
|
|
# You may want to use ca.pem depending on your situation
|
|
|
|
kube_front_proxy_ca: "front-proxy-ca.pem"
|
2018-11-07 20:38:19 +00:00
|
|
|
|
|
|
|
# If non-empty, will use this string as identification instead of the actual hostname
|
|
|
|
kube_override_hostname: >-
|
|
|
|
{%- if cloud_provider is defined and cloud_provider in [ 'aws' ] -%}
|
|
|
|
{%- else -%}
|
|
|
|
{{ inventory_hostname }}
|
|
|
|
{%- endif -%}
|
2019-02-19 15:31:45 +00:00
|
|
|
|
|
|
|
secrets_encryption_query: "resources[*].providers[0].{{kube_encryption_algorithm}}.keys[0].secret"
|