Skip to content

Latest commit

 

History

27 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

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

Thanos stack via kube-prometheus

https://github.com/prometheus-operator/kube-prometheus

Can expose grafana service

About

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

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors