summaryrefslogtreecommitdiffstats
path: root/roles/openshift_node
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
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')
-rw-r--r--roles/openshift_node/defaults/main.yml4
-rw-r--r--roles/openshift_node/templates/node.yaml.v1.j21
-rw-r--r--roles/openshift_node/templates/partials/kubeletArguments.j25
3 files changed, 10 insertions, 0 deletions
diff --git a/roles/openshift_node/defaults/main.yml b/roles/openshift_node/defaults/main.yml
index be51195f2..1dbcc4301 100644
--- a/roles/openshift_node/defaults/main.yml
+++ b/roles/openshift_node/defaults/main.yml
@@ -6,3 +6,7 @@ os_firewall_allow:
port: 80/tcp
- service: https
port: 443/tcp
+- service: Openshift kubelet ReadOnlyPort
+ port: 10255/tcp
+- service: Openshift kubelet ReadOnlyPort udp
+ port: 10255/udp
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