https://github.com/andrew-the-drawer/flux-local
To experiment with GitOps (FluxCD, ArgoCD) and K8s local
https://github.com/andrew-the-drawer/flux-local
argocd fluxcd gitops k8s kind kubernetes
Last synced: over 1 year ago
JSON representation
To experiment with GitOps (FluxCD, ArgoCD) and K8s local
- Host: GitHub
- URL: https://github.com/andrew-the-drawer/flux-local
- Owner: andrew-the-drawer
- Created: 2025-01-13T11:38:21.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-31T11:10:08.000Z (over 1 year ago)
- Last Synced: 2025-01-31T11:25:18.197Z (over 1 year ago)
- Topics: argocd, fluxcd, gitops, k8s, kind, kubernetes
- Homepage:
- Size: 75.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Experimentation with Flux
- Flux: https://fluxcd.io/flux/concepts/
- Capacitor: https://github.com/gimlet-io/capacitor
## PostgreSQL
We can deploy postgreSQL cluster with [zalando-operator](https://github.com/zalando/postgres-operator)
```bash
kind create cluster --name=trung
```
Note: Sample cluster config is in [k8s-local](https://github.com/andrew-the-drawer/k8s-local/blob/main/kind/cluster.yml)
We might need to deploy LB with [cloud-provider-kind](https://github.com/kubernetes-sigs/cloud-provider-kind)
```bash
sudo cloud-provider-kind
```
Then we deploy Flux to the cluster:
```bash
flux --context=kind-trung bootstrap git \
--url=ssh://git@// \
--branch=main \
--private-key-file= \
--path trung
```
Port-forward the `trung-pooler` service (in the `default` namespace) to access to PostgreSQL database
```bash
kubectl --context=kind-trung port-forward svc/trung-pooler 54321:5432
```
and access via `postgresql://localhost:54321`
(For the user name and password, please check the K8s cluster secrets in the `default` namepsace)
To create more cluster via `postgres-operator-ui`, port-forward the service to access it:
```bash
kubectl --context=kind-trung port-forward svc/postgres-operator-ui 8081:80
```
and access via http://localhost:8081
# Thanos stack via kube-prometheus
https://github.com/prometheus-operator/kube-prometheus
Can expose grafana service