Skip to content

Commit

Permalink
set priorityClass critical for metallb-speaker (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwennrich authored Feb 10, 2021
1 parent b0fa3c3 commit 45e4469
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion charts/internal/shoot-control-plane/templates/metallb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,9 @@ spec:
tolerations:
- effect: NoSchedule
key: node-role.kubernetes.io/master
{{- if semverCompare ">= 1.17" .Values.kubernetesVersion }}
priorityClassName: system-node-critical
{{- end }}
---
apiVersion: apps/v1
kind: Deployment
Expand Down Expand Up @@ -290,4 +293,4 @@ spec:
runAsNonRoot: true
runAsUser: 65534
serviceAccountName: controller
terminationGracePeriodSeconds: 0
terminationGracePeriodSeconds: 0
2 changes: 2 additions & 0 deletions charts/internal/shoot-control-plane/values.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
kubernetesVersion: "1.16.0"

images:
droptailer: image-repository:image-tag
metallb-speaker: image-repository:image-tag
Expand Down
3 changes: 2 additions & 1 deletion pkg/controller/controlplane/valuesprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,8 @@ func (vp *valuesProvider) getControlPlaneShootChartValues(ctx context.Context, c
}

values := map[string]interface{}{
"firewallSpec": fwSpec,
"kubernetesVersion": cluster.Shoot.Spec.Kubernetes.Version,
"firewallSpec": fwSpec,
"groupRolebindingController": map[string]interface{}{
"enabled": vp.controllerConfig.Auth.Enabled,
},
Expand Down

0 comments on commit 45e4469

Please sign in to comment.