From 1568cbe8e9a65ccdb9075ad0b2e6f2ce0729bba4 Mon Sep 17 00:00:00 2001 From: Smaine Kahlouch Date: Sat, 12 Dec 2015 18:24:21 +0100 Subject: [PATCH] optionnal api runtime extensions --- .../master/templates/manifests/kube-apiserver.manifest.j2 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/kubernetes/master/templates/manifests/kube-apiserver.manifest.j2 b/roles/kubernetes/master/templates/manifests/kube-apiserver.manifest.j2 index 320594fa4..8ada4bc3e 100644 --- a/roles/kubernetes/master/templates/manifests/kube-apiserver.manifest.j2 +++ b/roles/kubernetes/master/templates/manifests/kube-apiserver.manifest.j2 @@ -20,6 +20,11 @@ spec: - --tls-private-key-file={{ kube_cert_dir }}/apiserver-key.pem - --service-account-key-file={{ kube_cert_dir }}/apiserver-key.pem - --secure-port={{ kube_apiserver_port }} +{% if kube_api_runtime_config is defined %} +{% for conf in kube_api_runtime_config %} + - --runtime-config={{ conf }} +{% endfor %} +{% endif %} - --token-auth-file={{ kube_token_dir }}/known_tokens.csv - --v={{ kube_log_level | default('2') }} - --allow-privileged=true