Categorygithub.com/tamalsaha/kubedb-api-demo
repositorypackage
0.0.0-20241011154133-e858803de5f9
Repository: https://github.com/tamalsaha/kubedb-api-demo.git
Documentation: pkg.go.dev

# README

kubedb-api-demo

  1. 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! 👋
  1. 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
  1. Create Postgres object
> k apply -f pg.yaml
postgres.kubedb.com/quick-postgres created
  1. List objects
> go run main.go

Using Generated client
default/quick-postgres
Using kubebuilder client
default/quick-postgres