You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: {{ .Chart.Name }}
|
|
|
|
labels:
|
|
|
|
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
|
|
|
|
app.kubernetes.io/instance: "{{ .Release.Name }}"
|
|
|
|
kube-version/major: "{{ .Capabilities.KubeVersion.Major }}"
|
|
|
|
kube-version/minor: "{{ .Capabilities.KubeVersion.Minor }}"
|
|
|
|
kube-version/version: "v{{ .Capabilities.KubeVersion.Major }}.{{ .Capabilities.KubeVersion.Minor }}.0"
|
|
|
|
{{- if .Capabilities.APIVersions.Has "helm.k8s.io/test" }}
|
|
|
|
kube-api-version/test: v1
|
|
|
|
{{- end }}
|
|
|
|
spec:
|
|
|
|
type: {{ .Values.service.type }}
|
|
|
|
ports:
|
|
|
|
- port: {{ .Values.service.externalPort }}
|
|
|
|
targetPort: {{ .Values.service.internalPort }}
|
|
|
|
protocol: TCP
|
|
|
|
name: {{ .Values.service.name }}
|
|
|
|
selector:
|
|
|
|
app.kubernetes.io/name: {{ .Chart.Name }}
|