Skip to content

Commit 680652f

Browse files
chore: update README.md with HA example
1 parent f0456d9 commit 680652f

File tree

2 files changed

+299
-3
lines changed

2 files changed

+299
-3
lines changed

charts/gitops-runtime/README.md

Lines changed: 151 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,154 @@ sealed-secrets:
189189
enabled: false
190190
```
191191

192+
## High Availability
193+
194+
This chart installs the non-HA version of GitOps Runtime by default. If you want to run GitOps Runtime in HA mode, you can use the example values below:
195+
196+
> **Warning:**
197+
> You need at least 3 worker nodes for HA mode
198+
199+
### HA mode with autoscaling
200+
201+
```yaml
202+
global:
203+
topologySpreadConstraints:
204+
- maxSkew: 1
205+
topologyKey: kubernetes.io/hostname
206+
whenUnsatisfiable: DoNotSchedule
207+
208+
app-proxy:
209+
replicaCount: 2
210+
pdb:
211+
enabled: true
212+
minAvailable: 1
213+
topologySpreadConstraints:
214+
- maxSkew: 1
215+
topologyKey: kubernetes.io/hostname
216+
whenUnsatisfiable: DoNotSchedule
217+
labelSelector:
218+
matchLabels:
219+
app: cap-app-proxy
220+
221+
gitops-operator:
222+
replicaCount: 2
223+
pdb:
224+
enabled: true
225+
minAvailable: 1
226+
topologySpreadConstraints:
227+
- maxSkew: 1
228+
topologyKey: kubernetes.io/hostname
229+
whenUnsatisfiable: DoNotSchedule
230+
labelSelector:
231+
matchLabels:
232+
app: gitops-operator
233+
234+
internal-router:
235+
replicaCount: 2
236+
pdb:
237+
enabled: true
238+
minAvailable: 1
239+
topologySpreadConstraints:
240+
- maxSkew: 1
241+
topologyKey: kubernetes.io/hostname
242+
whenUnsatisfiable: DoNotSchedule
243+
labelSelector:
244+
matchLabels:
245+
app: internal-router
246+
247+
cf-argocd-extras:
248+
sourcesServer:
249+
hpa:
250+
enabled: true
251+
minReplicas: 2
252+
pdb:
253+
enabled: true
254+
minAvailable: 1
255+
topologySpreadConstraints:
256+
- maxSkew: 1
257+
topologyKey: kubernetes.io/hostname
258+
whenUnsatisfiable: DoNotSchedule
259+
labelSelector:
260+
matchLabels:
261+
app.kubernetes.io/component: sources-server
262+
eventReporter:
263+
topologySpreadConstraints:
264+
- maxSkew: 1
265+
topologyKey: kubernetes.io/hostname
266+
whenUnsatisfiable: DoNotSchedule
267+
labelSelector:
268+
matchLabels:
269+
app.kubernetes.io/component: event-reporter
270+
271+
argo-cd:
272+
redis-ha:
273+
enabled: true
274+
275+
controller:
276+
replicas: 1
277+
278+
server:
279+
autoscaling:
280+
enabled: true
281+
minReplicas: 2
282+
pdb:
283+
enabled: true
284+
minAvailable: 1
285+
286+
repoServer:
287+
autoscaling:
288+
enabled: true
289+
minReplicas: 2
290+
pdb:
291+
enabled: true
292+
minAvailable: 1
293+
294+
applicationSet:
295+
replicas: 2
296+
297+
argo-workflows:
298+
controller:
299+
replicas: 2
300+
pdb:
301+
enabled: true
302+
minAvailable: 1
303+
server:
304+
autoscaling:
305+
enabled: true
306+
minReplicas: 2
307+
pdb:
308+
enabled: true
309+
minAvailable: 1
310+
311+
event-reporters:
312+
workflow:
313+
sensor:
314+
replicas: 2
315+
affinity:
316+
podAntiAffinity:
317+
requiredDuringSchedulingIgnoredDuringExecution:
318+
- labelSelector:
319+
matchExpressions:
320+
- key: sensor-name
321+
operator: In
322+
values:
323+
- workflow-reporter
324+
topologyKey: "kubernetes.io/hostname"
325+
rollout:
326+
sensor:
327+
replicas: 2
328+
affinity:
329+
podAntiAffinity:
330+
requiredDuringSchedulingIgnoredDuringExecution:
331+
- labelSelector:
332+
matchExpressions:
333+
- key: sensor-name
334+
operator: In
335+
values:
336+
- rollout-reporter
337+
topologyKey: "kubernetes.io/hostname"
338+
```
339+
192340
## Upgrading
193341
194342
### To >=0.23.3
@@ -261,14 +409,14 @@ gitops-operator:
261409
| app-proxy.image-enrichment.serviceAccount.name | string | `"codefresh-image-enrichment-sa"` | Name of the service account to create or the name of the existing one to use |
262410
| app-proxy.image.pullPolicy | string | `"IfNotPresent"` | |
263411
| app-proxy.image.repository | string | `"quay.io/codefresh/cap-app-proxy"` | |
264-
| app-proxy.image.tag | string | `"1.3727.0"` | |
412+
| app-proxy.image.tag | string | `"1.3706.0"` | |
265413
| app-proxy.imagePullSecrets | list | `[]` | |
266414
| app-proxy.initContainer.command[0] | string | `"./init.sh"` | |
267415
| app-proxy.initContainer.env | object | `{}` | |
268416
| app-proxy.initContainer.extraVolumeMounts | list | `[]` | Extra volume mounts for init container |
269417
| app-proxy.initContainer.image.pullPolicy | string | `"IfNotPresent"` | |
270418
| app-proxy.initContainer.image.repository | string | `"quay.io/codefresh/cap-app-proxy-init"` | |
271-
| app-proxy.initContainer.image.tag | string | `"1.3727.0"` | |
419+
| app-proxy.initContainer.image.tag | string | `"1.3706.0"` | |
272420
| app-proxy.initContainer.resources.limits | object | `{}` | |
273421
| app-proxy.initContainer.resources.requests.cpu | string | `"0.2"` | |
274422
| app-proxy.initContainer.resources.requests.memory | string | `"256Mi"` | |
@@ -429,7 +577,7 @@ gitops-operator:
429577
| gitops-operator.fullnameOverride | string | `""` | |
430578
| gitops-operator.image.registry | string | `"quay.io"` | defaults |
431579
| gitops-operator.image.repository | string | `"codefresh/codefresh-gitops-operator"` | |
432-
| gitops-operator.image.tag | string | `"v0.10.2"` | |
580+
| gitops-operator.image.tag | string | `"v0.11.1"` | |
433581
| gitops-operator.imagePullSecrets | list | `[]` | |
434582
| gitops-operator.nameOverride | string | `""` | |
435583
| gitops-operator.nodeSelector | object | `{}` | |

charts/gitops-runtime/README.md.gotmpl

Lines changed: 148 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,154 @@ sealed-secrets:
193193
enabled: false
194194
```
195195

196+
## High Availability
197+
198+
This chart installs the non-HA version of GitOps Runtime by default. If you want to run GitOps Runtime in HA mode, you can use the example values below:
199+
200+
> **Warning:**
201+
> You need at least 3 worker nodes for HA mode
202+
203+
### HA mode with autoscaling
204+
205+
```yaml
206+
global:
207+
topologySpreadConstraints:
208+
- maxSkew: 1
209+
topologyKey: kubernetes.io/hostname
210+
whenUnsatisfiable: DoNotSchedule
211+
212+
app-proxy:
213+
replicaCount: 2
214+
pdb:
215+
enabled: true
216+
minAvailable: 1
217+
topologySpreadConstraints:
218+
- maxSkew: 1
219+
topologyKey: kubernetes.io/hostname
220+
whenUnsatisfiable: DoNotSchedule
221+
labelSelector:
222+
matchLabels:
223+
app: cap-app-proxy
224+
225+
gitops-operator:
226+
replicaCount: 2
227+
pdb:
228+
enabled: true
229+
minAvailable: 1
230+
topologySpreadConstraints:
231+
- maxSkew: 1
232+
topologyKey: kubernetes.io/hostname
233+
whenUnsatisfiable: DoNotSchedule
234+
labelSelector:
235+
matchLabels:
236+
app: gitops-operator
237+
238+
internal-router:
239+
replicaCount: 2
240+
pdb:
241+
enabled: true
242+
minAvailable: 1
243+
topologySpreadConstraints:
244+
- maxSkew: 1
245+
topologyKey: kubernetes.io/hostname
246+
whenUnsatisfiable: DoNotSchedule
247+
labelSelector:
248+
matchLabels:
249+
app: internal-router
250+
251+
cf-argocd-extras:
252+
sourcesServer:
253+
hpa:
254+
enabled: true
255+
minReplicas: 2
256+
pdb:
257+
enabled: true
258+
minAvailable: 1
259+
topologySpreadConstraints:
260+
- maxSkew: 1
261+
topologyKey: kubernetes.io/hostname
262+
whenUnsatisfiable: DoNotSchedule
263+
labelSelector:
264+
matchLabels:
265+
app.kubernetes.io/component: sources-server
266+
eventReporter:
267+
topologySpreadConstraints:
268+
- maxSkew: 1
269+
topologyKey: kubernetes.io/hostname
270+
whenUnsatisfiable: DoNotSchedule
271+
labelSelector:
272+
matchLabels:
273+
app.kubernetes.io/component: event-reporter
274+
275+
argo-cd:
276+
redis-ha:
277+
enabled: true
278+
279+
controller:
280+
replicas: 1
281+
282+
server:
283+
autoscaling:
284+
enabled: true
285+
minReplicas: 2
286+
pdb:
287+
enabled: true
288+
minAvailable: 1
289+
290+
repoServer:
291+
autoscaling:
292+
enabled: true
293+
minReplicas: 2
294+
pdb:
295+
enabled: true
296+
minAvailable: 1
297+
298+
applicationSet:
299+
replicas: 2
300+
301+
argo-workflows:
302+
controller:
303+
replicas: 2
304+
pdb:
305+
enabled: true
306+
minAvailable: 1
307+
server:
308+
autoscaling:
309+
enabled: true
310+
minReplicas: 2
311+
pdb:
312+
enabled: true
313+
minAvailable: 1
314+
315+
event-reporters:
316+
workflow:
317+
sensor:
318+
replicas: 2
319+
affinity:
320+
podAntiAffinity:
321+
requiredDuringSchedulingIgnoredDuringExecution:
322+
- labelSelector:
323+
matchExpressions:
324+
- key: sensor-name
325+
operator: In
326+
values:
327+
- workflow-reporter
328+
topologyKey: "kubernetes.io/hostname"
329+
rollout:
330+
sensor:
331+
replicas: 2
332+
affinity:
333+
podAntiAffinity:
334+
requiredDuringSchedulingIgnoredDuringExecution:
335+
- labelSelector:
336+
matchExpressions:
337+
- key: sensor-name
338+
operator: In
339+
values:
340+
- rollout-reporter
341+
topologyKey: "kubernetes.io/hostname"
342+
```
343+
196344
## Upgrading
197345

198346
### To >=0.23.3

0 commit comments

Comments
 (0)