Skip to content

Instantly share code, notes, and snippets.

@AlexanderWiechert
Created September 21, 2023 13:45
Show Gist options
  • Save AlexanderWiechert/7c53d91c8138def8db630014e037951a to your computer and use it in GitHub Desktop.
Save AlexanderWiechert/7c53d91c8138def8db630014e037951a to your computer and use it in GitHub Desktop.
standard service template
apiVersion: v1
kind: Service
metadata:
name: {{ include "mychart.fullname" . }}
labels:
{{- include "mychart.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
targetPort: http
protocol: TCP
name: http
selector:
{{- include "mychart.selectorLabels" . | nindent 4 }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment