ci: fix container port

This commit is contained in:
log101 2025-03-01 08:25:22 +03:00
parent 0f642439ec
commit 66d4a0c842
3 changed files with 8 additions and 9 deletions

View File

@ -42,7 +42,7 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
ports: ports:
- name: http - name: http
containerPort: {{ .Values.service.port }} containerPort: {{ .Values.containerPort | default 8080 }} # ← Now points to 8080
protocol: TCP protocol: TCP
{{- with .Values.livenessProbe }} {{- with .Values.livenessProbe }}
livenessProbe: livenessProbe:

View File

@ -1,12 +1,13 @@
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: blog-service name: { { include "chart.fullname" . } }
labels: { { - include "chart.labels" . | nindent 4 } } labels: { { - include "chart.labels" . | nindent 4 } }
spec: spec:
type: { { .Values.service.type } } type: { { .Values.service.type } }
ports: ports:
- port: { { .Values.service.port } } - port: { { .Values.service.port } }
targetPort: { { .Values.service.targetPort } } targetPort: http
protocol: TCP protocol: TCP
name: http
selector: { { - include "chart.selectorLabels" . | nindent 4 } } selector: { { - include "chart.selectorLabels" . | nindent 4 } }

View File

@ -56,7 +56,9 @@ service:
# This sets the service type more information can be found here: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types # This sets the service type more information can be found here: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
type: ClusterIP type: ClusterIP
# This sets the ports more information can be found here: https://kubernetes.io/docs/concepts/services-networking/service/#field-spec-ports # This sets the ports more information can be found here: https://kubernetes.io/docs/concepts/services-networking/service/#field-spec-ports
port: 80 port: 8080
containerPort: 8080
# This block is for setting up the ingress for more information can be found here: https://kubernetes.io/docs/concepts/services-networking/ingress/ # This block is for setting up the ingress for more information can be found here: https://kubernetes.io/docs/concepts/services-networking/ingress/
ingress: ingress:
@ -71,11 +73,7 @@ ingress:
paths: paths:
- path: / - path: /
pathType: Prefix pathType: Prefix
backend:
service:
name: blog-service
port:
number: 80
tls: tls:
- secretName: blog-tls - secretName: blog-tls
hosts: hosts: