From a6eb7d82cf053338deb2c5d106bec5d99341355d Mon Sep 17 00:00:00 2001 From: Tao Guo Date: Sat, 19 Aug 2023 16:34:11 +1000 Subject: [PATCH] Use ENTRYPOINT instead of CMD to run promqltodd Requested at: https://github.com/temporalio/samples-server/issues/60 --- cloud/observability/promql-to-dd-go/Dockerfile | 2 +- .../promql-to-dd-go/helm-charts/templates/deployment.yaml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/cloud/observability/promql-to-dd-go/Dockerfile b/cloud/observability/promql-to-dd-go/Dockerfile index 665dd93..372f7ae 100644 --- a/cloud/observability/promql-to-dd-go/Dockerfile +++ b/cloud/observability/promql-to-dd-go/Dockerfile @@ -21,4 +21,4 @@ FROM --platform=${BUILDPLATFORM:-linux/amd64} centos:latest COPY --from=builder ${GOPATH:-/go}/bin/promqltodd / -CMD ["/promqltodd"] +ENTRYPOINT ["/promqltodd"] diff --git a/cloud/observability/promql-to-dd-go/helm-charts/templates/deployment.yaml b/cloud/observability/promql-to-dd-go/helm-charts/templates/deployment.yaml index 729f430..475f078 100644 --- a/cloud/observability/promql-to-dd-go/helm-charts/templates/deployment.yaml +++ b/cloud/observability/promql-to-dd-go/helm-charts/templates/deployment.yaml @@ -25,7 +25,6 @@ spec: - name: promqltodd image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.imagePullPolicy }} - command: ["/promqltodd"] args: - --client-cert=/var/run/secrets/ca_cert - --client-key=/var/run/secrets/ca_key