Skip to content
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 valkey/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ A Helm chart for Kubernetes
| podSecurityContext.fsGroup | int | `1000` | |
| podSecurityContext.runAsGroup | int | `1000` | |
| podSecurityContext.runAsUser | int | `1000` | |
| priorityClassName | string | `""` | |
| replicaCount | int | `1` | |
| resources | object | `{}` | |
| securityContext.capabilities.drop[0] | string | `"ALL"` | |
Expand Down
4 changes: 3 additions & 1 deletion valkey/templates/deploy_valkey.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ spec:
{{- end }}
automountServiceAccountToken: {{ .Values.serviceAccount.automount }}
serviceAccountName: {{ include "valkey.serviceAccountName" . }}
{{- if .Values.priorityClassName }}
priorityClassName: {{ .Values.priorityClassName | quote }}
{{- end }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}

initContainers:
- name: {{ .Chart.Name }}-init
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
Expand Down
3 changes: 3 additions & 0 deletions valkey/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,9 @@
}
}
},
"priorityClassName": {
"type": "string"
},
"replicaCount": {
"type": "integer"
},
Expand Down
5 changes: 4 additions & 1 deletion valkey/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ podSecurityContext:
runAsUser: 1000
runAsGroup: 1000

# Priority class name for pod scheduling (leave empty to use cluster's default)
priorityClassName: ""

# Security context for the Valkey containers
securityContext:
capabilities:
Expand Down Expand Up @@ -315,4 +318,4 @@ metrics:
# increase(redis_evicted_keys_total{service="{{ include "valkey.fullname" . }}-metrics"}[5m]) > 0
# for: 1s
# labels:
# severity: error
# severity: error