update
This commit is contained in:
27
pocketbase/templates/service.yaml
Normal file
27
pocketbase/templates/service.yaml
Normal file
@@ -0,0 +1,27 @@
|
||||
{{- /*
|
||||
Generate services for each PocketBase instance
|
||||
*/ -}}
|
||||
{{- $root := . }}
|
||||
{{- range .Values.instances }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: pocketbase-{{ .id }}
|
||||
labels:
|
||||
app: pocketbase
|
||||
instance: {{ .id }}
|
||||
{{- include "pocketbase.labels" $root | nindent 4 }}
|
||||
annotations:
|
||||
{{- toYaml $root.Values.ingress.annotations | nindent 4 }}
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app: pocketbase
|
||||
instance: {{ .id }}
|
||||
ports:
|
||||
- name: http
|
||||
port: 80
|
||||
targetPort: http
|
||||
protocol: TCP
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user