template/deployments/helm/charts/templates/service.yaml (22 lines of code) (raw):

apiVersion: v1 kind: Service metadata: name: {{ .Config.GetVariableValue "APPNAME" | printf "{{ include \"%s.fullname\" . }}" }} labels: {{ .Config.GetVariableValue "APPNAME" | printf "{{- include \"%s.labels\" . | nindent 4 }}" }} {{- ` annotations: {{ toYaml .Values.service.annotations | nindent 4 }} namespace: {{ .Values.namespace }} ` -}} spec: {{- ` type: {{ .Values.service.type }} ports: - port: {{ .Values.service.port }} targetPort: {{ .Values.containerPort }} protocol: TCP name: svchttp ` -}} selector: {{ .Config.GetVariableValue "APPNAME" | printf "{{- include \"%s.selectorLabels\" . | nindent 6 }}" }}