Skip to content

Commit

Permalink
updated quickstart
Browse files Browse the repository at this point in the history
  • Loading branch information
Schmaetz committed Aug 27, 2024
1 parent a25fa55 commit f49a8a0
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions content/documentation/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ title: "Quickstart"
date: 2023-03-07T14:26:51+01:00
draft: false
---


We can tell and document so much about our project but it seems you just want to get started. Let us show you the fastest way to use CPO.

## Preconditions
Expand All @@ -16,7 +14,7 @@ We can tell and document so much about our project but it seems you just want to
## Let's start

### Step 1 - Preparations
To get started, you can fork or clone our tutorial repository on Github and then download it.
To get started, you can fork our tutorial repository on Github and then download it.
[CYBERTEC-operator-tutorials](https://github.com/cybertec-postgresql/CYBERTEC-operator-tutorials/fork)

```
Expand All @@ -31,14 +29,14 @@ Two options are available for the installation:

#### Installation via Helm-Chart
```
kubectl apply -k setup/namespace/.
helm install cpo setup/helm/operator/ -n cpo
kubectl apply -n cpo -k setup/namespace/.
helm install cpo -n cpo setup/helm/operator/
```

#### Installation via apply
```
kubectl apply -k setup/namespace/.
kubectl apply -k setup/helm/operator/. -n cpo
kubectl apply -n cpo -k setup/namespace/.
kubectl apply -n cpo -k setup/helm/operator/.
```

You can check if the operator pod is in operation.
Expand All @@ -56,15 +54,15 @@ The operator is ready and the setup is complete. The next step is the creation o
### Step 3 - Create a Cluster
To create a simple cluster, the following command is sufficient
```
kubectl apply -f cluster-tutorials/single-cluster
kubectl apply -n cpo -f cluster-tutorials/single-cluster
```

```
watch kubectl get pods --selector cluster-name=cluster-1
watch kubectl get pods -n cpo --selector cluster-name=cluster-1
```
The result should look like this:
```
Alle 2.0s: kubectl get pods --selector cluster-name=cluster-1
Alle 2.0s: kubectl get pods -n cpo --selector cluster-name=cluster-1
NAME READY STATUS RESTARTS AGE
cluster-1-0 2/2 Running 0 28s
Expand All @@ -74,7 +72,7 @@ cluster-1-1 0/2 PodInitializing 0 9s
### Step 4 - Connect to the Database
Get your login information from the secret.
```
kubectl get secret postgres.cluster-1.credentials.postgresql.cpo.opensource.cybertec.at -o jsonpath='{.data}' | jq '.|map_values(@base64d)'
kubectl get secret -n cpo postgres.cluster-1.credentials.postgresql.cpo.opensource.cybertec.at -o jsonpath='{.data}' | jq '.|map_values(@base64d)'
```
The result should look like this:
```
Expand All @@ -86,7 +84,7 @@ The result should look like this:
#### Connection via port-forward

```
kubectl port-forward cluster-1-0 5432:5432
kubectl port-forward -n cpo cluster-1-0 5432:5432
```

```
Expand Down

0 comments on commit f49a8a0

Please sign in to comment.