BYO manifest to deploy a workload with ArgoCD
Prerequisite: For this lab, ArgoCD needs to be activated.
Deploying your applications by doing
kubectl apply -f is not ideal. You as a developer would like to automatically deploy and update your application after a new build. Otomi integrated ArgoCD to provide an out-of-the-box gitops solution.
Using ArgoCD to deploy manifests and charts
In the apps section in Otomi console, you'll see an app called ArgoCD. Click on it.
In ArgoCD you'll see that an Argo app has already been created for your team. This app is configured to synchronize any manifest that is in the created repo in Gitea for Argo.
If you click on the app and then click on
APP DETAILS, you'll see the
REPO URL and also that the
SYNC POLICY is set to
Go back to the console and click on the Gitea app in the apps section. In the list of repo's you'll now see a new repo called
To show the power of ArgoCD, let's add a manifest to the repo and see what happens.
- Create a new file in the repo called
- Add the following contents to the file:
- name: nginx
- containerPort: 8080
- port: 80
- Commit Changes
Now go back to the ArgoCD application and click on the
team<name> application. You can see that all the Kubernetes resources have been created.