wip: helmfileify
This commit is contained in:
@@ -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:
|
||||
@@ -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 }}
|
||||
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user