github.com/argoproj/argo-cd@v1.8.7/docs/user-guide/commands/argocd_cluster_add.md (about) 1 ## argocd cluster add 2 3 argocd cluster add CONTEXT 4 5 ### Synopsis 6 7 argocd cluster add CONTEXT 8 9 ``` 10 argocd cluster add CONTEXT [flags] 11 ``` 12 13 ### Options 14 15 ``` 16 --aws-cluster-name string AWS Cluster name if set then aws cli eks token command will be used to access cluster 17 --aws-role-arn string Optional AWS role arn. If set then AWS IAM Authenticator assume a role to perform cluster operations instead of the default AWS credential provider chain. 18 --exec-command string Command to run to provide client credentials to the cluster. You may need to build a custom ArgoCD image to ensure the command is available at runtime. 19 --exec-command-api-version string Preferred input version of the ExecInfo for the --exec-command 20 --exec-command-args stringArray Arguments to supply to the --exec-command command 21 --exec-command-env stringToString Environment vars to set when running the --exec-command command (default []) 22 --exec-command-install-hint string Text shown to the user when the --exec-command executable doesn't seem to be present 23 -h, --help help for add 24 --in-cluster Indicates Argo CD resides inside this cluster and should connect using the internal k8s hostname (kubernetes.default.svc) 25 --kubeconfig string use a particular kubeconfig file 26 --name string Overwrite the cluster name 27 --namespace stringArray List of namespaces which are allowed to manage 28 --service-account string System namespace service account to use for kubernetes resource management. If not set then default "argocd-manager" SA will be created 29 --shard int Cluster shard number; inferred from hostname if not set (default -1) 30 --system-namespace string Use different system namespace (default "kube-system") 31 --upsert Override an existing cluster with the same name even if the spec differs 32 ``` 33 34 ### Options inherited from parent commands 35 36 ``` 37 --auth-token string Authentication token 38 --client-crt string Client certificate file 39 --client-crt-key string Client certificate key file 40 --config string Path to Argo CD config (default "/home/user/.argocd/config") 41 --grpc-web Enables gRPC-web protocol. Useful if Argo CD server is behind proxy which does not support HTTP2. 42 --grpc-web-root-path string Enables gRPC-web protocol. Useful if Argo CD server is behind proxy which does not support HTTP2. Set web root. 43 -H, --header strings Sets additional header to all requests made by Argo CD CLI. (Can be repeated multiple times to add multiple headers, also supports comma separated headers) 44 --insecure Skip server certificate and domain verification 45 --logformat string Set the logging format. One of: text|json (default "text") 46 --loglevel string Set the logging level. One of: debug|info|warn|error (default "info") 47 --plaintext Disable TLS 48 --port-forward Connect to a random argocd-server port using port forwarding 49 --port-forward-namespace string Namespace name which should be used for port forwarding 50 --server string Argo CD server address 51 --server-crt string Server certificate file 52 ``` 53 54 ### SEE ALSO 55 56 * [argocd cluster](argocd_cluster.md) - Manage cluster credentials 57