mirror of
https://github.com/shadoll/helm-charts.git
synced 2026-08-28 03:27:08 +00:00
Replaces the Bitnami OCI chart wrapper previously used directly from the k3s repo (apps/redis). Standalone Deployment, password auth via existingSecret, optional persistence (defaults to emptyDir to match current usage as an ephemeral cache/session store).
18 lines
506 B
YAML
18 lines
506 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ include "redis.fullname" . }}
|
|
labels:
|
|
{{- include "redis.labels" . | nindent 4 }}
|
|
spec:
|
|
type: {{ .Values.service.type }}
|
|
selector:
|
|
{{- include "redis.selectorLabels" . | nindent 4 }}
|
|
ports:
|
|
- port: {{ .Values.service.port }}
|
|
targetPort: {{ .Values.service.port }}
|
|
protocol: TCP
|
|
{{- if and (eq .Values.service.type "NodePort") .Values.service.nodePort }}
|
|
nodePort: {{ .Values.service.nodePort }}
|
|
{{- end }}
|