configurable oxia coordinator configmap and entrypoint (#606)
This commit is contained in:
parent
8382906775
commit
fa1456ea4d
@ -106,7 +106,11 @@ Define coordinator entrypoint
|
||||
{{- define "oxia.coordinator.entrypoint" -}}
|
||||
- "oxia"
|
||||
- "coordinator"
|
||||
{{- if .Values.oxia.coordinator.customConfigMapName }}
|
||||
- "--conf=configmap:{{ template "pulsar.namespace" . }}/{{ .Values.oxia.coordinator.customConfigMapName }}"
|
||||
{{- else }}
|
||||
- "--conf=configmap:{{ template "pulsar.namespace" . }}/{{ template "pulsar.fullname" . }}-{{ .Values.oxia.component }}-coordinator"
|
||||
{{- end }}
|
||||
- "--log-json"
|
||||
- "--metadata=configmap"
|
||||
- "--k8s-namespace={{ template "pulsar.namespace" . }}"
|
||||
|
||||
@ -16,7 +16,7 @@
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
#
|
||||
{{- if .Values.components.oxia }}
|
||||
{{- if and .Values.components.oxia (not .Values.oxia.coordinator.customConfigMapName) }}
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
@ -29,4 +29,4 @@ data:
|
||||
config.yaml: |
|
||||
{{- include "oxia.coordinator.config.yaml" . | nindent 4 }}
|
||||
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
@ -49,18 +49,22 @@ spec:
|
||||
{{ toYaml . | indent 8 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
{{- if .Values.oxia.server.nodeSelector }}
|
||||
{{- if .Values.oxia.coordinator.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{ toYaml .Values.oxia.server.nodeSelector | indent 8 }}
|
||||
{{ toYaml .Values.oxia.coordinator.nodeSelector | indent 8 }}
|
||||
{{- end }}
|
||||
{{- if .Values.oxia.server.tolerations }}
|
||||
{{- if .Values.oxia.coordinator.tolerations }}
|
||||
tolerations:
|
||||
{{ toYaml .Values.oxia.server.tolerations | indent 8 }}
|
||||
{{ toYaml .Values.oxia.coordinator.tolerations | indent 8 }}
|
||||
{{- end }}
|
||||
serviceAccountName: {{ template "pulsar.fullname" . }}-{{ .Values.oxia.component }}-coordinator
|
||||
containers:
|
||||
- command:
|
||||
{{- if .Values.oxia.coordinator.entrypoint }}
|
||||
{{ toYaml .Values.oxia.coordinator.entrypoint | indent 12 }}
|
||||
{{- else }}
|
||||
{{- include "oxia.coordinator.entrypoint" . | nindent 12 }}
|
||||
{{- end }}
|
||||
image: "{{ .Values.images.oxia.repository }}:{{ .Values.images.oxia.tag }}"
|
||||
imagePullPolicy: "{{ template "pulsar.imagePullPolicy" (dict "image" .Values.images.oxia "root" .) }}"
|
||||
name: coordinator
|
||||
|
||||
@ -525,6 +525,8 @@ oxia:
|
||||
tolerations: []
|
||||
# nodeSelector:
|
||||
# cloud.google.com/gke-nodepool: default-pool
|
||||
# customConfigMapName: ""
|
||||
# entrypoint: []
|
||||
## templates/server-statefulset.yaml
|
||||
server:
|
||||
# annotations for the app (statefulset/deployment)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user