cbdcfa3e4f
As well as exercises.
1.5 KiB
1.5 KiB
App Creation
Requirements
- Make sure you have repository with some Kubernetes manifests
- Make sure you have a Kubernetes cluster running with ArgoCD installed
Objectives
- Using the CLI or the UI, create a a new application with the following properties:
- app name: app-demo
- project: app-project
- repository URL: your repo with some k8s manifests
- namespace: default
- Verify the app was created
- Sync the app
- Verify Kubernetes resources were created
- Delete the app
Solution
UI
- Click on "New App"
- Insert application name:
app-demo
- Insert project:
app-project
- Under source put the repository URL to your GitHub repo with Kubernetes manifests
- Set the path for your application
- Under destination put the address of your Kubernetes cluster and set namespace to
default
- Click on "Create"
- Insert application name:
- Click on "Sync" button on the "app-demo" form
- Click on "Synchronize"
- Verify the Kubernetes resources were created
kubectl get deployments
- Delete the app
CLI
argocd app create app-demo \
--project app-project \
--repo https://fake.repo.address \
--path ./some_app_path \
--dest-namespace default \
--dest-server my.kubernetes.cluster
# Check app state
argocd app list
argocd app get app-demo
# Sync app state
argocd app sync app-demo
argocd app wait app-demo
# Verify kubernetes resources were created
kubectl get deployments
# Delete the app
argocd app delete app-demo