Skip to content

Commit

Permalink
feat: add priority Class (#602) (#603)
Browse files Browse the repository at this point in the history
* add priority Class
  • Loading branch information
ypoplavs authored Aug 3, 2023
1 parent e645cd4 commit 9237c20
Show file tree
Hide file tree
Showing 10 changed files with 47 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/testkube-api/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ spec:
spec:
{{- include "global.images.renderPullSecrets" . | nindent 6 }}
serviceAccountName: {{ include "testkube-api.serviceAccountName" . }}
{{- if .Values.priorityClassName }}
priorityClassName: {{ .Values.priorityClassName }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
env:
Expand Down
3 changes: 3 additions & 0 deletions charts/testkube-api/templates/minio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ spec:
app: testkube-minio-{{ .Release.Namespace }}
spec:
{{- include "global.images.renderPullSecrets" . | nindent 6 }}
{{- if .Values.minio.priorityClassName }}
priorityClassName: {{ .Values.minio.priorityClassName }}
{{- end }}
# Volumes used by this deployment
volumes:
- name: data
Expand Down
5 changes: 5 additions & 0 deletions charts/testkube-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@ tolerations: []
## Note: podAffinityPreset, podAntiAffinityPreset, and nodeAffinityPreset will be ignored when it's set
affinity: {}

## Specify priorityClassName for Testkube API Deployment
priorityClassName: ""

## Storage for Testkube API. Now Minio is used:
storage:
endpoint: ""
Expand Down Expand Up @@ -277,6 +280,8 @@ minio:
## Read more about access modes here: http://kubernetes.io/docs/user-guide/persistent-volumes/#access-modes
accessModes:
- ReadWriteOnce
## Specify priorityClassName for Minio
priorityClassName: ""
## Node labels for pod assignment.
nodeSelector: {}
## Tolerations for pod assignment.
Expand Down
3 changes: 3 additions & 0 deletions charts/testkube-dashboard/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ spec:
spec:
{{- include "global.images.renderPullSecrets" . | nindent 6 }}
serviceAccountName: {{ include "testkube-dashboard.serviceAccountName" . }}
{{- if .Values.priorityClassName }}
priorityClassName: {{ .Values.priorityClassName }}
{{- end }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
containers:
Expand Down
3 changes: 3 additions & 0 deletions charts/testkube-dashboard/templates/oauth2-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ spec:
{{- end }}
spec:
{{- include "global.images.renderPullSecrets" . | nindent 6 }}
{{- if .Values.oauth2.priorityClassName }}
priorityClassName: {{ .Values.oauth2.priorityClassName }}
{{- end }}
containers:
- args:
{{- if .Values.oauth2.args }}
Expand Down
5 changes: 5 additions & 0 deletions charts/testkube-dashboard/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ oauth2:
volumeMounts: []
# - mountPath: /mypath
# name: git-volume
## Specify priorityClassName for OAuth2 Deployment
priorityClassName: ""
## Testkube Dashboard resource requests and limits
resources: {}
# limits:
Expand Down Expand Up @@ -230,6 +232,9 @@ tolerations: []
## Note: podAffinityPreset, podAntiAffinityPreset, and nodeAffinityPreset will be ignored when it's set
affinity: {}

## Specify priorityClassName for Testkube Dashboard Deployment
priorityClassName: ""

##Test Connection pod
testConnection:
enabled: false
3 changes: 3 additions & 0 deletions charts/testkube-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ spec:
{{- end }}
spec:
{{- include "global.images.renderPullSecrets" . | nindent 6 }}
{{- if .Values.priorityClassName }}
priorityClassName: {{ .Values.priorityClassName }}
{{- end }}
containers:
- name: kube-rbac-proxy
args:
Expand Down
3 changes: 3 additions & 0 deletions charts/testkube-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,9 @@ tolerations: []
## Note: podAffinityPreset, podAntiAffinityPreset, and nodeAffinityPreset will be ignored when it's set
affinity: {}

## Specify priorityClassName for Minio
priorityClassName: ""

##Test Connection pod
testConnection:
enabled: false
Expand Down
7 changes: 7 additions & 0 deletions charts/testkube/values-demo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ mongodb:
portName: "mongodb"
nodePort: true
clusterIP: ""
priorityClassName: "highest-priority"

nats:
# NATS container settings
Expand Down Expand Up @@ -120,6 +121,7 @@ testkube-api:
nodeSelector: {}
tolerations: []
affinity: {}
priorityClassName: "highest-priority"
image:
registry: docker.io
repository: minio/minio
Expand Down Expand Up @@ -309,6 +311,8 @@ testkube-api:
dashboardUri: ""
clusterName: ""

priorityClassName: "highest-priority"

##Test Connection pod
testConnection:
enabled: true
Expand Down Expand Up @@ -358,6 +362,7 @@ testkube-dashboard:
path: /oauth2
port: 4180
selector: k8s-app
priorityClassName: "highest-priority"
image:
repository: quay.io/oauth2-proxy/oauth2-proxy
tag: latest
Expand All @@ -369,6 +374,7 @@ testkube-dashboard:
cookieSecret: ""
cookieSecure: "false"
redirectUrl: "http://demo.testkube.io/oauth2/callback"
priorityClassName: "highest-priority"

##Test Connection pod
testConnection:
Expand All @@ -382,6 +388,7 @@ testkube-operator:

# should the CRDs be installed
installCRD: true
priorityClassName: "highest-priority"

##Proxy Image parameters
## image.registry Proxy image registry
Expand Down
12 changes: 12 additions & 0 deletions charts/testkube/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,8 @@ testkube-api:
# ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
# -- Security Context for MinIO container
securityContext: {}
## Specify priorityClassName for Minio
priorityClassName: ""

# uiIngress parameters
uiIngress:
Expand Down Expand Up @@ -521,6 +523,8 @@ testkube-api:
# ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container
# -- Security Context for testkube-api container
securityContext: {}
## Specify priorityClassName for Testkube API
priorityClassName: ""

# -- Testkube Dashboard parameters
testkube-dashboard:
Expand Down Expand Up @@ -620,6 +624,8 @@ testkube-dashboard:

# -- Force disabling telemetry on the UI
disableTelemetry: false
## Specify priorityClassName for Testkube Dashboard
priorityClassName: ""

# Oauth parameters
oauth2:
Expand Down Expand Up @@ -699,6 +705,9 @@ testkube-dashboard:
# - mountPath: /mypath
# name: git-volume

## Specify priorityClassName for OAuth2
priorityClassName: ""

# Autoscaling parameters
autoscaling:
# -- Enable autoscaling for Testkube dashboard deployment
Expand Down Expand Up @@ -988,6 +997,9 @@ testkube-operator:
# -- Affinity for Testkube Operator pod assignment.
affinity: {}

## Specify priorityClassName for Minio
priorityClassName: ""

# -- Test Connection pod
testConnection:
enabled: true
Expand Down

0 comments on commit 9237c20

Please sign in to comment.