feat: manually mirror opencoze's code from bytedance
Change-Id: I09a73aadda978ad9511264a756b2ce51f5761adf
This commit is contained in:
20
helm/charts/opencoze/templates/etcd-service.yaml
Normal file
20
helm/charts/opencoze/templates/etcd-service.yaml
Normal file
@@ -0,0 +1,20 @@
|
||||
{{- 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 }}
|
||||
Reference in New Issue
Block a user