Skip to content
Snippets Groups Projects
Commit bf3c6aee authored by Andreas Krüger's avatar Andreas Krüger Committed by Kubernetes Prow Robot
Browse files

Add kube anon auth settings to kubeadm config templates (#4713)

* Disable kube_api_anonymous_auth by default to secure the setup

* Disable metrics-server in addons. Health endpoint is slow and unstable

* Fix anonymous-auth missing in configuration

* Cleanup a bit

* Fix kube anon auth
parent 03bded2b
No related branches found
No related tags found
No related merge requests found
......@@ -50,6 +50,9 @@ certificatesDir: {{ kube_cert_dir }}
imageRepository: {{ kube_image_repo }}
unifiedControlPlaneImage: ""
apiServerExtraArgs:
{% if kube_api_anonymous_auth is defined and kube_version is version('v1.5', '>=') %}
anonymous-auth: "{{ kube_api_anonymous_auth }}"
{% endif %}
authorization-mode: {{ authorization_modes | join(',') }}
bind-address: {{ kube_apiserver_bind_address }}
{% if kube_apiserver_insecure_port|string != "0" %}
......
......@@ -47,6 +47,9 @@ imageRepository: {{ kube_image_repo }}
useHyperKubeImage: false
apiServer:
extraArgs:
{% if kube_api_anonymous_auth is defined and kube_version is version('v1.5', '>=') %}
anonymous-auth: "{{ kube_api_anonymous_auth }}"
{% endif %}
authorization-mode: {{ authorization_modes | join(',') }}
bind-address: {{ kube_apiserver_bind_address }}
{% if kube_apiserver_insecure_port|string != "0" %}
......
......@@ -90,6 +90,3 @@
with_nested:
- "{{ pod_names }}"
- "{{ pod_ips }}"
- name: Delete test namespace
shell: "{{ bin_dir }}/kubectl delete namespace test"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment