coze-studio/helm/charts/opencoze/templates/etcd-service.yaml

20 lines
483 B
YAML

{{- if .Values.etcd.enabled }}
apiVersion: v1
kind: Service
metadata:
name: {{ include "opencoze.fullname" . }}-etcd
labels:
{{- include "opencoze.labels" . | nindent 4 }}
spec:
ports:
- name: client
port: 2379
targetPort: 2379
- name: peer
port: 2380
targetPort: 2380
selector:
app.kubernetes.io/component: etcd
app.kubernetes.io/name: {{ include "opencoze.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}