From 3d771e9b0e133c705680149a28eb1d3caef0c329 Mon Sep 17 00:00:00 2001 From: Lenin Mehedy Date: Thu, 21 Sep 2023 18:05:45 +1000 Subject: [PATCH] feat: add priorityClassName Signed-off-by: Lenin Mehedy --- charts/hedera-network/templates/network-node-statefulset.yaml | 3 +++ charts/hedera-network/values.yaml | 2 ++ 2 files changed, 5 insertions(+) diff --git a/charts/hedera-network/templates/network-node-statefulset.yaml b/charts/hedera-network/templates/network-node-statefulset.yaml index 2da48ddf0..5946a58e1 100644 --- a/charts/hedera-network/templates/network-node-statefulset.yaml +++ b/charts/hedera-network/templates/network-node-statefulset.yaml @@ -48,6 +48,9 @@ spec: affinity: {{- $.Values.deployment.affinity | toYaml | nindent 8 }} {{- end }} + {{- if $.Values.deployment.priorityClassName }} + priorityClassName: {{ $.Values.deployment.priorityClassName }} + {{- end }} terminationGracePeriodSeconds: {{ $.Values.terminationGracePeriodSeconds }} volumes: - name: hgcapp-storage # change me diff --git a/charts/hedera-network/values.yaml b/charts/hedera-network/values.yaml index a05052f5f..d6bfccd14 100644 --- a/charts/hedera-network/values.yaml +++ b/charts/hedera-network/values.yaml @@ -285,6 +285,8 @@ deployment: # Use complete affinity spec starting with key "nodeAffinity:" # Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#node-affinity affinity: {} + priorityClassName: {} + podDisruptionBudget: {} # hedera node configuration # Only the name of the node is required. The rest of the configuration will be inherited from `defaults` section