Skip to content

Commit

Permalink
Use containerPort value
Browse files Browse the repository at this point in the history
  • Loading branch information
tschbc committed Sep 20, 2024
1 parent 13a681c commit 04e9c3d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ spec:
- name: vpi-app-container
image: "{{ .Values.image.tag }}"
ports:
- containerPort: {{ .Values.service.port }}
- containerPort: {{ .Values.service.containerPort }}
resources: {{- toYaml .Values.resources | nindent 12 }}
restartPolicy: Always
1 change: 1 addition & 0 deletions helm/templates/vpi-app-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ spec:
- name: vpi-app-service-port
protocol: TCP
port: {{ .Values.service.port }}
targetPort: {{ .Values.service.containerPort }}
1 change: 1 addition & 0 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ image:
service:
type: ClusterIP
port: 443
containerPort: 3000

resources: {}

Expand Down

0 comments on commit 04e9c3d

Please sign in to comment.