Skip to content

Commit

Permalink
feat(cnpg-monitoring): add priorityClassName support
Browse files Browse the repository at this point in the history
  • Loading branch information
Tassatux committed Jan 10, 2025
1 parent e13fe61 commit 3757769
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/monitoring-proxy/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ apiVersion: v2
name: monitoring-proxy
description: Expose control-plane and kube-proxy metrics for monitoring, with auth when required
type: application
version: 0.2.0
version: 0.3.0
3 changes: 3 additions & 0 deletions charts/monitoring-proxy/templates/cp-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ spec:
{{- end }}
tolerations:
{{- toYaml .Values.controlPlane.tolerations | nindent 8 }}
{{- with default .Values.priorityClassName .Values.controlPlane.priorityClassName }}
priorityClassName: {{ . | quote }}
{{- end }}
containers:
{{- if or .Values.kubeControllerManager.enabled .Values.kubeScheduler.enabled }}
- name: haproxy
Expand Down
3 changes: 3 additions & 0 deletions charts/monitoring-proxy/templates/kube-proxy-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ spec:
hostNetwork: true
tolerations:
{{- toYaml .Values.kubeProxy.tolerations | nindent 8 }}
{{- with default .Values.priorityClassName .Values.kubeProxy.priorityClassName }}
priorityClassName: {{ . | quote }}
{{- end }}
containers:
- name: kube-rbac-proxy
image: {{ .Values.kubeRbacProxy.image.repository }}:{{ .Values.kubeRbacProxy.image.tag }}
Expand Down
4 changes: 4 additions & 0 deletions charts/monitoring-proxy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ serviceAccount:
podAnnotations: {}
podLabels: {}

priorityClassName: ""

haproxy:
enabled: true
image:
Expand Down Expand Up @@ -37,6 +39,7 @@ kubeRbacProxy:

controlPlane:
enabled: true
priorityClassName: ""
service:
enabled: false
nodeSelector:
Expand Down Expand Up @@ -64,6 +67,7 @@ kubeScheduler:

kubeProxy:
enabled: true
priorityClassName: ""
service:
enabled: false
port: 10249
Expand Down

0 comments on commit 3757769

Please sign in to comment.