21 lines
568 B
YAML
21 lines
568 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ .Values.rstudio.service.name }}
|
|
labels:
|
|
app: {{ .Values.rstudio.service.name }}
|
|
release: {{ .Release.Name }}
|
|
heritage: {{ .Release.Service }}
|
|
spec:
|
|
type: {{ .Values.rstudio.service.type }}
|
|
loadBalancerSourceRanges:
|
|
{{- range $index, $rule := .Values.rstudio.service.firewall }}
|
|
- {{ $rule }}
|
|
{{- end }}
|
|
ports:
|
|
- name: {{ .Values.rstudio.service.name }}
|
|
port: {{ .Values.rstudio.service.port }}
|
|
selector:
|
|
app: {{ template "rstudio.name" . }}
|
|
release: {{ .Release.Name }}
|