Deploy NGINX on Kubernetes Using ArgoCD UI
1. Add Your GitHub Repository in ArgoCD:
Open ArgoCD UI.
Go to Settings → Repositories.
Click Connect Repo.
2. Create an Application in ArgoCD:
From ArgoCD UI, click + NEW APP.
- Fill the required fields:
Application Details
Application Name: nginx
Project: default
Source
Repository URL: Select the repo you added
Revision: main
Path: Leave empty if your YAML files (deployment.yaml, service.yaml) are in repo root
Destination
Cluster URL: Select your Kubernetes cluster
Namespace: default(or any you prefer)
Sync Policy
Manual (button left as default)
Click Create.
3. Sync the Application
Open the newly created app.
Click SYNC → SYNCHRONIZE.
ArgoCD now applies:
deployment.yaml
service.yaml
any other manifests
You should see all resources turning healthy.
4. Verify the Deployment on Kubernetes
Open your terminal and run:
kubectl get pods -n default
You should see an nginx-service pod running.
kubectl get svc -n default
Verify that the nginx service is created.
5. Access NGINX Using Port Forwarding
To verify the service in a browser:
kubectl port-forward svc/nginx 9095:80 -n default
Then open browser:
http://localhost:9095
You should now see the nginx welcome page.
About the author
I am Shradha Arsewar working as Associate software Engineer used to work as a Intern in Product Company (PTC). Likes to share knowledge
Comments
Join the discussionNo comments yet. Be the first to comment.
