summaryrefslogtreecommitdiffstats
path: root/roles/openshift_node
diff options
context:
space:
mode:
authorThomas Wiest <twiest@users.noreply.github.com>2015-08-14 16:24:06 -0400
committerThomas Wiest <twiest@users.noreply.github.com>2015-08-14 16:24:06 -0400
commit624a942cb5335fe0afdccd285ffddbab63c1be15 (patch)
tree04c4aae497b82066b217255f9515535733f406cb /roles/openshift_node
parent9e46630560431c8fb45db5e12472300731f75e6d (diff)
parent800256e451b112d3cd7c2356615572c0de3c3840 (diff)
downloadopenshift-624a942cb5335fe0afdccd285ffddbab63c1be15.tar.gz
openshift-624a942cb5335fe0afdccd285ffddbab63c1be15.tar.bz2
openshift-624a942cb5335fe0afdccd285ffddbab63c1be15.tar.xz
openshift-624a942cb5335fe0afdccd285ffddbab63c1be15.zip
Merge pull request #460 from detiber/serverArgs
Add support for setting kubeletArguments, controllerArguments, and apiServerArguments
Diffstat (limited to 'roles/openshift_node')
-rw-r--r--roles/openshift_node/tasks/main.yml1
-rw-r--r--roles/openshift_node/templates/node.yaml.v1.j23
2 files changed, 4 insertions, 0 deletions
diff --git a/roles/openshift_node/tasks/main.yml b/roles/openshift_node/tasks/main.yml
index e84e74b40..3225645a2 100644
--- a/roles/openshift_node/tasks/main.yml
+++ b/roles/openshift_node/tasks/main.yml
@@ -33,6 +33,7 @@
registry_url: "{{ oreg_url | default(none) }}"
debug_level: "{{ openshift_node_debug_level | default(openshift.common.debug_level) }}"
portal_net: "{{ openshift_master_portal_net | default(None) }}"
+ kubelet_args: "{{ openshift_node_kubelet_args | default(None) }}"
# TODO: add the validate parameter when there is a validation command to run
- name: Create the Node config
diff --git a/roles/openshift_node/templates/node.yaml.v1.j2 b/roles/openshift_node/templates/node.yaml.v1.j2
index 7778a2a61..e6f75a4c0 100644
--- a/roles/openshift_node/templates/node.yaml.v1.j2
+++ b/roles/openshift_node/templates/node.yaml.v1.j2
@@ -8,6 +8,9 @@ imageConfig:
format: {{ openshift.node.registry_url }}
latest: false
kind: NodeConfig
+{% if openshift.common.kubelet_args is defined and openshift.common.kubelet_args %}
+kubeletArguments: {{ kubelet_args }}
+{% endif %}
masterKubeConfig: system:node:{{ openshift.common.hostname }}.kubeconfig
networkPluginName: {{ openshift.common.sdn_network_plugin_name }}
nodeName: {{ openshift.common.hostname }}