Skip to content

Commit

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

Signed-off-by: iam-veeramalla <[email protected]>
Co-authored-by: Abhishek Veeramalla <[email protected]>
  • Loading branch information
gcp-cherry-pick-bot[bot] and iam-veeramalla authored Aug 28, 2024
1 parent ef2758d commit ee05317
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 ee05317

Please sign in to comment.