[wip] feature: service with a static name across envs
This commit is contained in:
18
charts/py-app/templates/static-service.yaml
Normal file
18
charts/py-app/templates/static-service.yaml
Normal 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 }}
|
@ -87,6 +87,7 @@ service:
|
|||||||
enabled: true
|
enabled: true
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
port: 80
|
port: 80
|
||||||
|
staticServiceName: ""
|
||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
Reference in New Issue
Block a user