Skip to content

Commit

Permalink
Revert "Redis persistent volume (eclipse-symphony#362)"
Browse files Browse the repository at this point in the history
This reverts commit f370771.
  • Loading branch information
linyguo committed Jul 31, 2024
1 parent f370771 commit a3eb746
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 42 deletions.
4 changes: 0 additions & 4 deletions packages/helm/symphony/templates/redis-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,4 @@ data:
redis.conf: |
protected-mode {{ include "symphony.protectedMode" . }}
port {{ .Values.redis.port }}
appendonly yes
appendfsync always
dir data
appenddirname appendonlydir
24 changes: 0 additions & 24 deletions packages/helm/symphony/templates/redis.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,3 @@
{{- if and .Values.redis.enabled .Values.redis.persistentVolume.enabled}}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: redis-pvc
namespace: {{ .Release.Namespace }}
spec:
storageClassName: {{ .Values.redis.persistentVolume.storageclass }}
accessModes:
- {{ .Values.redis.persistentVolume.accessMode }}
resources:
requests:
storage: {{ .Values.redis.persistentVolume.size }}
{{- end }}
---
{{- if and .Values.redis.enabled (not .Values.redis.asSidecar)}}
apiVersion: apps/v1
kind: Deployment
Expand All @@ -39,22 +24,13 @@ spec:
volumeMounts:
- name: redis-config
mountPath: /usr/var/redis
{{- if .Values.redis.persistentVolume.enabled }}
- name: redis-data
mountPath: /data
{{- end }}
volumes:
- name: redis-config
configMap:
name: redis-config-map
items:
- key: redis.conf
path: redis.conf
{{- if .Values.redis.persistentVolume.enabled }}
- name: redis-data
persistentVolumeClaim:
claimName: redis-pvc
{{- end }}
---
apiVersion: v1
kind: Service
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,6 @@ spec:
volumeMounts:
- name: redis-config
mountPath: /usr/var/redis
{{- if .Values.redis.persistentVolume.enabled }}
- name: redis-data
mountPath: /data
{{- end }}
{{- end}}
{{- if .Values.global.azure.identity.mSIAdapterYaml }}
- name: msi-adapter
Expand Down Expand Up @@ -127,9 +123,4 @@ spec:
items:
- key: redis.conf
path: redis.conf
{{- if .Values.redis.persistentVolume.enabled }}
- name: redis-data
persistentVolumeClaim:
claimName: redis-pvc
{{- end }}
{{- end }}
5 changes: 0 additions & 5 deletions packages/helm/symphony/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ redis:
asSidecar: false
image: redis/redis-stack-server:latest
port: 6379
persistentVolume:
enabled: false
storageclass:
accessMode: ReadWriteOnce
size: 1Gi
kubeRbacProxy:
image: gcr.io/kubebuilder/kube-rbac-proxy:v0.8.0
parent:
Expand Down

0 comments on commit a3eb746

Please sign in to comment.