Skip to content

Commit f49a8a0

Browse files
committed
updated quickstart
1 parent a25fa55 commit f49a8a0

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

content/documentation/quickstart.md

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ title: "Quickstart"
33
date: 2023-03-07T14:26:51+01:00
44
draft: false
55
---
6-
7-
86
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.
97

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

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

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

3230
#### Installation via Helm-Chart
3331
```
34-
kubectl apply -k setup/namespace/.
35-
helm install cpo setup/helm/operator/ -n cpo
32+
kubectl apply -n cpo -k setup/namespace/.
33+
helm install cpo -n cpo setup/helm/operator/
3634
```
3735

3836
#### Installation via apply
3937
```
40-
kubectl apply -k setup/namespace/.
41-
kubectl apply -k setup/helm/operator/. -n cpo
38+
kubectl apply -n cpo -k setup/namespace/.
39+
kubectl apply -n cpo -k setup/helm/operator/.
4240
```
4341

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

6260
```
63-
watch kubectl get pods --selector cluster-name=cluster-1
61+
watch kubectl get pods -n cpo --selector cluster-name=cluster-1
6462
```
6563
The result should look like this:
6664
```
67-
Alle 2.0s: kubectl get pods --selector cluster-name=cluster-1
65+
Alle 2.0s: kubectl get pods -n cpo --selector cluster-name=cluster-1
6866
6967
NAME READY STATUS RESTARTS AGE
7068
cluster-1-0 2/2 Running 0 28s
@@ -74,7 +72,7 @@ cluster-1-1 0/2 PodInitializing 0 9s
7472
### Step 4 - Connect to the Database
7573
Get your login information from the secret.
7674
```
77-
kubectl get secret postgres.cluster-1.credentials.postgresql.cpo.opensource.cybertec.at -o jsonpath='{.data}' | jq '.|map_values(@base64d)'
75+
kubectl get secret -n cpo postgres.cluster-1.credentials.postgresql.cpo.opensource.cybertec.at -o jsonpath='{.data}' | jq '.|map_values(@base64d)'
7876
```
7977
The result should look like this:
8078
```
@@ -86,7 +84,7 @@ The result should look like this:
8684
#### Connection via port-forward
8785

8886
```
89-
kubectl port-forward cluster-1-0 5432:5432
87+
kubectl port-forward -n cpo cluster-1-0 5432:5432
9088
```
9189

9290
```

0 commit comments

Comments
 (0)