Merge "[ceph] Use Helm toolkit functions for Ceph probes"
This commit is contained in:
commit
dc200450ea
@ -15,6 +15,6 @@ apiVersion: v1
|
||||
appVersion: v1.0.0
|
||||
description: OpenStack-Helm Ceph Client
|
||||
name: ceph-client
|
||||
version: 0.1.46
|
||||
version: 0.1.47
|
||||
home: https://github.com/ceph/ceph-client
|
||||
...
|
||||
|
@ -12,6 +12,16 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/}}
|
||||
|
||||
{{- define "livenessProbeTemplate" }}
|
||||
tcpSocket:
|
||||
port: 6800
|
||||
{{- end }}
|
||||
|
||||
{{- define "readinessProbeTemplate" }}
|
||||
tcpSocket:
|
||||
port: 6800
|
||||
{{- end }}
|
||||
|
||||
{{- if and .Values.manifests.deployment_mds ( and .Values.deployment.ceph .Values.conf.features.mds) }}
|
||||
{{- $envAll := . }}
|
||||
|
||||
@ -100,15 +110,8 @@ spec:
|
||||
value: {{ tuple "ceph_mon" "internal" "mon_msgr2" $envAll | include "helm-toolkit.endpoints.endpoint_port_lookup" | quote }}
|
||||
ports:
|
||||
- containerPort: 6800
|
||||
livenessProbe:
|
||||
tcpSocket:
|
||||
port: 6800
|
||||
initialDelaySeconds: 60
|
||||
timeoutSeconds: 5
|
||||
readinessProbe:
|
||||
tcpSocket:
|
||||
port: 6800
|
||||
timeoutSeconds: 5
|
||||
{{ dict "envAll" . "component" "ceph" "container" "ceph-mds" "type" "liveness" "probeTemplate" (include "livenessProbeTemplate" . | fromYaml) | include "helm-toolkit.snippets.kubernetes_probe" | trim | indent 10 }}
|
||||
{{ dict "envAll" . "component" "ceph" "container" "ceph-mds" "type" "readiness" "probeTemplate" (include "readinessProbeTemplate" . | fromYaml) | include "helm-toolkit.snippets.kubernetes_probe" | trim | indent 10 }}
|
||||
volumeMounts:
|
||||
- name: pod-tmp
|
||||
mountPath: /tmp
|
||||
|
@ -179,6 +179,18 @@ pod:
|
||||
key: node.kubernetes.io/unreachable
|
||||
operator: Exists
|
||||
tolerationSeconds: 60
|
||||
probes:
|
||||
ceph:
|
||||
ceph-mds:
|
||||
readiness:
|
||||
enabled: true
|
||||
params:
|
||||
timeoutSeconds: 5
|
||||
liveness:
|
||||
enabled: true
|
||||
params:
|
||||
initialDelaySeconds: 60
|
||||
timeoutSeconds: 5
|
||||
|
||||
secrets:
|
||||
keyrings:
|
||||
|
@ -15,6 +15,6 @@ apiVersion: v1
|
||||
appVersion: v1.0.0
|
||||
description: OpenStack-Helm Ceph Mon
|
||||
name: ceph-mon
|
||||
version: 0.1.29
|
||||
version: 0.1.30
|
||||
home: https://github.com/ceph/ceph
|
||||
...
|
||||
|
@ -12,6 +12,18 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/}}
|
||||
|
||||
{{- define "monLivenessProbeTemplate" -}}
|
||||
exec:
|
||||
command:
|
||||
- /tmp/mon-check.sh
|
||||
{{- end -}}
|
||||
|
||||
{{- define "monReadinessProbeTemplate" -}}
|
||||
exec:
|
||||
command:
|
||||
- /tmp/mon-check.sh
|
||||
{{- end -}}
|
||||
|
||||
{{- if and .Values.manifests.daemonset_mon .Values.deployment.ceph }}
|
||||
{{- $envAll := . }}
|
||||
|
||||
@ -175,20 +187,8 @@ spec:
|
||||
ports:
|
||||
- containerPort: {{ tuple "ceph_mon" "internal" "mon" $envAll | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
||||
- containerPort: {{ tuple "ceph_mon" "internal" "mon_msgr2" $envAll | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
||||
livenessProbe:
|
||||
exec:
|
||||
command:
|
||||
- /tmp/mon-check.sh
|
||||
- liveness
|
||||
initialDelaySeconds: 360
|
||||
periodSeconds: 180
|
||||
readinessProbe:
|
||||
exec:
|
||||
command:
|
||||
- /tmp/mon-check.sh
|
||||
- readiness
|
||||
initialDelaySeconds: 60
|
||||
periodSeconds: 60
|
||||
{{ dict "envAll" . "component" "ceph" "container" "ceph-mon" "type" "liveness" "probeTemplate" (include "monLivenessProbeTemplate" . | fromYaml) | include "helm-toolkit.snippets.kubernetes_probe" | trim | indent 10 }}
|
||||
{{ dict "envAll" . "component" "ceph" "container" "ceph-mon" "type" "readiness" "probeTemplate" (include "monReadinessProbeTemplate" . | fromYaml) | include "helm-toolkit.snippets.kubernetes_probe" | trim | indent 10 }}
|
||||
volumeMounts:
|
||||
- name: pod-tmp
|
||||
mountPath: /tmp
|
||||
|
@ -12,6 +12,18 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/}}
|
||||
|
||||
{{- define "mgrLivenessProbeTemplate" -}}
|
||||
exec:
|
||||
command:
|
||||
- /tmp/mgr-check.sh
|
||||
{{- end }}
|
||||
|
||||
{{- define "mgrReadinessProbeTemplate" -}}
|
||||
exec:
|
||||
command:
|
||||
- /tmp/mgr-check.sh
|
||||
{{- end }}
|
||||
|
||||
{{- if and .Values.manifests.deployment_mgr (and .Values.deployment.ceph .Values.conf.features.mgr ) }}
|
||||
{{- $envAll := . }}
|
||||
|
||||
@ -126,20 +138,6 @@ spec:
|
||||
- name: metrics
|
||||
containerPort: {{ tuple "ceph_mgr" "internal" "metrics" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
||||
{{ end -}}
|
||||
livenessProbe:
|
||||
exec:
|
||||
command:
|
||||
- /tmp/mgr-check.sh
|
||||
- liveness
|
||||
initialDelaySeconds: 30
|
||||
timeoutSeconds: 5
|
||||
readinessProbe:
|
||||
exec:
|
||||
command:
|
||||
- /tmp/mgr-check.sh
|
||||
- readiness
|
||||
initialDelaySeconds: 30
|
||||
timeoutSeconds: 5
|
||||
volumeMounts:
|
||||
- name: pod-tmp
|
||||
mountPath: /tmp
|
||||
@ -177,6 +175,8 @@ spec:
|
||||
mountPath: /tmp/utils-checkPGs.py
|
||||
subPath: utils-checkPGs.py
|
||||
readOnly: true
|
||||
{{ dict "envAll" . "component" "ceph" "container" "ceph-mgr" "type" "liveness" "probeTemplate" (include "mgrLivenessProbeTemplate" . | fromYaml) | include "helm-toolkit.snippets.kubernetes_probe" | trim | indent 10 }}
|
||||
{{ dict "envAll" . "component" "ceph" "container" "ceph-mgr" "type" "readiness" "probeTemplate" (include "mgrReadinessProbeTemplate" . | fromYaml) | include "helm-toolkit.snippets.kubernetes_probe" | trim | indent 10 }}
|
||||
volumes:
|
||||
- name: pod-tmp
|
||||
emptyDir: {}
|
||||
|
@ -207,6 +207,32 @@ pod:
|
||||
key: node.kubernetes.io/unreachable
|
||||
operator: Exists
|
||||
tolerationSeconds: 60
|
||||
probes:
|
||||
ceph:
|
||||
ceph-mon:
|
||||
readiness:
|
||||
enabled: true
|
||||
params:
|
||||
initialDelaySeconds: 60
|
||||
periodSeconds: 60
|
||||
timeoutSeconds: 5
|
||||
liveness:
|
||||
enabled: true
|
||||
params:
|
||||
initialDelaySeconds: 360
|
||||
periodSeconds: 180
|
||||
timeoutSeconds: 5
|
||||
ceph-mgr:
|
||||
readiness:
|
||||
enabled: true
|
||||
params:
|
||||
initialDelaySeconds: 30
|
||||
timeoutSeconds: 5
|
||||
liveness:
|
||||
enabled: true
|
||||
params:
|
||||
initialDelaySeconds: 30
|
||||
timeoutSeconds: 5
|
||||
|
||||
secrets:
|
||||
keyrings:
|
||||
|
@ -15,6 +15,6 @@ apiVersion: v1
|
||||
appVersion: v1.0.0
|
||||
description: OpenStack-Helm Ceph OSD
|
||||
name: ceph-osd
|
||||
version: 0.1.45
|
||||
version: 0.1.46
|
||||
home: https://github.com/ceph/ceph
|
||||
...
|
||||
|
@ -12,6 +12,18 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/}}
|
||||
|
||||
{{- define "osdLivenessProbeTemplate" -}}
|
||||
exec:
|
||||
command:
|
||||
- /tmp/osd-check.sh
|
||||
{{- end -}}
|
||||
|
||||
{{- define "osdReadinessProbeTemplate" -}}
|
||||
exec:
|
||||
command:
|
||||
- /tmp/osd-check.sh
|
||||
{{- end -}}
|
||||
|
||||
{{- if .Values.manifests.daemonset_osd }}
|
||||
{{- $envAll := . }}
|
||||
|
||||
@ -352,20 +364,8 @@ spec:
|
||||
exec:
|
||||
command:
|
||||
- /tmp/osd-stop.sh
|
||||
livenessProbe:
|
||||
exec:
|
||||
command:
|
||||
- /tmp/osd-check.sh
|
||||
- liveness
|
||||
initialDelaySeconds: 120
|
||||
periodSeconds: 60
|
||||
readinessProbe:
|
||||
exec:
|
||||
command:
|
||||
- /tmp/osd-check.sh
|
||||
- readiness
|
||||
initialDelaySeconds: 60
|
||||
periodSeconds: 60
|
||||
{{ dict "envAll" . "component" "ceph-osd" "container" "ceph-osd" "type" "liveness" "probeTemplate" (include "osdLivenessProbeTemplate" . | fromYaml) | include "helm-toolkit.snippets.kubernetes_probe" | trim | indent 10 }}
|
||||
{{ dict "envAll" . "component" "ceph-osd" "container" "ceph-osd" "type" "readiness" "probeTemplate" (include "osdReadinessProbeTemplate" . | fromYaml) | include "helm-toolkit.snippets.kubernetes_probe" | trim | indent 10 }}
|
||||
volumeMounts:
|
||||
- name: pod-tmp
|
||||
mountPath: /tmp
|
||||
|
@ -137,6 +137,21 @@ pod:
|
||||
limits:
|
||||
memory: "1024Mi"
|
||||
cpu: "2000m"
|
||||
probes:
|
||||
ceph-osd:
|
||||
ceph-osd:
|
||||
readiness:
|
||||
enabled: true
|
||||
params:
|
||||
initialDelaySeconds: 60
|
||||
periodSeconds: 60
|
||||
timeoutSeconds: 5
|
||||
liveness:
|
||||
enabled: true
|
||||
params:
|
||||
initialDelaySeconds: 120
|
||||
periodSeconds: 60
|
||||
timeoutSeconds: 5
|
||||
|
||||
secrets:
|
||||
keyrings:
|
||||
|
@ -47,4 +47,5 @@ ceph-client:
|
||||
- 0.1.44 Allow pg_num_min to be overridden per pool
|
||||
- 0.1.45 Update Ceph to 17.2.6
|
||||
- 0.1.46 Strip any errors preceding pool properties JSON
|
||||
- 0.1.47 Use Helm toolkit functions for Ceph probes
|
||||
...
|
||||
|
@ -30,4 +30,5 @@ ceph-mon:
|
||||
- 0.1.27 Update all Ceph images to Focal
|
||||
- 0.1.28 Document the use of mon_allow_pool_size_one
|
||||
- 0.1.29 Update Ceph to 17.2.6
|
||||
- 0.1.30 Use Helm tookkit functions for Ceph probes
|
||||
...
|
||||
|
@ -46,4 +46,5 @@ ceph-osd:
|
||||
- 0.1.43 Update all Ceph images to Focal
|
||||
- 0.1.44 Update Ceph to 17.2.6
|
||||
- 0.1.45 Extend the ceph-osd post-apply job PG wait
|
||||
- 0.1.46 Use Helm toolkit functions for Ceph probes
|
||||
...
|
||||
|
Loading…
Reference in New Issue
Block a user