diff --git a/charts/py-app/templates/static-service.yaml b/charts/py-app/templates/static-service.yaml new file mode 100644 index 0000000..b2c6155 --- /dev/null +++ b/charts/py-app/templates/static-service.yaml @@ -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 }} diff --git a/charts/py-app/values.yaml b/charts/py-app/values.yaml index 0e2db73..822c490 100644 --- a/charts/py-app/values.yaml +++ b/charts/py-app/values.yaml @@ -87,6 +87,7 @@ service: enabled: true type: ClusterIP port: 80 + staticServiceName: "" ingress: enabled: false