From 31eb2cd5d2ef5cf6be6951d10bca047b0cadb8f4 Mon Sep 17 00:00:00 2001 From: Jongmin Kim Date: Tue, 7 Nov 2023 03:32:59 +0900 Subject: [PATCH] build: change run commands --- Dockerfile | 2 +- deploy/helm/Chart.yaml | 2 +- deploy/helm/templates/deployment-rest.yaml | 2 +- deploy/helm/templates/deployment-scheduler.yaml | 2 +- deploy/helm/templates/deployment-worker.yaml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index f437cc01..1f4f353b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,4 +21,4 @@ RUN pip install --upgrade spaceone-api EXPOSE ${SPACEONE_PORT} ENTRYPOINT ["spaceone"] -CMD ["grpc", "spaceone.cost_analysis", "-m", "/opt"] +CMD ["run", "grpc-server", "spaceone.cost_analysis", "-m", "/opt"] diff --git a/deploy/helm/Chart.yaml b/deploy/helm/Chart.yaml index 76d27297..8982d338 100644 --- a/deploy/helm/Chart.yaml +++ b/deploy/helm/Chart.yaml @@ -4,6 +4,6 @@ description: SpaceONE Cost Analysis Helm chart for Kubernetes type: application -version: 1.3.14 +version: 1.3.15 appVersion: 1.x.y diff --git a/deploy/helm/templates/deployment-rest.yaml b/deploy/helm/templates/deployment-rest.yaml index 78d243b0..9272b228 100644 --- a/deploy/helm/templates/deployment-rest.yaml +++ b/deploy/helm/templates/deployment-rest.yaml @@ -43,7 +43,7 @@ spec: resources: {{- toYaml .Values.resources.rest | nindent 12 }} {{- end }} - command: ['spaceone', 'rest', 'spaceone.{{ regexReplaceAll "-" .Values.name "_" }}', '-p', '8000'] + command: ['spaceone', 'run', 'rest-server', 'spaceone.{{ regexReplaceAll "-" .Values.name "_" }}', '-p', '8000'] ports: - containerPort: 8000 volumeMounts: diff --git a/deploy/helm/templates/deployment-scheduler.yaml b/deploy/helm/templates/deployment-scheduler.yaml index 9ae9bf3c..58b02cee 100644 --- a/deploy/helm/templates/deployment-scheduler.yaml +++ b/deploy/helm/templates/deployment-scheduler.yaml @@ -43,7 +43,7 @@ spec: resources: {{- toYaml .Values.resources.scheduler | nindent 12 }} {{- end }} - command: ['spaceone', 'scheduler', 'spaceone.{{ regexReplaceAll "-" .Values.name "_" }}'] + command: ['spaceone', 'run', 'scheduler', 'spaceone.{{ regexReplaceAll "-" .Values.name "_" }}'] volumeMounts: - name: default-conf mountPath: /opt/spaceone/{{ .Values.name }}/config/config.yaml diff --git a/deploy/helm/templates/deployment-worker.yaml b/deploy/helm/templates/deployment-worker.yaml index bb30a1d1..157239e6 100644 --- a/deploy/helm/templates/deployment-worker.yaml +++ b/deploy/helm/templates/deployment-worker.yaml @@ -43,7 +43,7 @@ spec: resources: {{- toYaml .Values.resources.worker | nindent 12 }} {{- end }} - command: ['spaceone', 'scheduler', 'spaceone.{{ regexReplaceAll "-" .Values.name "_" }}', '-m', '/opt'] + command: ['spaceone', 'run', 'scheduler', 'spaceone.{{ regexReplaceAll "-" .Values.name "_" }}', '-m', '/opt'] volumeMounts: - name: default-conf mountPath: /opt/spaceone/{{ .Values.name }}/config/config.yaml