Skip to content

Commit

Permalink
Support for openshift
Browse files Browse the repository at this point in the history
  • Loading branch information
MDH committed Oct 30, 2024
1 parent 18b9430 commit 528d2fb
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ data:
<mirror-group>
{{- range $j := until (int $.Values.terracotta.nodeCountPerStripe) }}
<server host="terracotta-{{ add (mul $i $.Values.terracotta.nodeCountPerStripe) $j }}.terracotta-service.{{ $.Release.Namespace }}.svc.cluster.local"
name="terracotta-{{ add (mul $i $.Values.terracotta.nodeCountPerStripe) $j }}.terracotta-service.{{ $.Release.Namespace }}.svc.cluster.local">
name="terracotta-{{ add (mul $i $.Values.terracotta.nodeCountPerStripe) $j }}">
<tsa-port>{{ $.Values.terracotta.tsaPort }} </tsa-port>
<tsa-group-port>{{ $.Values.terracotta.tsaGroupPort }}</tsa-group-port>
<management-port>{{ $.Values.terracotta.tsaManagementPort }}</management-port>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ spec:
{{- end }}
securityContext:
{{- toYaml .Values.securityContext | nindent 8 }}
{{- if .Values.terracotta.serviceAccountName }}
serviceAccount: {{ .Values.terracotta.serviceAccountName }}
{{- end }}
containers:
- name: server
image: "{{ $.Values.registry }}/{{ $.Values.serverImage }}:{{ $.Values.tag | default .Chart.AppVersion }}"
Expand Down
3 changes: 3 additions & 0 deletions terracottabigmemorymax/helm/templates/tmc-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ spec:
{{- end }}
securityContext:
{{- toYaml .Values.securityContext | nindent 8 }}
{{- if .Values.terracotta.serviceAccountName }}
serviceAccount: {{ .Values.terracotta.serviceAccountName }}
{{- end }}
containers:
- name: tmc-server
image: "{{ $.Values.registry }}/{{ $.Values.tmcImage }}:{{ $.Values.tag | default .Chart.AppVersion }}"
Expand Down
2 changes: 2 additions & 0 deletions terracottabigmemorymax/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ terracotta:
tmcOpts: ""
# -- The license content for the Terracotta cluster. Optional.
license: ""
# -- ServiceAccountName for the terracotta related pods
serviceAccountName: ""

# -- TSA container-specific configurations for probes
tsaServer:
Expand Down

0 comments on commit 528d2fb

Please sign in to comment.