Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add priorityClassName spec to akv2k8s controller deployment #60

Merged
merged 1 commit into from
Apr 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions stable/akv2k8s/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ kubectl apply -f https://raw.githubusercontent.com/SparebankenVest/azure-key-vau
| controller.serviceAccount.create | bool | `true` | Create service account for controller |
| controller.serviceAccount.name | string | `nil` | The name of the ServiceAccount to use. If not set and create is true, a name is generated using the fullname template |
| controller.podSecurityContext | string | `nil` | Security context set on a pod level |
| controller.priorityClassName | string | `""` | Controller PriorityClass name |
| controller.securityContext.allowPrivilegeEscalation | bool | `true` | Must be `true` if using aks identity |
| controller.service.type | string | `"ClusterIP"` | |
| controller.service.externalHttpPort | int | `9000` | External metrics port |
Expand Down
3 changes: 3 additions & 0 deletions stable/akv2k8s/templates/controller-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ spec:
{{ toYaml .Values.controller.podLabels | nindent 8 }}
{{- end }}
spec:
{{- if .Values.controller.priorityClassName }}
priorityClassName: {{ .Values.controller.priorityClassName | indent 4}}
{{- end }}
{{- if .Values.controller.podSecurityContext }}
securityContext:
{{ toYaml .Values.controller.podSecurityContext | nindent 8 }}
Expand Down
3 changes: 3 additions & 0 deletions stable/akv2k8s/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ controller:
# -- Security context set on a pod level
podSecurityContext:

# -- Controller PriorityClass name
priorityClassName: ""

securityContext:
# -- Must be `true` if using aks identity
allowPrivilegeEscalation: true
Expand Down