Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Joatin committed Jan 7, 2025
1 parent 1570782 commit 45a1fa2
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 22 deletions.
2 changes: 1 addition & 1 deletion charts/ocpp-csms-server/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.21
version: 0.1.22

# 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
Expand Down
6 changes: 4 additions & 2 deletions charts/ocpp-csms-server/templates/api-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,11 @@ spec:
- name: "DATABASE_URL"
value: "postgres://{{ default .Values.api.postgres.username "postgres" }}:$(DATABASE_PASSWORD)@{{ .Release.Name }}-postgresql.{{ .Release.Namespace }}.svc.cluster.local:5432/postgres"
livenessProbe:
{{- toYaml .Values.api.livenessProbe | nindent 12 }}
grpc:
port: {{ .Values.api.service.port }}
readinessProbe:
{{- toYaml .Values.api.readinessProbe | nindent 12 }}
grpc:
port: {{ .Values.api.service.port }}
resources:
{{- toYaml .Values.api.resources | nindent 12 }}
{{- with .Values.api.volumeMounts }}
Expand Down
2 changes: 1 addition & 1 deletion charts/ocpp-csms-server/templates/api-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
type: {{ .Values.api.service.type }}
ports:
- port: {{ .Values.api.service.port }}
targetPort: http
targetPort: grpc
protocol: TCP
name: grpc
selector:
Expand Down
6 changes: 4 additions & 2 deletions charts/ocpp-csms-server/templates/ocpp-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,11 @@ spec:
- name: "DATABASE_URL"
value: "postgres://{{ default .Values.ocpp.postgres.username "postgres" }}:$(DATABASE_PASSWORD)@{{ .Release.Name }}-postgresql.{{ .Release.Namespace }}.svc.cluster.local:5432/postgres"
livenessProbe:
{{- toYaml .Values.ocpp.livenessProbe | nindent 12 }}
grpc:
port: {{ .Values.ocpp.service.apiPort }}
readinessProbe:
{{- toYaml .Values.ocpp.readinessProbe | nindent 12 }}
grpc:
port: {{ .Values.ocpp.service.apiPort }}
resources:
{{- toYaml .Values.ocpp.resources | nindent 12 }}
{{- with .Values.ocpp.volumeMounts }}
Expand Down
16 changes: 0 additions & 16 deletions charts/ocpp-csms-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,6 @@ ocpp:
# cpu: 100m
# memory: 128Mi

# 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:
grpc:
port: grpc
readinessProbe:
grpc:
port: grpc

# This section is for setting up autoscaling more information can be found here: https://kubernetes.io/docs/concepts/workloads/autoscaling/
autoscaling:
enabled: false
Expand Down Expand Up @@ -191,14 +183,6 @@ api:
# cpu: 100m
# memory: 128Mi

# 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:
grpc:
port: grpc
readinessProbe:
grpc:
port: grpc

# This section is for setting up autoscaling more information can be found here: https://kubernetes.io/docs/concepts/workloads/autoscaling/
autoscaling:
enabled: false
Expand Down

0 comments on commit 45a1fa2

Please sign in to comment.