https://github.com/niv-devops/webapp-argocd
https://github.com/niv-devops/webapp-argocd
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/niv-devops/webapp-argocd
- Owner: niv-devops
- Created: 2024-10-28T14:31:28.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-29T13:24:36.000Z (over 1 year ago)
- Last Synced: 2025-01-26T16:48:32.653Z (over 1 year ago)
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Kubernetes Manifests for Weather WebApp
This repository contains the declarative Kubernetes manifests for deploying the Weather WebApp using ArgoCD and GitOps principles.
## Repository Structure
```
manifests/
├── application-manifest.yaml # ArgoCD application definition
├── deployment.yaml # Deployment manifest for the weather webapp
├── service.yaml # Service manifest for the weather webapp
└── kustomization.yaml # Optional Kustomize configuration
```
## Getting Started
### Prerequisites
- [ArgoCD](https://argo-cd.readthedocs.io/en/stable/)
- Access to a Kubernetes cluster
### Clone the Repository
```bash
git clone https://github.com/niv-devops/webapp-argocd.git
cd webapp-argocd
```
## Deployment with ArgoCD
To deploy the Weather Web App using ArgoCD, follow these steps:
1. **Create an ArgoCD Application**:
In the ArgoCD UI, create a new application pointing to this repository and the path to the manifests.
2. **Sync the Application**:
After creation, you can sync the application to deploy the resources defined in the manifests.
## Updating the Application
To update the web app's Docker image version:
1. **Modify the Image Version**:
Edit the `deployment.yaml` file to specify the new image version.
2. **Commit Changes**:
Commit your changes to the repository. ArgoCD will automatically detect changes and can sync them to the cluster.
```bash
git add deployment.yaml
git commit -m "Update image version to "
git push origin main
```