Skip to content

Commit

Permalink
Merge pull request #43 from w3f/taints-and-tolerations
Browse files Browse the repository at this point in the history
added possibility to define tolerations, affinities, storageClassName
  • Loading branch information
ironoa authored Apr 25, 2022
2 parents 85c560f + 19ed908 commit 1d16c4a
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/polkadot-base-services/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
description: Base services for Polkadot Node chart.
name: polkadot-base-services
version: v0.35.2
version: v0.36.0
apiVersion: v2
2 changes: 1 addition & 1 deletion charts/polkadot-secrets/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
description: Polkadot secrets
name: polkadot-secrets
version: v0.35.2
version: v0.36.0
apiVersion: v2
2 changes: 1 addition & 1 deletion charts/polkadot/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
description: Polkadot Node chart.
name: polkadot
version: v0.35.2
version: v0.36.0
apiVersion: v2
11 changes: 11 additions & 0 deletions charts/polkadot/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,14 @@ spec:
imagePullSecrets:
- name: {{ .Values.imagePullSecret.secretName }}
{{- end }}
{{- if .Values.affinity }}
affinity:
{{ toYaml .Values.affinity | indent 8 }}
{{- end }}
{{- if .Values.tolerations }}
tolerations:
{{ toYaml .Values.tolerations | indent 8 }}
{{- end }}
containers:
- name: {{ .Release.Name }}
image: {{ .Values.image.repo }}:{{ .Values.image.tag }}
Expand Down Expand Up @@ -193,6 +201,9 @@ spec:
spec:
{{- if .Values.persistence.enabled }}
accessModes: {{ .Values.persistence.accessModes }}
{{- if .Values.persistence.storageClassName }}
storageClassName: {{ .Values.persistence.storageClassName }}
{{- end }}
resources:
requests:
storage: {{ .Values.persistence.dataSize }}
Expand Down
8 changes: 6 additions & 2 deletions charts/polkadot/values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
image:
repo: parity/polkadot
tag: v0.9.17
tag: v0.9.19

initImage:
repo: web3f/polkadot-deployer
Expand Down Expand Up @@ -44,6 +44,7 @@ persistence:
dataSize: 200Gi
chainspecSize: 1Gi
accessModes: [ "ReadWriteOnce" ]
#storageClassName: premium-rwo

dnsNameservers:
- 173.245.58.93
Expand Down Expand Up @@ -83,11 +84,14 @@ alertRulesLabels:
serviceMonitorLabels:
release: prometheus-operator

inPeers: "500"
# inPeers: "100"

# imagePullSecret:
# secretName: docker-registry-secret #k8s secret name
# imageCredentials:
# registry: registry.digitalocean.com #docker registry url
# username: username #registry username
# password: password #registry password

tolerations: []
affinity: {}

0 comments on commit 1d16c4a

Please sign in to comment.