Installing Argo CD
Argo CD
Getting started
-
If you do not have the Yandex Cloud command line interface yet, install and initialize it.
The folder specified in the CLI profile is used by default. You can specify a different folder using the
--folder-name
or--folder-id
parameter. -
Make sure that the security groups for the Managed Service for Kubernetes cluster and its node groups are configured correctly. If any rule is missing, add it.
Warning
The configuration of security groups determines the performance and availability of the cluster and the services and applications running in it.
-
Install kubectl
and configure it to work with the created cluster.
Installation using Yandex Cloud Marketplace
-
Go to the folder page
and select Managed Service for Kubernetes. -
Click the cluster name and select the
Marketplace tab. -
Under Application available for installation, select Argo CD and click Go to install.
-
Configure the application:
- Namespace: Select a namespace for Argo CD or create a new one.
- Application name: Specify the app name.
-
Click Install.
-
Wait for the application to change its status to
Deployed
. -
Get the administrator password (
admin
):kubectl --namespace <namespace> get secret argocd-initial-admin-secret \ --output jsonpath="{.data.password}" | base64 -d
To access the application via localhost
:
-
Configure ArgoCD port forwarding onto the local computer:
kubectl port-forward service/<application_name>-argocd-server \ --namespace <namespace> 8080:443
-
Follow the link
http://localhost:8080
and log in with administrator credentials.
Installation using a Helm chart
-
Install Helm
v3.7.0 or higher. -
To install a Helm chart
with Argo CD, run the following command:helm pull oci://cr.yandex/yc-marketplace/yandex-cloud/argo/chart/argo-cd \ --version 7.3.11-2 \ --untar && \ helm install \ --namespace <namespace> \ --create-namespace \ argo-cd ./argo-cd/