fix: update redis to appset

This commit is contained in:
Jonas Juselius
2024-02-01 09:43:14 +01:00
parent 32be6dcbec
commit c08d825d51
6 changed files with 62 additions and 28 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ spec:
targetRevision: 12.9.0
chart: rabbitmq
helm:
valueFiles:
valueFile:
- $values/rabbitmq/{{ env }}-values.yaml
- repoURL: https://gitlab.com/oceanbox/manifests.git
targetRevision: HEAD
-27
View File
@@ -1,27 +0,0 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: redis
namespace: argocd
spec:
project: atlantis
destination:
server: https://kubernetes.default.svc
namespace: atlantis
sources:
- repoURL: https://charts.bitnami.com/bitnami
targetRevision: 18.9.1
chart: redis
helm:
values: |
architecture: replication
auth:
enabled: true
sentinel: true
password: ""
existingSecret: ""
existingSecretPasswordKey: ""
usePasswordFiles: false
- repoURL: https://gitlab.com/oceanbox/manifests
targetRevision: HEAD
path: redis/manifests
+34
View File
@@ -0,0 +1,34 @@
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: redis
namespace: argocd
spec:
generators:
- list:
elements:
- cluster: https://kubernetes.default.svc
env: prod
hostname: redis.srv.oceanbox.io
- cluster: https://kubernetes.default.svc
env: staging
hostname: redis.beta.oceanbox.io
template:
metadata:
name: '{{ env }}-redis'
spec:
project: atlantis
destination:
server: https://kubernetes.default.svc
namespace: redis
sources:
- repoURL: https://charts.bitnami.com/bitnami
targetRevision: 18.9.1
chart: redis
helm:
valueFiles:
- $values/redis/values.yaml
- repoURL: https://gitlab.com/oceanbox/manifests.git
targetRevision: HEAD
path: redis/{{ env }}
ref: values
+18
View File
@@ -0,0 +1,18 @@
apiVersion: v1
kind: Service
metadata:
name: redis-nodeport
namespace: oceanbox
spec:
externalTrafficPolicy: Cluster
ports:
- name: redis
nodePort: 31379
port: 6379
protocol: TCP
targetPort: 6379
selector:
app.kubernetes.io/instance: redis
app.kubernetes.io/name: redis
sessionAffinity: None
type: NodePort
+9
View File
@@ -0,0 +1,9 @@
architecture: replication
auth:
enabled: true
sentinel: true
password: ""
existingSecret: ""
existingSecretPasswordKey: ""
usePasswordFiles: false