fastdfs
This commit is contained in:
30
fastdfs-nginx/templates/storage-service-headless.yaml
Normal file
30
fastdfs-nginx/templates/storage-service-headless.yaml
Normal file
@ -0,0 +1,30 @@
|
||||
{{ $root := . }}
|
||||
{{- range $skey, $svalue := $.Values.fastdfs.storage }}
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ template "fastdfs-nginx.fullname" $root }}-storage-{{ $svalue.name }}-headless
|
||||
labels:
|
||||
app: {{ template "fastdfs-nginx.name" $root }}
|
||||
chart: {{ template "fastdfs-nginx.chart" $root }}
|
||||
release: {{ $.Release.Name }}
|
||||
heritage: {{ $.Release.Service }}
|
||||
{{- if $.Values.headless.annotations }}
|
||||
annotations:
|
||||
{{ $.Values.headless.annotations | toYaml | trimSuffix "\n" | indent 4 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
clusterIP: None
|
||||
publishNotReadyAddresses: true
|
||||
ports:
|
||||
{{- range $key, $port := $.Values.storagePorts }}
|
||||
- name: {{ $key }}
|
||||
port: {{ $port.containerPort }}
|
||||
targetPort: {{ $port.name }}
|
||||
protocol: {{ $port.protocol }}
|
||||
{{- end }}
|
||||
selector:
|
||||
app: {{ template "fastdfs-nginx.name" $root }}-storage-{{ $svalue.name }}
|
||||
release: {{ $.Release.Name }}
|
||||
---
|
||||
{{- end }}
|
Reference in New Issue
Block a user