diff --git a/manifests/cache.yaml b/manifests/cache.yaml deleted file mode 100644 index 21ff9c8..0000000 --- a/manifests/cache.yaml +++ /dev/null @@ -1,19 +0,0 @@ -apiVersion: dragonflydb.io/v1alpha1 -kind: Dragonfly -metadata: - name: ghostfolio-cache - namespace: ghostfolio -spec: - replicas: 3 - authentication: - passwordFromSecret: - name: ghostfolio-secrets - key: DRAGONFLY_PASSWORD - resources: - requests: - cpu: 500m - memory: 500Mi - limits: - cpu: 600m - memory: 750Mi - diff --git a/manifests/deployment.yaml b/manifests/deployment.yaml index 2c3d1a0..7ca778d 100644 --- a/manifests/deployment.yaml +++ b/manifests/deployment.yaml @@ -36,14 +36,9 @@ spec: - name: NODE_ENV value: production - name: REDIS_HOST - value: ghostfolio-cache.ghostfolio.svc.cluster.local + value: ghostfolio-svc.ghostfolio.svc.cluster.local - name: REDIS_PORT value: "6379" - - name: REDIS_PASSWORD - valueFrom: - secretKeyRef: - name: ghostfolio-secrets - key: DRAGONFLY_PASSWORD - name: ACCESS_TOKEN_SALT valueFrom: secretKeyRef: @@ -59,3 +54,7 @@ spec: secretKeyRef: name: ghostfolio-secrets key: JWT_SECRET_KEY + - name: redis + image: redis:7.4.2 + ports: + - containerPort: 6379 diff --git a/manifests/kustomization.yaml b/manifests/kustomization.yaml index c800493..4d1fb3a 100644 --- a/manifests/kustomization.yaml +++ b/manifests/kustomization.yaml @@ -6,7 +6,6 @@ resources: - secrets.yaml - database.yaml - database-backup.yaml - - cache.yaml - deployment.yaml - service.yaml - ingress.yaml diff --git a/manifests/service.yaml b/manifests/service.yaml index 8f391f2..86f084b 100644 --- a/manifests/service.yaml +++ b/manifests/service.yaml @@ -11,5 +11,9 @@ spec: port: 80 protocol: TCP targetPort: 3333 + - name: redis + port: 6379 + protocol: TCP + targetPort: 6379 selector: app: ghostfolio