Merge pull request #10 from Intreecom/feature/static-service

feature: service with a static name across envs
This commit is contained in:
Dev Jadeja
2025-03-20 15:06:23 +05:30
committed by GitHub
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,18 @@
{{- if and .Values.service.enabled .Values.service.staticServiceName -}}
apiVersion: v1
kind: Service
metadata:
name: {{ .Values.service.staticServiceName }}
labels:
{{- include "py-app.labels" . | nindent 4 }}
spec:
type: ClusterIP
ports:
- port: {{ .Values.service.port }}
targetPort: {{ .Values.service.targetPort | default "static-service" }}
protocol: TCP
name: static-service
selector:
{{- include "py-app.selectorLabels" . | nindent 4 }}
deployment_type: web
{{- end }}

View File

@ -87,6 +87,7 @@ service:
enabled: true
type: ClusterIP
port: 80
staticServiceName: ""
ingress:
enabled: false