From 4a839ec1116c90e3a77b009aef3249b2edcf6e92 Mon Sep 17 00:00:00 2001 From: "Simon L." Date: Tue, 3 Dec 2024 10:29:40 +0100 Subject: [PATCH 01/15] containers-schema.json: add healtcheck Signed-off-by: Simon L. --- php/containers-schema.json | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/php/containers-schema.json b/php/containers-schema.json index cf3f893f..7055d0db 100644 --- a/php/containers-schema.json +++ b/php/containers-schema.json @@ -94,6 +94,36 @@ } } }, + "healthcheck": { + "type": "object", + "additionalProperties": false, + "minProperties": 6, + "properties": { + "interval": { + "type": "string", + "pattern": "^[0-9]+s$" + }, + "timeout": { + "type": "string", + "pattern": "^[0-9]+s$" + }, + "retries": { + "type": "integer" + }, + "start_period": { + "type": "string", + "pattern": "^[0-9]+s$" + }, + "start_interval": { + "type": "string", + "pattern": "^[0-9]+s$" + }, + "test": { + "type": "string", + "pattern": "^.*$" + } + } + }, "aio_variables": { "type": "array", "items": { From 3afe1c0df4ab55d37d46efeba578602060cd767a Mon Sep 17 00:00:00 2001 From: "Simon L." Date: Tue, 3 Dec 2024 11:23:51 +0100 Subject: [PATCH 02/15] add healthcheck for apache Signed-off-by: Simon L. --- php/containers.json | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/php/containers.json b/php/containers.json index 17f60b2d..30428150 100644 --- a/php/containers.json +++ b/php/containers.json @@ -15,6 +15,14 @@ "image": "nextcloud/aio-apache", "user": "33", "init": true, + "healthcheck": { + "start_period": "0s", + "test": "/healthcheck.sh", + "interval": "30s", + "timeout": "30s", + "start_interval": "5s", + "retries": 3 + }, "ports": [ { "ip_binding": "%APACHE_IP_BINDING%", From 838db89315192fcbaa8c7e59adcfaccfdc45da5a Mon Sep 17 00:00:00 2001 From: "Simon L." Date: Tue, 3 Dec 2024 10:29:55 +0100 Subject: [PATCH 03/15] add healtcheck for clamav Signed-off-by: Simon L. --- php/containers.json | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/php/containers.json b/php/containers.json index 30428150..142f2772 100644 --- a/php/containers.json +++ b/php/containers.json @@ -599,6 +599,14 @@ "image": "nextcloud/aio-clamav", "user": "100", "init": false, + "healthcheck": { + "start_period": "360s", + "test": "clamdcheck.sh", + "interval": "30s", + "timeout": "30s", + "start_interval": "5s", + "retries": 3 + }, "expose": [ "3310" ], From fe3e640d19e255b1a84f1fa9353d8071d605e21f Mon Sep 17 00:00:00 2001 From: "Simon L." Date: Tue, 3 Dec 2024 11:30:23 +0100 Subject: [PATCH 04/15] add healthcheck for collabora Signed-off-by: Simon L. --- Containers/collabora/Dockerfile | 4 +++- Containers/collabora/healthcheck.sh | 3 +++ php/containers.json | 8 ++++++++ 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 Containers/collabora/healthcheck.sh diff --git a/Containers/collabora/Dockerfile b/Containers/collabora/Dockerfile index 40f2c4f6..3c709c35 100644 --- a/Containers/collabora/Dockerfile +++ b/Containers/collabora/Dockerfile @@ -15,7 +15,9 @@ RUN set -ex; \ ; \ rm -rf /var/lib/apt/lists/*; +COPY --chmod=775 healthcheck.sh /healthcheck.sh + USER 100 -HEALTHCHECK CMD nc -z 127.0.0.1 9980 || exit 1 +HEALTHCHECK --start-period=360s CMD /healthcheck.sh LABEL com.centurylinklabs.watchtower.enable="false" diff --git a/Containers/collabora/healthcheck.sh b/Containers/collabora/healthcheck.sh new file mode 100644 index 00000000..67cecdc3 --- /dev/null +++ b/Containers/collabora/healthcheck.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +nc -z 127.0.0.1 9980 || exit 1 diff --git a/php/containers.json b/php/containers.json index 142f2772..cdf9d73c 100644 --- a/php/containers.json +++ b/php/containers.json @@ -341,6 +341,14 @@ "display_name": "Collabora", "image": "nextcloud/aio-collabora", "init": true, + "healthcheck": { + "start_period": "360s", + "test": "/healthcheck.sh", + "interval": "30s", + "timeout": "30s", + "start_interval": "5s", + "retries": 3 + }, "expose": [ "9980" ], From f333f740e30f6411a16a36b7d8172bb213cd2eae Mon Sep 17 00:00:00 2001 From: "Simon L." Date: Tue, 3 Dec 2024 11:36:32 +0100 Subject: [PATCH 05/15] add healthcheck for fts Signed-off-by: Simon L. --- Containers/fulltextsearch/Dockerfile | 4 +++- Containers/fulltextsearch/healthcheck.sh | 3 +++ php/containers.json | 8 ++++++++ 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 Containers/fulltextsearch/healthcheck.sh diff --git a/Containers/fulltextsearch/Dockerfile b/Containers/fulltextsearch/Dockerfile index 571780ed..9b7804f7 100644 --- a/Containers/fulltextsearch/Dockerfile +++ b/Containers/fulltextsearch/Dockerfile @@ -16,7 +16,9 @@ RUN set -ex; \ ; \ rm -rf /var/lib/apt/lists/*; +COPY --chmod=775 healthcheck.sh /healthcheck.sh + USER 1000:0 -HEALTHCHECK CMD nc -z 127.0.0.1 9200 || exit 1 +HEALTHCHECK --interval=10s --timeout=5s --start-period=1m --retries=5 CMD /healthcheck.sh LABEL com.centurylinklabs.watchtower.enable="false" diff --git a/Containers/fulltextsearch/healthcheck.sh b/Containers/fulltextsearch/healthcheck.sh new file mode 100644 index 00000000..5e888ea6 --- /dev/null +++ b/Containers/fulltextsearch/healthcheck.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +nc -z 127.0.0.1 9200 || exit 1 diff --git a/php/containers.json b/php/containers.json index cdf9d73c..d99a1881 100644 --- a/php/containers.json +++ b/php/containers.json @@ -732,6 +732,14 @@ "display_name": "Fulltextsearch", "image": "nextcloud/aio-fulltextsearch", "init": false, + "healthcheck": { + "start_period": "60s", + "test": "/healthcheck.sh", + "interval": "10s", + "timeout": "5s", + "start_interval": "5s", + "retries": 5 + }, "expose": [ "9200" ], From b51223fd69178ddd42577fa16748fd51d5599152 Mon Sep 17 00:00:00 2001 From: "Simon L." Date: Tue, 3 Dec 2024 11:40:29 +0100 Subject: [PATCH 06/15] add healthcheck for imaginary Signed-off-by: Simon L. --- Containers/imaginary/Dockerfile | 5 +++-- Containers/imaginary/healthcheck.sh | 3 +++ php/containers.json | 8 ++++++++ 3 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 Containers/imaginary/healthcheck.sh diff --git a/Containers/imaginary/Dockerfile b/Containers/imaginary/Dockerfile index 20c90fa5..efe0ed70 100644 --- a/Containers/imaginary/Dockerfile +++ b/Containers/imaginary/Dockerfile @@ -1,7 +1,7 @@ # syntax=docker/dockerfile:latest FROM golang:1.23.3-alpine3.20 AS go -ENV IMAGINARY_HASH=8f36a26c448be8c151a3878404b75fcd1cd3cf0c +ENV IMAGINARY_HASH=8f36a26c448be8c151a3878404b75fcd1cd3cf0c RUN set -ex; \ apk add --no-cache \ @@ -30,6 +30,7 @@ RUN set -ex; \ COPY --from=go /go/bin/imaginary /usr/local/bin/imaginary COPY --chmod=775 start.sh /start.sh +COPY --chmod=775 healthcheck.sh /healthcheck.sh ENV PORT=9000 @@ -39,5 +40,5 @@ USER 65534 ENV MALLOC_ARENA_MAX=2 ENTRYPOINT ["/start.sh"] -HEALTHCHECK CMD nc -z 127.0.0.1 "$PORT" || exit 1 +HEALTHCHECK CMD /healthcheck.sh LABEL com.centurylinklabs.watchtower.enable="false" diff --git a/Containers/imaginary/healthcheck.sh b/Containers/imaginary/healthcheck.sh new file mode 100644 index 00000000..46d700fc --- /dev/null +++ b/Containers/imaginary/healthcheck.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +nc -z 127.0.0.1 "$PORT" || exit 1 diff --git a/php/containers.json b/php/containers.json index d99a1881..265010ed 100644 --- a/php/containers.json +++ b/php/containers.json @@ -696,6 +696,14 @@ "image": "nextcloud/aio-imaginary", "user": "65534", "init": true, + "healthcheck": { + "start_period": "0s", + "test": "/healthcheck.sh", + "interval": "30s", + "timeout": "30s", + "start_interval": "5s", + "retries": 3 + }, "expose": [ "9000" ], From a87459779b5349cc83767aa1ce5f0a6d82a2ed73 Mon Sep 17 00:00:00 2001 From: "Simon L." Date: Tue, 3 Dec 2024 13:37:07 +0100 Subject: [PATCH 07/15] add healthcheck for nextcloud Signed-off-by: Simon L. --- Containers/nextcloud/Dockerfile | 2 +- php/containers.json | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Containers/nextcloud/Dockerfile b/Containers/nextcloud/Dockerfile index 8ab0f9da..e4df8f2c 100644 --- a/Containers/nextcloud/Dockerfile +++ b/Containers/nextcloud/Dockerfile @@ -279,5 +279,5 @@ USER root ENTRYPOINT ["/start.sh"] CMD ["/usr/bin/supervisord", "-c", "/supervisord.conf"] -HEALTHCHECK --start-period=60s CMD sudo -E -u www-data bash /healthcheck.sh +HEALTHCHECK CMD /healthcheck.sh LABEL com.centurylinklabs.watchtower.enable="false" diff --git a/php/containers.json b/php/containers.json index 265010ed..f6c85b0c 100644 --- a/php/containers.json +++ b/php/containers.json @@ -148,6 +148,14 @@ "display_name": "Nextcloud", "image": "nextcloud/aio-nextcloud", "init": true, + "healthcheck": { + "start_period": "0s", + "test": "/healthcheck.sh", + "interval": "30s", + "timeout": "30s", + "start_interval": "5s", + "retries": 3 + }, "expose": [ "9000", "9001" From 827a27532d9827d2c14536cead56c300ea1beec6 Mon Sep 17 00:00:00 2001 From: "Simon L." Date: Tue, 3 Dec 2024 11:47:22 +0100 Subject: [PATCH 08/15] add healthcheck for notify-push Signed-off-by: Simon L. --- php/containers.json | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/php/containers.json b/php/containers.json index f6c85b0c..d66bdfb5 100644 --- a/php/containers.json +++ b/php/containers.json @@ -271,6 +271,14 @@ "image": "nextcloud/aio-notify-push", "user": "33", "init": true, + "healthcheck": { + "start_period": "0s", + "test": "/healthcheck.sh", + "interval": "30s", + "timeout": "30s", + "start_interval": "5s", + "retries": 3 + }, "expose": [ "7867" ], From 2cbe7d7d6a8b7afefcd899a12835fc92b686a21e Mon Sep 17 00:00:00 2001 From: "Simon L." Date: Tue, 3 Dec 2024 11:43:29 +0100 Subject: [PATCH 09/15] add healtcheck for oo Signed-off-by: Simon L. --- Containers/onlyoffice/Dockerfile | 4 +++- Containers/onlyoffice/healthcheck.sh | 3 +++ php/containers.json | 8 ++++++++ 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 Containers/onlyoffice/healthcheck.sh diff --git a/Containers/onlyoffice/Dockerfile b/Containers/onlyoffice/Dockerfile index 412ce054..bfecd246 100644 --- a/Containers/onlyoffice/Dockerfile +++ b/Containers/onlyoffice/Dockerfile @@ -4,5 +4,7 @@ FROM onlyoffice/documentserver:8.2.2.1 # USER root is probably used -HEALTHCHECK CMD nc -z 127.0.0.1 80 || exit 1 +COPY --chmod=775 healthcheck.sh /healthcheck.sh + +HEALTHCHECK --start-period=360s CMD /healthcheck.sh LABEL com.centurylinklabs.watchtower.enable="false" diff --git a/Containers/onlyoffice/healthcheck.sh b/Containers/onlyoffice/healthcheck.sh new file mode 100644 index 00000000..7a9d79d0 --- /dev/null +++ b/Containers/onlyoffice/healthcheck.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +nc -z 127.0.0.1 80 || exit 1 diff --git a/php/containers.json b/php/containers.json index d66bdfb5..1cea938f 100644 --- a/php/containers.json +++ b/php/containers.json @@ -670,6 +670,14 @@ "display_name": "OnlyOffice", "image": "nextcloud/aio-onlyoffice", "init": true, + "healthcheck": { + "start_period": "360s", + "test": "/healthcheck.sh", + "interval": "30s", + "timeout": "30s", + "start_interval": "5s", + "retries": 3 + }, "expose": [ "80" ], From b36cc2e2b08a5c242fcced4fc828273f87d15134 Mon Sep 17 00:00:00 2001 From: "Simon L." Date: Tue, 3 Dec 2024 11:48:49 +0100 Subject: [PATCH 10/15] add healthcheck for postgres Signed-off-by: Simon L. --- php/containers.json | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/php/containers.json b/php/containers.json index 1cea938f..b416a3dd 100644 --- a/php/containers.json +++ b/php/containers.json @@ -89,6 +89,14 @@ "image": "nextcloud/aio-postgresql", "user": "999", "init": true, + "healthcheck": { + "start_period": "0s", + "test": "/healthcheck.sh", + "interval": "30s", + "timeout": "30s", + "start_interval": "5s", + "retries": 3 + }, "expose": [ "5432" ], From aa0620f2eaa77a3d587be6e45a8c25d363e87894 Mon Sep 17 00:00:00 2001 From: "Simon L." Date: Tue, 3 Dec 2024 11:46:21 +0100 Subject: [PATCH 11/15] add healthcheck for redis Signed-off-by: Simon L. --- Containers/redis/Dockerfile | 4 +++- Containers/redis/healthcheck.sh | 3 +++ php/containers.json | 8 ++++++++ 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 Containers/redis/healthcheck.sh diff --git a/Containers/redis/Dockerfile b/Containers/redis/Dockerfile index 98fb8529..64b1c2fa 100644 --- a/Containers/redis/Dockerfile +++ b/Containers/redis/Dockerfile @@ -14,8 +14,10 @@ RUN set -ex; \ # Get rid of unused binaries rm -f /usr/local/bin/gosu; +COPY --chmod=775 healthcheck.sh /healthcheck.sh + USER 999 ENTRYPOINT ["/start.sh"] -HEALTHCHECK CMD redis-cli -a $REDIS_HOST_PASSWORD PING || exit 1 +HEALTHCHECK CMD /healthcheck.sh LABEL com.centurylinklabs.watchtower.enable="false" diff --git a/Containers/redis/healthcheck.sh b/Containers/redis/healthcheck.sh new file mode 100644 index 00000000..6588229f --- /dev/null +++ b/Containers/redis/healthcheck.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +redis-cli -a "$REDIS_HOST_PASSWORD" PING || exit 1 diff --git a/php/containers.json b/php/containers.json index b416a3dd..e8b1e5cc 100644 --- a/php/containers.json +++ b/php/containers.json @@ -329,6 +329,14 @@ "image": "nextcloud/aio-redis", "user": "999", "init": true, + "healthcheck": { + "start_period": "0s", + "test": "/healthcheck.sh", + "interval": "30s", + "timeout": "30s", + "start_interval": "5s", + "retries": 3 + }, "expose": [ "6379" ], From 731b1d208c9bbcc7b5b0dc7229a96d21a53c3823 Mon Sep 17 00:00:00 2001 From: "Simon L." Date: Tue, 3 Dec 2024 11:49:47 +0100 Subject: [PATCH 12/15] add healthcheck for talk Signed-off-by: Simon L. --- php/containers.json | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/php/containers.json b/php/containers.json index e8b1e5cc..54b43dc4 100644 --- a/php/containers.json +++ b/php/containers.json @@ -420,6 +420,14 @@ "image": "nextcloud/aio-talk", "user": "1000", "init": true, + "healthcheck": { + "start_period": "0s", + "test": "/healthcheck.sh", + "interval": "30s", + "timeout": "30s", + "start_interval": "5s", + "retries": 3 + }, "ports": [ { "ip_binding": "", From 9360256f7dc5aa0b5798bdcd4ad3a6ec74708d11 Mon Sep 17 00:00:00 2001 From: "Simon L." Date: Tue, 3 Dec 2024 11:53:26 +0100 Subject: [PATCH 13/15] add healthcheck for talk-recording Signed-off-by: Simon L. --- Containers/talk-recording/Dockerfile | 3 ++- Containers/talk-recording/healthcheck.sh | 3 +++ php/containers.json | 8 ++++++++ 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 Containers/talk-recording/healthcheck.sh diff --git a/Containers/talk-recording/Dockerfile b/Containers/talk-recording/Dockerfile index 1d7df914..a935db93 100644 --- a/Containers/talk-recording/Dockerfile +++ b/Containers/talk-recording/Dockerfile @@ -2,6 +2,7 @@ FROM python:3.13.0-alpine3.20 COPY --chmod=775 start.sh /start.sh +COPY --chmod=775 healthcheck.sh /healthcheck.sh ENV RECORDING_VERSION=v0.1 ENV ALLOW_ALL=false @@ -54,5 +55,5 @@ USER 122 ENTRYPOINT ["/start.sh"] CMD ["python", "-m", "nextcloud.talk.recording", "--config", "/conf/recording.conf"] -HEALTHCHECK CMD nc -z 127.0.0.1 1234 || exit 1 +HEALTHCHECK CMD /healthcheck.sh LABEL com.centurylinklabs.watchtower.enable="false" diff --git a/Containers/talk-recording/healthcheck.sh b/Containers/talk-recording/healthcheck.sh new file mode 100644 index 00000000..8397ab3c --- /dev/null +++ b/Containers/talk-recording/healthcheck.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +nc -z 127.0.0.1 1234 || exit 1 diff --git a/php/containers.json b/php/containers.json index 54b43dc4..a3525940 100644 --- a/php/containers.json +++ b/php/containers.json @@ -485,6 +485,14 @@ "image": "nextcloud/aio-talk-recording", "user": "122", "init": true, + "healthcheck": { + "start_period": "0s", + "test": "/healthcheck.sh", + "interval": "30s", + "timeout": "30s", + "start_interval": "5s", + "retries": 3 + }, "expose": [ "1234" ], From c908defda637e66fd40802e275cf3017e0166ab8 Mon Sep 17 00:00:00 2001 From: "Simon L." Date: Tue, 3 Dec 2024 11:56:35 +0100 Subject: [PATCH 14/15] add healthcheck for whiteboard Signed-off-by: Simon L. --- Containers/whiteboard/Dockerfile | 4 ++++ Containers/whiteboard/healthcheck.sh | 4 ++++ php/containers.json | 8 ++++++++ 3 files changed, 16 insertions(+) create mode 100644 Containers/whiteboard/healthcheck.sh diff --git a/Containers/whiteboard/Dockerfile b/Containers/whiteboard/Dockerfile index c4446756..3d178c18 100644 --- a/Containers/whiteboard/Dockerfile +++ b/Containers/whiteboard/Dockerfile @@ -1,4 +1,5 @@ # syntax=docker/dockerfile:latest +# Probably from this file: https://github.com/nextcloud/whiteboard/blob/main/Dockerfile FROM ghcr.io/nextcloud-releases/whiteboard:v1.0.4 USER root @@ -8,6 +9,9 @@ RUN set -ex; \ USER 65534 COPY --chmod=775 start.sh /start.sh +COPY --chmod=775 healthcheck.sh /healthcheck.sh + +HEALTHCHECK CMD /healthcheck.sh ENTRYPOINT ["/start.sh"] diff --git a/Containers/whiteboard/healthcheck.sh b/Containers/whiteboard/healthcheck.sh new file mode 100644 index 00000000..4f53988a --- /dev/null +++ b/Containers/whiteboard/healthcheck.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +nc -z "$REDIS_HOST" 6379 || exit 0 +nc -z 127.0.0.1 3002 || exit 1 diff --git a/php/containers.json b/php/containers.json index a3525940..cf302369 100644 --- a/php/containers.json +++ b/php/containers.json @@ -874,6 +874,14 @@ "image": "nextcloud/aio-whiteboard", "user": "65534", "init": true, + "healthcheck": { + "start_period": "0s", + "test": "/healthcheck.sh", + "interval": "30s", + "timeout": "30s", + "start_interval": "5s", + "retries": 3 + }, "expose": [ "3002" ], From e072d07fc2599bb9c889a8c70e5d951850549428 Mon Sep 17 00:00:00 2001 From: "Simon L." Date: Tue, 3 Dec 2024 14:00:46 +0100 Subject: [PATCH 15/15] adjust update-helm script to enable readiness check Signed-off-by: Simon L. --- nextcloud-aio-helm-chart/update-helm.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/nextcloud-aio-helm-chart/update-helm.sh b/nextcloud-aio-helm-chart/update-helm.sh index a8719b1b..7e1364b2 100755 --- a/nextcloud-aio-helm-chart/update-helm.sh +++ b/nextcloud-aio-helm-chart/update-helm.sh @@ -25,6 +25,8 @@ set -ex cd manual-install cp latest.yml latest.yml.backup +# Additional config +# shellcheck disable=SC1083 sed -i -E '/^( *- )(NET_RAW|SYS_NICE|MKNOD|SYS_ADMIN)$/!s/( *- )([A-Z_]+)$/\1\2=${\2}/' latest.yml cp sample.conf /tmp/ sed -i 's|^|export |' /tmp/sample.conf @@ -117,6 +119,12 @@ EOL DEPLOYMENTS="$(find ./ -name '*deployment.yaml')" mapfile -t DEPLOYMENTS <<< "$DEPLOYMENTS" for variable in "${DEPLOYMENTS[@]}"; do + if grep -q livenessProbe "$variable"; then + sed -n "/.*livenessProbe/,/timeoutSeconds.*/p" "$variable" > /tmp/liveness.probe + cat /tmp/liveness.probe + sed -i "s|livenessProbe|readinessProbe|" /tmp/liveness.probe + sed -i "/^ image:/r /tmp/liveness.probe" "$variable" + fi if grep -q volumeMounts "$variable"; then if echo "$variable" | grep -q database; then sed -i "/^ spec:/r /tmp/initcontainers.database" "$variable" @@ -197,6 +205,8 @@ find ./ -name '*deployment.yaml' -exec sed -i "s|manual-install-nextcloud-aio|ne # shellcheck disable=SC1083 find ./ -name '*deployment.yaml' -exec sed -i "/medium: Memory/d" \{} \; # shellcheck disable=SC1083 +find ./ -name '*.yaml' -exec sed -i "/kompose.cmd/d" \{} \; +# shellcheck disable=SC1083 find ./ -name '*deployment.yaml' -exec sed -i "s|emptyDir:|emptyDir: \{\}|" \{} \; # shellcheck disable=SC1083 find ./ -name '*deployment.yaml' -exec sed -i "/hostPort:/d" \{} \;