From 1570782aef67a25bc7867f650b159a7aa2816a2e Mon Sep 17 00:00:00 2001 From: Joatin Granlund Date: Tue, 7 Jan 2025 23:59:41 +0100 Subject: [PATCH] fixes --- charts/ocpp-csms-server/Chart.yaml | 2 +- .../templates/api-deployment.yaml | 2 +- .../templates/api-service.yaml | 2 +- charts/ocpp-csms-server/values.yaml | 20 ++++++++----------- 4 files changed, 11 insertions(+), 15 deletions(-) diff --git a/charts/ocpp-csms-server/Chart.yaml b/charts/ocpp-csms-server/Chart.yaml index dc60728..6ff9063 100644 --- a/charts/ocpp-csms-server/Chart.yaml +++ b/charts/ocpp-csms-server/Chart.yaml @@ -16,7 +16,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.1.20 +version: 0.1.21 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/ocpp-csms-server/templates/api-deployment.yaml b/charts/ocpp-csms-server/templates/api-deployment.yaml index 1105e14..ad30052 100644 --- a/charts/ocpp-csms-server/templates/api-deployment.yaml +++ b/charts/ocpp-csms-server/templates/api-deployment.yaml @@ -38,7 +38,7 @@ spec: imagePullPolicy: {{ .Values.image.pullPolicy }} command: [ "/bin/api" ] ports: - - name: http + - name: grpc containerPort: {{ .Values.api.service.port }} protocol: TCP env: diff --git a/charts/ocpp-csms-server/templates/api-service.yaml b/charts/ocpp-csms-server/templates/api-service.yaml index bfdb568..74d1cce 100644 --- a/charts/ocpp-csms-server/templates/api-service.yaml +++ b/charts/ocpp-csms-server/templates/api-service.yaml @@ -10,6 +10,6 @@ spec: - port: {{ .Values.api.service.port }} targetPort: http protocol: TCP - name: http + name: grpc selector: {{ include "ocpp-csms-server.apiSelectorLabels" . | nindent 4 }} diff --git a/charts/ocpp-csms-server/values.yaml b/charts/ocpp-csms-server/values.yaml index 566c514..4e0bcc4 100644 --- a/charts/ocpp-csms-server/values.yaml +++ b/charts/ocpp-csms-server/values.yaml @@ -93,13 +93,11 @@ ocpp: # This is to setup the liveness and readiness probes more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/ livenessProbe: - httpGet: - path: / - port: http + grpc: + port: grpc readinessProbe: - httpGet: - path: / - port: http + grpc: + port: grpc # This section is for setting up autoscaling more information can be found here: https://kubernetes.io/docs/concepts/workloads/autoscaling/ autoscaling: @@ -195,13 +193,11 @@ api: # This is to setup the liveness and readiness probes more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/ livenessProbe: - httpGet: - path: / - port: http + grpc: + port: grpc readinessProbe: - httpGet: - path: / - port: http + grpc: + port: grpc # This section is for setting up autoscaling more information can be found here: https://kubernetes.io/docs/concepts/workloads/autoscaling/ autoscaling: