Skip to content

To experiment with GitOps (FluxCD, ArgoCD) and K8s local

Notifications You must be signed in to change notification settings

andrew-the-drawer/flux-local

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

Experimentation with Flux

PostgreSQL

We can deploy postgreSQL cluster with zalando-operator

kind create cluster --name=trung

Note: Sample cluster config is in k8s-local

We might need to deploy LB with cloud-provider-kind

sudo cloud-provider-kind

Then we deploy Flux to the cluster:

flux --context=kind-trung bootstrap git \
    --url=ssh://git@<host>/<org>/<repository> \
    --branch=main \
    --private-key-file=<path/to/private.key> \
    --path trung

Port-forward the trung-pooler service (in the default namespace) to access to PostgreSQL database

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:

kubectl --context=kind-trung port-forward svc/postgres-operator-ui 8081:80

and access via http://localhost:8081

About

To experiment with GitOps (FluxCD, ArgoCD) and K8s local

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published