summaryrefslogtreecommitdiffstats
path: root/roles/openshift_node/templates
diff options
context:
space:
mode:
authorDiego Castro <spinolacastro@gmail.com>2015-08-13 12:19:20 -0300
committerDiego Castro <spinolacastro@gmail.com>2015-08-13 12:19:20 -0300
commita2e27c5925954ce04fca9c891099a6146a418222 (patch)
tree604ef05b2ad922883e946bdede6ca3ba511da230 /roles/openshift_node/templates
parent10b8c46d02d1ec9f4edf3df4b60e3bf533e73533 (diff)
downloadopenshift-a2e27c5925954ce04fca9c891099a6146a418222.tar.gz
openshift-a2e27c5925954ce04fca9c891099a6146a418222.tar.bz2
openshift-a2e27c5925954ce04fca9c891099a6146a418222.tar.xz
openshift-a2e27c5925954ce04fca9c891099a6146a418222.zip
Configure cluster metrics
Playbook based on https://docs.openshift.org/latest/admin_guide/cluster_metrics.html.
Diffstat (limited to 'roles/openshift_node/templates')
-rw-r--r--roles/openshift_node/templates/node.yaml.v1.j21
-rw-r--r--roles/openshift_node/templates/partials/kubeletArguments.j25
2 files changed, 6 insertions, 0 deletions
diff --git a/roles/openshift_node/templates/node.yaml.v1.j2 b/roles/openshift_node/templates/node.yaml.v1.j2
index 7778a2a61..a0a7e5098 100644
--- a/roles/openshift_node/templates/node.yaml.v1.j2
+++ b/roles/openshift_node/templates/node.yaml.v1.j2
@@ -18,3 +18,4 @@ servingInfo:
clientCA: ca.crt
keyFile: server.key
volumeDirectory: {{ openshift_data_dir }}/openshift.local.volumes
+{% include 'partials/kubeletArguments.j2' %} \ No newline at end of file
diff --git a/roles/openshift_node/templates/partials/kubeletArguments.j2 b/roles/openshift_node/templates/partials/kubeletArguments.j2
new file mode 100644
index 000000000..6c3bd04c5
--- /dev/null
+++ b/roles/openshift_node/templates/partials/kubeletArguments.j2
@@ -0,0 +1,5 @@
+{% if openshift.common.use_cluster_metrics | bool %}
+kubeletArguments:
+ "read-only-port":
+ - "10255"
+{% endif %} \ No newline at end of file