github.com/terraform-modules-krish/terratest@v0.29.0/examples/helm-basic-example/templates/service.yaml (about) 1 apiVersion: v1 2 kind: Service 3 metadata: 4 name: {{ include "helm-basic-example.fullname" . }} 5 labels: 6 # These labels are required by helm. You can read more about required labels in the chart best practices guide: 7 # https://docs.helm.sh/chart_best_practices/#standard-labels 8 helm.sh/chart: {{ include "helm-basic-example.chart" . }} 9 app.kubernetes.io/name: {{ include "helm-basic-example.name" . }} 10 app.kubernetes.io/instance: {{ .Release.Name }} 11 app.kubernetes.io/managed-by: {{ .Release.Service }} 12 spec: 13 selector: 14 app.kubernetes.io/name: {{ include "helm-basic-example.name" . }} 15 app.kubernetes.io/instance: {{ .Release.Name }} 16 type: NodePort 17 ports: 18 - protocol: TCP 19 targetPort: 80 20 port: 80