-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathvalkey_cluster_argocd_appset.yaml
122 lines (107 loc) · 3.31 KB
/
valkey_cluster_argocd_appset.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
---
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: valkey-cluster-app-set
namespace: argocd
annotations:
# wait till after secrets are populated in sync wave 1
argocd.argoproj.io/sync-wave: "2"
spec:
goTemplate: true
# generator allows us to source specific values from an external k8s secret
generators:
- plugin:
configMapRef:
name: secret-var-plugin-generator
input:
parameters:
secret_vars:
- global_storage_class
template:
metadata:
name: valkey-cluster-app
annotations:
argocd.argoproj.io/sync-wave: "2"
spec:
project: valkey
# the sync policy for this Argo CD Application
syncPolicy:
syncOptions:
- CreateNamespace=true
- ApplyOutOfSyncOnly=true
automated:
prune: true
selfHeal: true
# where this Argo CD Application should be deployed
destination:
server: https://kubernetes.default.svc
namespace: valkey
source:
repoURL: 'registry-1.docker.io'
chart: bitnamicharts/valkey-cluster
targetRevision: 3.0.2
helm:
valuesObject:
global:
storageClass: "{{ .global_storage_class }}"
fullnameOverride: "valkey"
usePassword: true
existingSecret: "valkey-credentials"
existingSecretPasswordKey: "password"
tls:
enabled: false
authClients: true
autoGenerated: false
service:
ports:
valkey: 6379
type: ClusterIP
loadBalancerIP: ""
loadBalancerSourceRanges: []
externalTrafficPolicy: Cluster
persistence:
enabled: true
path: /bitnami/valkey/data
annotations: {}
accessModes:
- ReadWriteOnce
size: 8Gi
persistentVolumeClaimRetentionPolicy:
enabled: false
whenScaled: Retain
whenDeleted: Retain
valkey:
updateStrategy:
type: RollingUpdate
rollingUpdate:
partition: 0
podManagementPolicy: Parallel
automountServiceAccountToken: false
hostNetwork: false
useAOFPersistence: "yes"
containerPorts:
valkey: 6379
bus: 16379
# definitions: https://github.com/bitnami/charts/blob/main/bitnami/common/templates/_resources.tpl#L15
# Options: nano, micro, small, medium, large, xlarge, 2xlarge
# default: nano
resourcesPreset: "micro"
cluster:
init: true
nodes: 6
replicas: 1
externalAccess:
enabled: false
hostMode: false
service:
disableLoadBalancerIP: false
type: LoadBalancer
port: 6379
loadBalancerIP: []
loadBalancerSourceRanges: []
metrics:
enabled: false
resourcesPreset: "nano"
serviceMonitor:
enabled: false