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
4 changes: 2 additions & 2 deletions charts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ charts/

1. Copy the chart directory here.
2. Run `helm dependency build charts/<name>/` only if it declares subchart dependencies
in `Chart.yaml` (the vendored charts here embed their subcharts directly, so this is
usually not needed).
in `Chart.yaml` (the charts here have no subchart dependencies, so this is usually not needed).
Only add third-party chart code that has a license allowing Intel to use and redistribute it.
3. Commit the full chart including any `charts/` subdirectory.
7 changes: 3 additions & 4 deletions charts/redis-stack/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
# Copyright (C) 2025-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
apiVersion: v2
name: redis
description: Standalone Redis Stack (with RediSearch) for shared use by agentic workloads
type: application
version: 0.1.0
version: 0.2.0
appVersion: "7.4.0"
keywords:
- redis
- memory
- vector-search
# redis-stack-server is vendored locally in charts/redis-stack-server/
# (patched to support affinity + tolerations for node scheduling).
# Do NOT add it back as a Helm dependency — helm dep update would overwrite the patch.
6 changes: 0 additions & 6 deletions charts/redis-stack/charts/redis-stack-server/Chart.yaml

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

27 changes: 0 additions & 27 deletions charts/redis-stack/charts/redis-stack-server/values.yaml

This file was deleted.

32 changes: 32 additions & 0 deletions charts/redis-stack/templates/_helpers.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{{/*
Copyright (C) 2025-2026 Intel Corporation
SPDX-License-Identifier: Apache-2.0
*/}}

{{/* Resource name shared by the Service, StatefulSet and NetworkPolicy. */}}
{{- define "redis.fullname" -}}
{{- .Values.name | trunc 63 | trimSuffix "-" }}
{{- end }}

{{/* Secret holding REDIS_PASSWORD and REDIS_URL. */}}
{{- define "redis.secretName" -}}
{{- printf "%s-credentials" (include "redis.fullname" .) }}
{{- end }}

{{/*
Selector labels. The StatefulSet selector is immutable, so this stays the single
`app` label that existing installs were created with.
*/}}
{{- define "redis.selectorLabels" -}}
app: {{ include "redis.fullname" . | quote }}
{{- end }}

{{/* Labels for every object. */}}
{{- define "redis.labels" -}}
{{ include "redis.selectorLabels" . }}
helm.sh/chart: {{ printf "%s-%s" .Chart.Name .Chart.Version }}
app.kubernetes.io/name: {{ .Chart.Name }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}
37 changes: 37 additions & 0 deletions charts/redis-stack/templates/networkpolicy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Copyright (C) 2025-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
{{- if .Values.networkPolicy.enabled }}
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: {{ include "redis.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "redis.labels" . | nindent 4 }}
spec:
podSelector:
matchLabels:
{{- include "redis.selectorLabels" . | nindent 6 }}
policyTypes: ["Ingress"]
ingress:
- from:
{{- with .Values.networkPolicy.allowedNamespaces }}
{{- range . }}
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: {{ . | quote }}
{{- end }}
# Pods in the release namespace (for example, validation jobs) are always allowed.
- podSelector: {}
{{- else }}
# No allowlist: any pod in the cluster may connect.
- namespaceSelector: {}
{{- end }}
ports:
- protocol: TCP
port: {{ .Values.port }}
{{- with .Values.networkPolicy.meshPort }}
- protocol: TCP
port: {{ . }}
{{- end }}
{{- end }}
19 changes: 19 additions & 0 deletions charts/redis-stack/templates/secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright (C) 2025-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
{{- if .Values.auth.enabled }}
{{- if empty .Values.auth.password }}
{{- fail "redis: auth.password must be set when auth.enabled is true. Pass it via --set or a custom values file." }}
{{- end }}
apiVersion: v1
kind: Secret
metadata:
name: {{ include "redis.secretName" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "redis.labels" . | nindent 4 }}
type: Opaque
stringData:
REDIS_PASSWORD: {{ .Values.auth.password | quote }}
# Redis 6+ needs a username in the URL; the built-in user is `default`.
REDIS_URL: "redis://default:{{ .Values.auth.password }}@{{ include "redis.fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local:{{ .Values.port }}"
{{- end }}
18 changes: 18 additions & 0 deletions charts/redis-stack/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright (C) 2025-2026 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
apiVersion: v1
kind: Service
metadata:
name: {{ include "redis.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "redis.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
selector:
{{- include "redis.selectorLabels" . | nindent 4 }}
ports:
- name: db
port: {{ .Values.port }}
targetPort: db
protocol: TCP
Loading
Loading