[wip] feature: service with a static name across envs

This commit is contained in:
Dev Jadeja
2025-03-18 17:23:01 +05:30
parent 8f8d22e187
commit c61fe1c59e
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,18 @@
{{- if .Values.service.enabled -}}
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 enabled: true
type: ClusterIP type: ClusterIP
port: 80 port: 80
staticServiceName: ""
ingress: ingress:
enabled: false enabled: false