github.com/x-helm/helm@v3.0.0-beta.3+incompatible/pkg/chartutil/testdata/subpop/charts/subchart1/templates/service.yaml (about)

     1  apiVersion: v1
     2  kind: Service
     3  metadata:
     4    name: {{ .Chart.Name }}
     5    labels:
     6      helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
     7      app.kubernetes.io/instance: "{{ .Release.Name }}"
     8      kube-version/major: "{{ .Capabilities.KubeVersion.Major }}"
     9      kube-version/minor: "{{ .Capabilities.KubeVersion.Minor }}"
    10      kube-version/version: "v{{ .Capabilities.KubeVersion.Major }}.{{ .Capabilities.KubeVersion.Minor }}.0"
    11  spec:
    12    type: {{ .Values.service.type }}
    13    ports:
    14    - port: {{ .Values.service.externalPort }}
    15      targetPort: {{ .Values.service.internalPort }}
    16      protocol: TCP
    17      name: {{ .Values.service.name }}
    18    selector:
    19      app.kubernetes.io/name: {{ .Chart.Name }}