File tree Expand file tree Collapse file tree 3 files changed +7
-0
lines changed
kubernetes/control-plane/templates
kubespray_defaults/defaults/main Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,10 @@ 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 %}
113
+ {# TODO: rework once suppport for structured auth lands #}
112
114
anonymous-auth: "{{ kube_api_anonymous_auth }}"
115
+ {% endif %}
113
116
{% if kube_apiserver_use_authorization_config_file %}
114
117
authorization-config: "{{ kube_config_dir }}/apiserver-authorization-config-{{ kube_apiserver_authorization_config_api_version }}.yaml"
115
118
{% else %}
Original file line number Diff line number Diff line change @@ -131,8 +131,11 @@ 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 %}
135
+ {# TODO: rework once suppport for structured auth lands #}
134
136
- name: anonymous-auth
135
137
value: "{{ kube_api_anonymous_auth }}"
138
+ {% endif %}
136
139
{% if kube_apiserver_use_authorization_config_file %}
137
140
- name: authorization-config
138
141
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