File tree Expand file tree Collapse file tree 3 files changed +5
-0
lines changed
kubernetes/control-plane/templates
kubespray_defaults/defaults/main Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,9 @@ apiServer:
109
109
etcd-compaction-interval: "{{ kube_apiserver_etcd_compaction_interval }}"
110
110
default-not-ready-toleration-seconds: "{{ kube_apiserver_pod_eviction_not_ready_timeout_seconds }}"
111
111
default-unreachable-toleration-seconds: "{{ kube_apiserver_pod_eviction_unreachable_timeout_seconds }}"
112
+ {% if kube_api_anonymous_auth is defined %}
112
113
anonymous-auth: "{{ kube_api_anonymous_auth }}"
114
+ {% endif %}
113
115
{% if kube_apiserver_use_authorization_config_file %}
114
116
authorization-config: "{{ kube_config_dir }}/apiserver-authorization-config-{{ kube_apiserver_authorization_config_api_version }}.yaml"
115
117
{% else %}
Original file line number Diff line number Diff line change @@ -131,8 +131,10 @@ apiServer:
131
131
value: "{{ kube_apiserver_pod_eviction_not_ready_timeout_seconds }}"
132
132
- name: default-unreachable-toleration-seconds
133
133
value: "{{ kube_apiserver_pod_eviction_unreachable_timeout_seconds }}"
134
+ {% if kube_api_anonymous_auth is defined %}
134
135
- name: anonymous-auth
135
136
value: "{{ kube_api_anonymous_auth }}"
137
+ {% endif %}
136
138
{% if kube_apiserver_use_authorization_config_file %}
137
139
- name: authorization-config
138
140
value: "{{ kube_config_dir }}/apiserver-authorization-config-{{ kube_apiserver_authorization_config_api_version }}.yaml"
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ ping_access_ip: true
11
11
12
12
# Setting this value to false will fail
13
13
# For details, read this comment https://github.com/kubernetes-sigs/kubespray/pull/11016#issuecomment-2004985001
14
+ # if kube_api_anonymous_auth: "{{ undef() }}", remove --anonymous-auth argument
14
15
kube_api_anonymous_auth : true
15
16
16
17
# Default value, but will be set to true automatically if detected
You can’t perform that action at this time.
0 commit comments