From 3a9f1a2b34d87b8efd364f45c81668604fca80bf Mon Sep 17 00:00:00 2001 From: okozachenko Date: Thu, 20 Aug 2020 17:57:44 +0300 Subject: [PATCH] Change liveprobe from tcpSocket to httpGet Change-Id: I08af489840dd2eb7014df7b458ccecdbb024d377 --- openstack_operator/templates/barbican/daemonset.yml.j2 | 6 ++++-- openstack_operator/templates/glance/daemonset.yml.j2 | 6 ++++-- openstack_operator/templates/horizon/daemonset.yml.j2 | 6 ++++-- openstack_operator/templates/magnum/api/daemonset.yml.j2 | 6 ++++-- .../templates/neutron/daemonset-server.yml.j2 | 6 ++++-- openstack_operator/templates/placement/daemonset.yml.j2 | 6 ++++-- 6 files changed, 24 insertions(+), 12 deletions(-) diff --git a/openstack_operator/templates/barbican/daemonset.yml.j2 b/openstack_operator/templates/barbican/daemonset.yml.j2 index 18a821d5..fbd36477 100644 --- a/openstack_operator/templates/barbican/daemonset.yml.j2 +++ b/openstack_operator/templates/barbican/daemonset.yml.j2 @@ -67,10 +67,12 @@ spec: protocol: TCP containerPort: 9311 livenessProbe: - tcpSocket: + httpGet: + path: / port: barbican readinessProbe: - tcpSocket: + httpGet: + path: / port: barbican securityContext: runAsUser: 1001 diff --git a/openstack_operator/templates/glance/daemonset.yml.j2 b/openstack_operator/templates/glance/daemonset.yml.j2 index b3d65faf..dc907fd5 100644 --- a/openstack_operator/templates/glance/daemonset.yml.j2 +++ b/openstack_operator/templates/glance/daemonset.yml.j2 @@ -74,10 +74,12 @@ spec: protocol: TCP containerPort: 9292 livenessProbe: - tcpSocket: + httpGet: + path: / port: glance readinessProbe: - tcpSocket: + httpGet: + path: / port: glance securityContext: runAsUser: 1001 diff --git a/openstack_operator/templates/horizon/daemonset.yml.j2 b/openstack_operator/templates/horizon/daemonset.yml.j2 index 2b3872e8..c6c218c1 100644 --- a/openstack_operator/templates/horizon/daemonset.yml.j2 +++ b/openstack_operator/templates/horizon/daemonset.yml.j2 @@ -59,10 +59,12 @@ spec: protocol: TCP containerPort: 8000 livenessProbe: - tcpSocket: + httpGet: + path: / port: horizon readinessProbe: - tcpSocket: + httpGet: + path: / port: horizon lifecycle: preStop: diff --git a/openstack_operator/templates/magnum/api/daemonset.yml.j2 b/openstack_operator/templates/magnum/api/daemonset.yml.j2 index 51c76e02..4e93aca8 100644 --- a/openstack_operator/templates/magnum/api/daemonset.yml.j2 +++ b/openstack_operator/templates/magnum/api/daemonset.yml.j2 @@ -56,10 +56,12 @@ spec: protocol: TCP containerPort: 9511 livenessProbe: - tcpSocket: + httpGet: + path: / port: magnum-api readinessProbe: - tcpSocket: + httpGet: + path: / port: magnum-api lifecycle: preStop: diff --git a/openstack_operator/templates/neutron/daemonset-server.yml.j2 b/openstack_operator/templates/neutron/daemonset-server.yml.j2 index 140471ba..5868eb1e 100644 --- a/openstack_operator/templates/neutron/daemonset-server.yml.j2 +++ b/openstack_operator/templates/neutron/daemonset-server.yml.j2 @@ -76,10 +76,12 @@ spec: protocol: TCP containerPort: 9696 livenessProbe: - tcpSocket: + httpGet: + path: / port: neutron readinessProbe: - tcpSocket: + httpGet: + path: / port: neutron securityContext: runAsUser: 1001 diff --git a/openstack_operator/templates/placement/daemonset.yml.j2 b/openstack_operator/templates/placement/daemonset.yml.j2 index 8c165e1a..8452681a 100644 --- a/openstack_operator/templates/placement/daemonset.yml.j2 +++ b/openstack_operator/templates/placement/daemonset.yml.j2 @@ -59,10 +59,12 @@ spec: protocol: TCP containerPort: 8780 livenessProbe: - tcpSocket: + httpGet: + path: / port: placement readinessProbe: - tcpSocket: + httpGet: + path: / port: placement securityContext: runAsUser: 1001