Skip to content

Commit

Permalink
Add more k8s template configuration options for BCD (#560)
Browse files Browse the repository at this point in the history
* Ability to configure nodeSelector, affinity, and tolerations for BCD

* Abilty to configure BCD pod security context + img pull secrets

* Fixes and explcitly add to values.yaml

* Fix
  • Loading branch information
harryttd authored Mar 9, 2023
1 parent 81ee8b0 commit f91baa3
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
24 changes: 24 additions & 0 deletions charts/tezos/templates/bcd_indexer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,30 @@ spec:
metadata:
labels:
app: {{ .Values.bcd_indexer_statefulset.name }}
{{- with $indexerConfig.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- with $indexerConfig.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
securityContext:
{{- toYaml $indexerConfig.podSecurityContext | nindent 8 }}

{{- with $indexerConfig.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with $indexerConfig.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with $indexerConfig.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
volumes:
- name: sandbox-config
configMap:
Expand Down Expand Up @@ -177,6 +200,7 @@ spec:
/docker-entrypoint.sh nginx -g "daemon off;"
{{- end }}

{{- if not $indexerConfig.db.isExternal }}
- image: {{ $indexerConfig.images.postgres }}
name: db
Expand Down
7 changes: 7 additions & 0 deletions charts/tezos/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -522,3 +522,10 @@ bcdIndexer:
# For the pv for the optional postgres container
storageClassName: ""
storage: "300Gi"

imagePullSecrets: {}
podAnnotations: {}
podSecurityContext: {}
affinity: {}
nodeSelector: {}
tolerations: {}

0 comments on commit f91baa3

Please sign in to comment.