You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/en/docs-dev/quickstart/_index.md
+57-50Lines changed: 57 additions & 50 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,119 +6,126 @@ description: >
6
6
This page describes how to quickly get started with PipeCD on Kubernetes.
7
7
---
8
8
9
-
PipeCD is constructed by two components: the Control plane and the piped (agent) (ref:[PipeCD concepts](../concepts/)). The control plane can be thought of as a regular web service application that can be installed anywhere, while the piped agent is a single binary that can run as a pod in a Kubernetes cluster, a container on ECS, a serverless function like Lambda, Cloud Run, or a process running directly on your local machine.
9
+
PipeCD consists of two components: the Control Plane and the piped agent (see[PipeCD concepts](../concepts/)). The Control Plane is a regular web service application that can be installed anywhere, while the piped agent is a single binary that can run as a pod in a Kubernetes cluster, a container on ECS, a serverless function on Lambda or Cloud Run, or a process running directly on your local machine.
10
10
11
-
This page is a guideline for installing PipeCD (both two components) into your Kubernetes cluster and deploying a "hello world" application to that same Kubernetes cluster.
11
+
This page walks you through installing both components into your Kubernetes cluster and deploying a "hello world" application to that same Kubernetes cluster.
12
12
13
-
Note:
14
-
15
-
- It's not required to install the PipeCD control plane to the cluster where your applications are running. Please read this [blog post](/blog/2021/12/29/pipecd-best-practice-01-operate-your-own-pipecd-cluster/) to understand more about PipeCD in real life use cases.
16
-
- If you want to experiment with PipeCD freely or don't have a Kubernetes cluster, we recommend [this Tutorial](https://github.com/pipe-cd/tutorial).
13
+
> **Note:**
14
+
> - You don't need to install the PipeCD Control Plane on the cluster where your applications are running. See this [blog post](/blog/2021/12/29/pipecd-best-practice-01-operate-your-own-pipecd-cluster/) to understand how PipeCD is operated in real life use cases.
15
+
> - If you want to experiment with PipeCD freely or don't have a Kubernetes cluster, we recommend [this Tutorial](https://github.com/pipe-cd/tutorial).
17
16
18
17
### Prerequisites
19
-
- Having a Kubernetes cluster and connect to it via [kubectl](https://kubernetes.io/docs/tasks/tools/install-kubectl/).
18
+
- A running Kubernetes cluster, such as [minikube](https://minikube.sigs.k8s.io/docs/start/) or [kind](https://kind.sigs.k8s.io/docs/user/quick-start/).
19
+
-[kubectl](https://kubernetes.io/docs/tasks/tools/install-kubectl/) installed and connected to the cluster.
20
20
21
21
### 1. Installing PipeCD in quickstart mode
22
22
23
-
Across the [PipeCD concepts](/docs/concepts/), PipeCD platform is constructed by 2 components: Control Plane and Piped (the agent).
The PipeCD control plane will be installed with a default project named `quickstart`. To access the PipeCD Control Plane UI, run the following command
30
+
The Control Plane pods pull their container images on the first run, which can take a few minutes. Wait until all pods are `1/1 Running` with `kubectl get pod -n pipecd`.
31
+
32
+
The PipeCD Control Plane is installed with a default project named `quickstart`. To access the PipeCD console, run:
33
33
34
-
```console
35
-
$ kubectl port-forward -n pipecd svc/pipecd 8080
34
+
```bash
35
+
kubectl port-forward -n pipecd svc/pipecd 8080
36
36
```
37
37
38
-
You can access the PipeCD console at [http://localhost:8080?project=quickstart](http://localhost:8080?project=quickstart)
38
+
You can access the PipeCD console at [http://localhost:8080?project=quickstart](http://localhost:8080?project=quickstart).
39
39
40
40
For this quickstart setup, the project name is fixed to `quickstart`. If you open `http://localhost:8080` directly, enter `quickstart` on the login screen.
41
41
42
-
To login, you can use the configured static admin account as below:
43
-
- username: `hello-pipecd`
44
-
- password: `hello-pipecd`
42
+
To log in, use the configured static admin account:
43
+
-**username**: `hello-pipecd`
44
+
-**password**: `hello-pipecd`
45
45
46
-
And you will access the main page of PipeCD Control Plane console, which looks like this
46
+
After logging in, you will see the main page of the PipeCD console, which looks like this:
47
47
48
48

49
49
50
-
For more about PipeCD control plane management, please check [Managing Control Plane](/docs/user-guide/managing-controlplane/).
50
+
For more about PipeCD Control Plane management, see [Managing Control Plane](../user-guide/managing-controlplane/).
51
51
52
52
#### 1.2. Installing Piped
53
53
54
-
Next, in order to perform CD tasks, you need to install a Piped agent to the cluster.
54
+
Next, install a piped agent to the cluster to perform CD tasks.
55
55
56
-
From your logged in tab, navigate to the PipeCD setting page at [http://localhost:8080/settings/piped?project=quickstart](http://localhost:8080/settings/piped?project=quickstart).
56
+
From your logged in tab, navigate to the piped settings page at [http://localhost:8080/settings/piped?project=quickstart](http://localhost:8080/settings/piped?project=quickstart).
57
57
58
-
You will find the `+ADD` button around the top left of this page, click there and insert information to register the Piped agent (for example, `dev`).
58
+
Click the `+ADD` button at the top left of the pageand enter a name for the piped agent (for example, `dev`).
59
59
60
60

61
61
62
-
Click on the `Save` button, and then you can see the piped-id and secret-key.
62
+
Click the `Save` button, and then you can see the generated piped ID and secretkey.
63
63
64
64

65
65
66
-
You need to copy two values, `Piped Id`and `Base64 Encoded Piped Key`, and fill in `<COPIED_PIPED_ID>` and `<COPIED_ENCODED_PIPED_KEY>` respectively this below command
66
+
> **Note:** The `Piped Id`is the UUID generated after you click `Save` (for example, `7c17c8f8-...`), not the name you entered while registering. Using the name instead of the UUID causes an `unable to find piped from datastore` error in the piped logs.
Copy the two values, `Piped Id` and `Base64 Encoded Piped Key`, and fill them in `<COPIED_PIPED_ID>` and `<COPIED_ENCODED_PIPED_KEY>` respectively in the command below:
You can check the readiness of all PipeCD components via command:
82
+
83
+
```bash
84
+
kubectl get pod -n pipecd
85
+
```
86
+
87
+
```
88
+
NAME READY STATUS RESTARTS AGE
89
+
pipecd-cache-56c7c65ddc-xqcst 1/1 Running 0 38m
90
+
pipecd-gateway-58589b55f9-9nbrv 1/1 Running 0 38m
91
+
pipecd-minio-677999d5bb-xnb78 1/1 Running 0 38m
92
+
pipecd-mysql-6fff49fbc7-hkvt4 1/1 Running 0 38m
93
+
pipecd-ops-779d6844db-nvbwn 1/1 Running 0 38m
94
+
pipecd-server-5769df7fcb-9hc45 1/1 Running 0 38m
95
+
piped-8477b5d55d-74s5v 1/1 Running 0 97s
91
96
```
92
97
93
98
### 2. Deploy a Kubernetes application with PipeCD
94
99
95
-
Above is all that is necessary to set up your own PipeCD (both control plane and agent), let's use the installed one to deploy your first Kubernetes application with PipeCD.
100
+
Your PipeCD installation (both Control Plane and agent) is now complete. Let's use it to deploy your first Kubernetes application with PipeCD.
96
101
97
102
Navigate to the `Applications` page, click on the `+ADD` button on the top left corner.
98
103
99
104
Go to the `ADD FROM SUGGESTIONS` tab, then select:
100
105
- Piped that you have just registered (e.g. `dev`)
101
106
- PlatformProvider: `kubernetes-default`
102
107
103
-
You should see a lot of suggested applications. Select one of listed applications and click the `SAVE` button to register.
108
+
> **Note:** The piped agent needs a minute or two after connecting to clone the examples repository and discover applications. If the list is empty, wait a moment and reload the page.
109
+
110
+
You should see a list of suggested applications. Select one and click the `SAVE` button to register it.
After a bit, the first deployment is complete and will automatically sync the application to the state specified in the current Git commit.
114
+
The first deployment starts automatically and syncs the application to the state specified in the current Git commit.
108
115
109
116

110
117
111
-
For more about managing applications' deployment with PipeCD, refer to [Managing application](/docs/user-guide/managing-application/)
118
+
For more about managing applications' deployment with PipeCD, see [Managing application](../user-guide/managing-application/).
112
119
113
120
### 3. Cleanup
114
-
When you’re finished experimenting with PipeCD quickstart mode, you can uninstall it using:
121
+
When you're finished experimenting with PipeCD quickstart mode, you can uninstall it using:
115
122
116
-
```console
117
-
$ kubectl delete ns pipecd
123
+
```bash
124
+
kubectl delete ns pipecd
118
125
```
119
126
120
127
### What's next?
121
128
122
-
To prepare your PipeCD for a production environment, please visit the [Installation](../installation/)guideline. For guidelines to use PipeCD to deploy your application in daily usage, please visit the [User guide](../user-guide/) docs.
129
+
To prepare your PipeCD for a production environment, see the [Installation](../installation/)guide. For guidelines to use PipeCD to deploy your application in daily usage, see the [User guide](../user-guide/) docs.
123
130
124
-
To set up the development environment and start contributing to PipeCD, please visit the [Contributor guide](../contribution-guidelines/) docs.
131
+
To set up the development environment and start contributing to PipeCD, see the [Contributor guide](../contribution-guidelines/) docs.
0 commit comments