blob: e181a57283060436b01b2cd91ae0c78bb7c86477 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
apiVersion: v1
kind: Service
metadata:
name: {{template "gitolite.fullname" . }}
labels:
app: {{ template "gitolite.fullname" . }}
heritage: {{.Release.Service | quote }}
release: {{.Release.Name | quote }}
chart: "{{.Chart.Name}}-{{.Chart.Version}}"
component: "{{.Release.Name}}-{{.Values.Component}}"
{{- if .Values.ServiceAnnotations }}
annotations:
{{ toYaml .Values.ServiceAnnotations | indent 4 }}
{{- end }}
spec:
ports:
- port: {{.Values.ServicePort}}
name: http
targetPort: {{.Values.ContainerPort}}
selector:
component: "{{.Release.Name}}-{{.Values.Component}}"
type: {{.Values.ServiceType}}
|