Skip to content

Commit

Permalink
docs: update documentation for init and sidecar containers support (#…
Browse files Browse the repository at this point in the history
…1526)

Signed-off-by: iam-veeramalla <[email protected]>
  • Loading branch information
iam-veeramalla authored Aug 28, 2024
1 parent a8b4eb1 commit f6d77ef
Showing 1 changed file with 94 additions and 0 deletions.
94 changes: 94 additions & 0 deletions docs/reference/argocd.md
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,53 @@ spec:
replicas: 5
```

The following example shows how to configure initContainers for the ArgoCD Application Controller component.

```yaml
apiVersion: argoproj.io/v1beta1
kind: ArgoCD
metadata:
name: example-argocd
labels:
example: controller
spec:
controller:
initContainers:
- name: argocd-init
image: nginx:latest
imagePullPolicy: Always
resources:
limits:
cpu: 50m
memory: 64Mi
requests:
cpu: 10m
memory: 32Mi
```

The following example shows how to configure sidecarContainers for the ArgoCD Application Controller component.

```yaml
apiVersion: argoproj.io/v1beta1
kind: ArgoCD
metadata:
name: example-argocd
labels:
example: controller
spec:
controller:
sidecarContainers:
- name: sidecar
image: busybox
resources:
limits:
cpu: 50m
memory: 64Mi
requests:
cpu: 10m
memory: 32Mi
```

The following example shows how to configure extra command arguments for the ArgoCD Application Controller component.

```yaml
Expand Down Expand Up @@ -1397,6 +1444,53 @@ spec:
type: ClusterIP
```

The following example shows how to configure initContainers for the ArgoCD Server component.

```yaml
apiVersion: argoproj.io/v1beta1
kind: ArgoCD
metadata:
name: example-argocd
labels:
example: controller
spec:
server:
initContainers:
- name: argocd-init
image: nginx:latest
imagePullPolicy: Always
resources:
limits:
cpu: 50m
memory: 64Mi
requests:
cpu: 10m
memory: 32Mi
```

The following example shows how to configure sidecarContainers for the ArgoCD Server component.

```yaml
apiVersion: argoproj.io/v1beta1
kind: ArgoCD
metadata:
name: example-argocd
labels:
example: controller
spec:
server:
sidecarContainers:
- name: sidecar
image: busybox
resources:
limits:
cpu: 50m
memory: 64Mi
requests:
cpu: 10m
memory: 32Mi
```

## Status Badge Enabled

Enable application status badge feature. This property maps directly to the `statusbadge.enabled` field in the `argocd-cm` ConfigMap.
Expand Down

0 comments on commit f6d77ef

Please sign in to comment.