diff --git a/README.md b/README.md index d9f772e995d53fa45cfdb7284d1827a6621b55ac..fef6372cbbc70eefce5838d5e00da12fba8ac0fc 100644 --- a/README.md +++ b/README.md @@ -67,20 +67,34 @@ Provide gitlab credentials ```console $ kubectl -n dspace-dev create -f gitlab-scientificnet-org-registry.yaml ``` - +```console +$ kubectl -n dspace-dev create -f rbd-secret.yaml +``` ## PostgreSQL To install PostgreSQL, we need some passwords, so we need Kubernetes secrets ```console $ kubectl -n dspace-dev create -f postgresql-secret.yaml secret "dspace-postgresql" created +``` +```console +$ kubectl -n dspace-dev create -f dspace-secrets.yaml +secret "dspace-secrets" created +``` + +```console $ kubectl -n dspace-dev get secrets -NAME TYPE DATA AGE -default-token-c1pd4 kubernetes.io/service-account-token 3 4d -dspace-postgresql Opaque 1 18s +NAME TYPE DATA AGE +ceph-rbd-secret kubernetes.io/rbd 1 14m +default-token-c1pd4 kubernetes.io/service-account-token 3 4d +dspace-postgresql Opaque 1 1h +dspace-secrets Opaque 1 1m +gitlab-scientificnet-org-registry kubernetes.io/dockerconfigjson 1 46m ``` + + Next, create a RBD Claim ```console $ kubectl -n dspace-dev create -f postgresql-pvc.yaml @@ -97,5 +111,19 @@ $ kubectl -n dspace-dev create -f postgresql.yaml $ kubectl -n dspace-dev get po NAME READY STATUS RESTARTS AGE -dspace-postgresql-1806947503-cj077 0/1 ContainerCreating 0 27s +dspace-postgresql-1806947503-cj077 0/1 ContainerCreating 0 2s + +$ kubectl -n dspace-dev get po +NAME READY STATUS RESTARTS AGE +dspace-postgresql-1806947503-qw8q4 0/1 Running 0 9s + +$ kubectl -n dspace-dev get po +NAME READY STATUS RESTARTS AGE +dspace-postgresql-1806947503-qw8q4 1/1 Running 0 46s +``` + +when the container will be in running +```console +$ kubectl -n dspace-dev exec -it dspace-postgresql-1806947503-qw8q4 bash +root@dspace-postgresql-1806947503-qw8q4:/# ``` \ No newline at end of file