Samuel Liu
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
6 additions and
0 deletions
-
roles/kubernetes/control-plane/defaults/main/main.yml
-
roles/kubernetes/control-plane/templates/kubeadm-config.v1beta3.yaml.j2
|
|
@ -15,6 +15,9 @@ kube_apiserver_node_port_range: "30000-32767" |
|
|
|
# ETCD backend for k8s data |
|
|
|
kube_apiserver_storage_backend: etcd3 |
|
|
|
|
|
|
|
# The interval of compaction requests. If 0, the compaction request from apiserver is disabled. |
|
|
|
kube_apiserver_etcd_compaction_interval: "5m0s" |
|
|
|
|
|
|
|
# CIS 1.2.26 |
|
|
|
# Validate that the service account token |
|
|
|
# in the request is actually present in etcd. |
|
|
|
|
|
@ -114,6 +114,9 @@ certificatesDir: {{ kube_cert_dir }} |
|
|
|
imageRepository: {{ kube_image_repo }} |
|
|
|
apiServer: |
|
|
|
extraArgs: |
|
|
|
{% if kube_apiserver_etcd_compaction_interval is defined %} |
|
|
|
etcd-compaction-interval: "{{ kube_apiserver_etcd_compaction_interval }}" |
|
|
|
{% endif %} |
|
|
|
{% if kube_apiserver_pod_eviction_not_ready_timeout_seconds is defined %} |
|
|
|
default-not-ready-toleration-seconds: "{{ kube_apiserver_pod_eviction_not_ready_timeout_seconds }}" |
|
|
|
{% endif %} |
|
|
|