Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage guide #1

Open
AlexsJones opened this issue Aug 8, 2022 · 3 comments
Open

Usage guide #1

AlexsJones opened this issue Aug 8, 2022 · 3 comments

Comments

@AlexsJones
Copy link

After installation, I am not sure what I am supposed to do next.
Is it possible to have batteries included?

❯ kubectl get pods -n cnpg-system
No resources found in cnpg-system namespace.

I see the CRD's are available but as a first-time MicroK8s pg user this doesn't get me a database.

Thanks for the contribution!

@sxd
Copy link
Owner

sxd commented Aug 15, 2022

hi @AlexsJones

I've added a couple of things more like waiting for the deploy and also an example cluster to start, what do you think about it ?
Do you think we should add more?

Thanks!

@AlexsJones
Copy link
Author

This looks good and I was able to create a cluster with the example.
I suggested a change to call microk8s kubectl so that users without kubectl installed can run it as well.

cat <<EOF | microk8s kubectl apply -f -
# Example of PostgreSQL cluster
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
  name: cluster-example
spec:
  instances: 3
  storage:
    size: 1Gi
EOF


@AlexsJones
Copy link
Author

Would it be possible to link to the docs for more configuration options? passwords /storage configuration etc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants