repositorypackage
0.0.0-20241011154133-e858803de5f9
Repository: https://github.com/tamalsaha/kubedb-api-demo.git
Documentation: pkg.go.dev
# README
kubedb-api-demo
- Create a Kind cluster
> kind create cluster
Creating cluster "kind" ...
â Ensuring node image (kindest/node:v1.23.4) đŧ
â Preparing nodes đĻ
â Writing configuration đ
â Starting control-plane đšī¸
â Installing CNI đ
â Installing StorageClass đž
Set kubectl context to "kind-kind"
You can now use your cluster with:
kubectl cluster-info --context kind-kind
Have a nice day! đ
- Register Postgres CRD
> kubectl create -f https://raw.githubusercontent.com/kubedb/apimachinery/v0.26.0/crds/kubedb.com_postgreses.yaml
customresourcedefinition.apiextensions.k8s.io/postgreses.kubedb.com created
- Create Postgres object
> k apply -f pg.yaml
postgres.kubedb.com/quick-postgres created
- List objects
> go run main.go
Using Generated client
default/quick-postgres
Using kubebuilder client
default/quick-postgres