Este conteúdo não está disponível no idioma selecionado.
Chapter 1. Configuring resource quota or requests
With the Argo CD custom resource (CR), you can create, update, and delete resource requests and limits for Argo CD workloads.
1.1. Configuring workloads with resource requests and limits Copiar o linkLink copiado para a área de transferência!
You can create Argo CD custom resource workloads with resource requests and limits. This is required when you want to deploy the Argo CD instance in a namespace that is configured with resource quotas.
The following Argo CD instance deploys the Argo CD workloads such as Application Controller
, ApplicationSet Controller
, Dex
, Redis
,Repo Server
, and Server
with resource requests and limits. You can also create the other workloads with resource requirements in the same manner.
1.2. Patching Argo CD instance to update the resource requirements Copiar o linkLink copiado para a área de transferência!
You can update the resource requirements for all or any of the workloads post installation.
Procedure
Update the Application Controller
resource requests of an Argo CD instance in the Argo CD namespace.
oc -n argocd patch argocd example --type='json' -p='[{"op": "replace", "path": "/spec/controller/resources/requests/cpu", "value":"1"}]' oc -n argocd patch argocd example --type='json' -p='[{"op": "replace", "path": "/spec/controller/resources/requests/memory", "value":"512Mi"}]'
oc -n argocd patch argocd example --type='json' -p='[{"op": "replace", "path": "/spec/controller/resources/requests/cpu", "value":"1"}]'
oc -n argocd patch argocd example --type='json' -p='[{"op": "replace", "path": "/spec/controller/resources/requests/memory", "value":"512Mi"}]'
1.3. Removing resource requests Copiar o linkLink copiado para a área de transferência!
You can also remove resource requirements for all or any of your workloads after installation.
Procedure
Remove the Application Controller
resource requests of an Argo CD instance in the Argo CD namespace.
oc -n argocd patch argocd example --type='json' -p='[{"op": "remove", "path": "/spec/controller/resources/requests/cpu"}]' oc -n argocd argocd patch argocd example --type='json' -p='[{"op": "remove", "path": "/spec/controller/resources/requests/memory"}]'
oc -n argocd patch argocd example --type='json' -p='[{"op": "remove", "path": "/spec/controller/resources/requests/cpu"}]'
oc -n argocd argocd patch argocd example --type='json' -p='[{"op": "remove", "path": "/spec/controller/resources/requests/memory"}]'