https://github.com/lfbear/gitops-demo
A GitOps demo on GitLab & ArgoCD And GitHub & FluxCD
https://github.com/lfbear/gitops-demo
Last synced: about 1 year ago
JSON representation
A GitOps demo on GitLab & ArgoCD And GitHub & FluxCD
- Host: GitHub
- URL: https://github.com/lfbear/gitops-demo
- Owner: lfbear
- Created: 2021-10-15T06:40:49.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-05-29T09:01:36.000Z (about 2 years ago)
- Last Synced: 2025-02-17T05:56:40.890Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 94.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gitops-test
This are two GitOps demos with only one source on GitLab & ArgoCD and GitHub & FluxCD, you can experience GitOps quickly by it.
This document will introduce all files in this repo.
## Common files
- `README.md`: It's me
- `main.go`:
A demo application source
- `go.mod`:
golang module's properties
- `Dockerfile`:
Docker image build description for main.go
- `kustomization.yaml`:
The entry file for Deployment
- `deployment.yaml`:
To tell Kubernetes how to create or modify instances of the pods that hold this demo application
- `service.yaml`:
The access way of this demo application
## GitLab & ArgoCD
- `.gitlab-ci.yml`:
The pipeline description in GitLab
**Modify 'variables' part in `.gitlab-ci.yml` before you experience.**
## GitHub & FluxCD
- `.github/workflows/demo.yml`:
The pipeline description in GitHub
- `clusters`:
The FluxCD system and application description files for setup
**Install FluxCD and place config files in a sub-folder in `clusters` and the `apps` folder can be reused**