Skip to content

Instantly share code, notes, and snippets.

@arthurk
Created March 1, 2020 09:04
Show Gist options
  • Save arthurk/6f482ea04ace94a3bbd7f5275c64a4cb to your computer and use it in GitHub Desktop.
Save arthurk/6f482ea04ace94a3bbd7f5275c64a4cb to your computer and use it in GitHub Desktop.
service.yaml
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