Skip to content

Commit

Permalink
Merge pull request #220 from ministryofjustice/cluster-critical-priority
Browse files Browse the repository at this point in the history
Set priority to system-cluster-critical
  • Loading branch information
tom-j-smith authored Apr 12, 2024
2 parents 57fd710 + fa356c2 commit 00e27ae
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 2 additions & 0 deletions templates/oauth2-proxy.yaml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,5 @@ redis:
# provision an instance of the redis sub-chart
enabled: true
architecture: standalone

priorityClassName: system-cluster-critical
16 changes: 15 additions & 1 deletion templates/prometheus-operator-eks.yaml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,10 @@ alertmanager:
## The external URL the Alertmanager instances will be available under. This is necessary to generate correct URLs. This is necessary if Alertmanager is not served from root of a DNS name. string false
##
externalUrl: "${ alertmanager_ingress }"

## Priority class assigned to the Pods
##
priorityClassName: system-cluster-critical


## Using default values from https://github.com/helm/charts/blob/master/stable/grafana/values.yaml
Expand Down Expand Up @@ -371,6 +375,9 @@ kube-state-metrics:
prometheus-node-exporter:
rbac:
pspEnabled: false

## Assign a PriorityClassName to pods if set
priorityClassName: system-cluster-critical

## Manages Prometheus and Alertmanager components
##
Expand All @@ -385,6 +392,9 @@ prometheusOperator:

admissionWebhooks:
enabled: false

## Assign a PriorityClassName to pods if set
priorityClassName: system-cluster-critical

## Deploy a Prometheus instance
##
Expand Down Expand Up @@ -503,6 +513,10 @@ prometheus:
##
retention: 1d

## Priority class assigned to the Pods
##
priorityClassName: system-cluster-critical

%{ if enable_prometheus_affinity_and_tolerations ~}
## Assign custom affinity rules to the prometheus instance
## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
Expand Down Expand Up @@ -543,4 +557,4 @@ prometheus:
existingSecret:
key: thanos.yaml
name: thanos-objstore-config
%{ endif ~}
%{ endif ~}

0 comments on commit 00e27ae

Please sign in to comment.