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
Also backfills some missing terraform docs. I think we probably need to devote an entire section to the terraform provider but not handling that for now. We'd also ideally embed a getting started video in here.
Copy file name to clipboardExpand all lines: pages/deployments/cli-quickstart.md
+44-13Lines changed: 44 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,36 +14,67 @@ This guide goes over how to deploy your services with the Plural CLI. At the end
14
14
15
15
## Onboard to Plural and install the Plural Console
16
16
17
-
If you haven't already, you'll need to follow the Plural guide to install Console. You can use the guide for the [in-browser Cloud Shell](/getting-started/cloud-shell-quickstart) or the [CLI](/getting-started/quickstart)to get started.
17
+
If you haven't already, you'll need to follow the Plural guide to install Console. There are two recommended ways to do this:
18
18
19
-
{% callout severity="info" %}
20
-
`plural cd` is an alias for `plural deployments`, and can be used interchangeably within the CLI.
19
+
-[Bring Your Own Cluster](/deployments/existing-cluster) - you've created a kubernetes cluster your way with all the main prequisites. You can use helm to install the management plane and then use the Console to manage itself from there.
20
+
-`plural up` - a single command to create a new management cluster on the major clouds, wire up a basic GitOps setup and get you started.
21
+
22
+
Both are pretty flexible, and even if you chose to use the BYOK method, we recommend looking into some of our example `plural up` repos to get some ideas on how to use our CRDs and terraform provider with all the other tools they'll commonly touch. You can see an example `plural up` repository [here](https://github.com/pluralsh/plural-up-demo).
23
+
24
+
## Use `plural up` to create your first management console
25
+
26
+
First you'll want to follow our guide [here](getting-started/cli-quickstart) to install our CLI. Once you've done this, you'll simply run:
27
+
28
+
```sh
29
+
plural up # optionally add --service-account <email> if you want to use a service account to group manage this console
30
+
```
31
+
32
+
{% callout severity="warn" %}
33
+
`plural up` is best run in an empty repo. That will let it oauth to github/gitlab and create the repository for you, alongside registering pull deploy keys to register it in your new console.
21
34
{% /callout %}
22
35
23
-
## Set Environment Variables
36
+
This will do a few things:
37
+
38
+
- create a new repo to house your IaC and yaml manifests
39
+
- execute terraform to create the new cluster
40
+
- execute another terraform stack to provision the GitOps setup for the Plural Console and any other services you'd like to deploy from that repo
41
+
42
+
We've also generated a README that should give an overview of how the repo can be used for things like:
43
+
44
+
- creating and registering new workload clusters with terraform
45
+
- adding new services in the main infra repo
46
+
- handling updates to the cluster terraform at your own pace
24
47
25
-
If you haven't already, you'll need to set your Console URL and Console token. Set them with:
48
+
## Set Up the `plural cd` CLI
49
+
50
+
If you'd like to configure the plural cli to communicate with your new Console instance, the configuration process is pretty simple, you'll need to set your Console URL and Console token. Set them with:
26
51
27
52
```
28
53
PLURAL_CONSOLE_URL
29
54
PLURAL_CONSOLE_TOKEN
30
55
```
31
56
32
-
## Create Clusters
57
+
or alternatively you can run `plural cd login` to set them to a config file within `~/.plural`
33
58
34
-
To deploy additional clusters, use the `plural cd clusters create` command. As an example:
59
+
{% callout severity="info" %}
60
+
`plural cd` is an alias for `plural deployments`, and can be used interchangeably within the CLI.
61
+
{% /callout %}
35
62
36
-
```
37
-
plural cd clusters create --handle <CLUSTER_HANDLE> --version <K8s_VERSION> CLUSTER_NAME
38
-
```
63
+
## List Clusters, Services, Repositories
64
+
65
+
The following commands can help you list a lot of the clusters, services, etc that have already been registered:
39
66
40
-
To import an existing cluster, see the guide for [existing clusters](/deployments/existing-cluster).
67
+
```sh
68
+
plural cd clusters list
69
+
plural cd services list @{cluster-handle}
70
+
plural cd repositories list
71
+
```
41
72
42
73
## Import Git Repositories and Deploy services
43
74
44
75
You'll need to then import the Git repository containing your service and the associated Kubernetes manifests. To do so, use `plural cd repositories create`:
45
76
46
-
```
77
+
```sh
47
78
plural cd repositories create --url <REPO_URL>
48
79
```
49
80
@@ -53,7 +84,7 @@ To then deploy your service, find the repo ID for the service you want to deploy
53
84
54
85
You can then use the `plural cd services create` command:
Copy file name to clipboardExpand all lines: pages/deployments/cluster-cost.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,9 +19,14 @@ We recommend you configure it as a global service, as that will ensure it's inst
19
19
20
20
## How Kubernetes Node Autoscaling Works
21
21
22
-
Kubernetes has its own mechanism of managing autoscaling. Instead of using familiar patterns like EC2 autoscaling groups, ultimately keyed on CPU or memory utilization, kubernetes will add or removed nodes based on whether there are outstanding pods that cannot be scheduled to any worker given the currently configured pod requests.
22
+
Kubernetes has its own mechanism of managing autoscaling. Instead of using familiar patterns like EC2 autoscaling groups, ultimately keyed on CPU or memory utilization, kubernetes will add or remove nodes based on whether there are outstanding pods that cannot be scheduled to any worker given the currently configured pod requests.
23
23
24
+
<<<<<<< Updated upstream
24
25
There are also some other constraints that kubernetes will cause autoscaling for, e.g. pods that have scheduling constraints preventing them to be scheduling on the same nodes as other (thus requiring a new node), pods that must be in a specific availability zone or other node pool, pods that must remain due to a PodDisruptionBudget.
26
+
=======
27
+
There are also some other constraints that kubernetes will cause autoscaling for, eg pods that have scheduling constraints preventing them to be scheduling on the same nodes as others (thus requiring a new node), pods that must be in a specific availability zone or other node pool, pods that must remain due to a PodDisruptionBudget.
28
+
29
+
> > > > > > > Stashed changes
25
30
26
31
This does lead to much more powerful autoscaling constructs but can lead to a bit of confusion for new users. To leverage kubernetes autoscaling properly you'll need to be sure you're putting sane resource requests on your pods and also have some of those edge cases in mind.
Copy file name to clipboardExpand all lines: pages/deployments/import-cluster.md
+15-3Lines changed: 15 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,9 @@ description: Set Up deployments to an existing, self-managed cluster
5
5
6
6
## Overview
7
7
8
-
Most users will have created a significant amount of kubernetes infrastructure with tooling like terraform, pulumi or other forms of infrastructure automation. You can easily configure deployments to these clusters by installing our agent with a single command, and Plural CD will manage that agent from then on without any manual intervention.
8
+
Most users will have created a significant amount of kubernetes infrastructure with tooling like terraform, pulumi or other forms of infrastructure automation. It's also very common for users to prefer sticking with their tried-and-true IaC patterns rather than futzing with cluster api, which we completely appreciate and wish to support fully.
9
+
10
+
You can easily configure deployments to these clusters by installing our agent with a single command, and Plural CD will manage that agent from then on without any manual intervention.
Copy file name to clipboardExpand all lines: pages/deployments/services-deploy.md
+65-1Lines changed: 65 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,70 @@ You can find the repo-id for your desired repository by running `plural cd repos
27
27
28
28
You should then see your service show up when calling `plural cd services list`.
29
29
30
+
## Create Using GitOps
31
+
32
+
We definitely recommend you read over our [operator docs](deployments/using-operator) to see the various CRDs you can use to define your services and patterns available there. For most use cases this will be the most robust workflow.
33
+
30
34
## Create Using Terraform
31
35
32
-
Coming Soon!
36
+
There are some times where you'd still want to use terraform to create a service, a common pattern would be in bootstrapping the environment for a team or something similar.
0 commit comments