wip: helmfileify

This commit is contained in:
Moritz Jörg
2025-06-02 22:25:06 +02:00
committed by Moritz Jörg
parent 65d65ea126
commit a0a0f8586d
73 changed files with 1491 additions and 121 deletions
@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- _manifest.yaml
@@ -0,0 +1,5 @@
generatorOptions:
disableNameSuffixHash: true
resources:
- ../base
- nodeport.yaml
@@ -0,0 +1,6 @@
generatorOptions:
disableNameSuffixHash: true
resources:
- ../base
- nodeport.yaml
@@ -1,7 +1,7 @@
apiVersion: v1
kind: Service
metadata:
name: stagin-redis-nodeport
name: staging-redis-nodeport
spec:
externalTrafficPolicy: Cluster
ports:
+45
View File
@@ -0,0 +1,45 @@
{{- if .Values.clusterConfig.argo.enabled }}
{{- range .Values.redis.envs }}
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: {{ . }}-redis
namespace: argocd
annotations:
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
destination:
namespace: {{ . }}-redis
server: 'https://kubernetes.default.svc'
sources:
- repoURL: {{ .Values.clusterConfig.manifests }}
targetRevision: HEAD
path: helmfiles/redis
plugin:
name: helmfile
env:
- name: CLUSTER_NAME
value: {{ .Values.clusterConfig.cluster }}
project: aux
syncPolicy:
managedNamespaceMetadata:
labels:
component: aux
syncOptions:
- CreateNamespace=true
- ApplyOutOfSyncOnly=true
# - ServerSideApply=true
{{- if .Values.redis.autosync }}
automated:
prune: true
# selfHeal: false
{{- end }}
ignoreDifferences:
- group: apps
kind: StatefulSet
jqPathExpressions:
- '.spec.template.spec.containers[].resources.limits.cpu'
{{- end }}
{{- end }}
+5
View File
@@ -0,0 +1,5 @@
redis:
enabled: true
envs:
- prod
- staging
@@ -17,21 +17,20 @@ replica:
# - "--loadmodule"
# - "/opt/redis-stack/lib/rejson.so"
auth:
enabled: true
sentinel: true
password: ""
usePasswordFiles: false
existingSecretPasswordKey: ""
# existingSecret: staging-redis
master:
resources:
limits:
ephemeral-storage: 1024Mi
memory: 192Mi
requests:
cpu: 150m
ephemeral-storage: 50Mi
memory: 128Mi
#auth:
# enabled: true
# sentinel: true
# password: ""
# usePasswordFiles: false
# existingSecretPasswordKey: ""
# # existingSecret: prod-redis
#master:
# resources:
# limits:
# ephemeral-storage: 1024Mi
# memory: 192Mi
# requests:
# cpu: 150m
# ephemeral-storage: 50Mi
# memory: 128Mi
@@ -17,21 +17,20 @@ replica:
# - "--loadmodule"
# - "/opt/redis-stack/lib/rejson.so"
auth:
enabled: true
sentinel: true
password: ""
usePasswordFiles: false
existingSecretPasswordKey: ""
# existingSecret: staging-redis
master:
resources:
limits:
ephemeral-storage: 1024Mi
memory: 192Mi
requests:
cpu: 150m
ephemeral-storage: 50Mi
memory: 128Mi
#auth:
# enabled: true
# sentinel: true
# password: ""
# usePasswordFiles: false
# existingSecretPasswordKey: ""
# # existingSecret: staging-redis
#master:
# resources:
# limits:
# ephemeral-storage: 1024Mi
# memory: 192Mi
# requests:
# cpu: 150m
# ephemeral-storage: 50Mi
# memory: 128Mi
+17
View File
@@ -0,0 +1,17 @@
auth:
enabled: true
sentinel: true
password: ""
usePasswordFiles: false
existingSecretPasswordKey: ""
# existingSecret: prod-redis
master:
resources:
limits:
ephemeral-storage: 1024Mi
memory: 192Mi
requests:
cpu: 150m
ephemeral-storage: 50Mi
memory: 128Mi