-
Notifications
You must be signed in to change notification settings - Fork 71
docs(fix): Update README - clarify basic vs cluster install #165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -89,22 +89,21 @@ Note: `SpinnakerAccount` CRD is optional. | |
| ### Step 2: Install Operator | ||
|
|
||
| There are two modes for the operator: | ||
| - **Basic mode** installs Spinnaker in a single namespace without validating admission webhook. | ||
| - **Basic mode** installs Spinnaker into the same namespace as the Spinnaker Opertor without validating admission webhook. | ||
| - **Cluster mode** works across namespaces and requires a `ClusterRole` to perform validation. | ||
|
|
||
| The main difference between the two modes is that basic only requires a `Role` (vs a `ClusterRole`) and has no validating webhook. | ||
|
|
||
| Once installed, you should see a new deployment representing the operator. The operator watches for changes to the `SpinnakerService` objects. You can check on the status of the operator using `kubectl`. | ||
| Once installed, you should see a new deployment representing the Operator. The Operator watches for changes to the `SpinnakerService` objects. You can check on the status of the Operator using `kubectl`. | ||
|
|
||
| #### Basic install (no validating webhook) | ||
| Decide what namespace you want to use for Operator and create that namespace. We suggest `spinnaker-operator`. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It would make more sense to me to use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note, we actually have MOST of our automation setup to use "spinnaker" as where spinnaker itself is deployed to and spinnaker-operator as where operator is deployed to. Should spinnaker operator be in "spinnaker" and there be a different standard for spinnaker itself? |
||
| To install Operator run: | ||
|
|
||
| ```bash | ||
| $ kubectl apply -n <namespace> -f deploy/operator/basic | ||
| $ kubectl apply -n spinnaker-operator -f deploy/operator/basic | ||
| ``` | ||
|
|
||
| `namespace` is the namespace where you want the operator to live and deploy to. | ||
|
|
||
| #### Cluster install | ||
| To install Operator: | ||
| 1. Decide what namespace you want to use for Operator and create that namespace. We suggest `spinnaker-operator`. | ||
|
|
@@ -126,11 +125,10 @@ Spinnaker. It is likely different from the operator's namespace. | |
|
|
||
| ### Example 1: Basic Install | ||
|
|
||
| In `deploy/spinnaker/basic/spinnakerservice.yml`, change the `config.persistentStorage` section to point to an S3 bucket you own or use a different persistent storage. Also make sure to update the Spinnaker version to the [desired version](https://www.spinnaker.io/community/releases/versions/#latest-stable). | ||
| In `deploy/spinnaker/basic/spinnakerservice.yml`, change the `config.persistentStorage` section to point to an S3 bucket you own or use a different persistent storage. Also make sure to update the Spinnaker version to the [desired version](https://www.spinnaker.io/community/releases/versions/#latest-stable). Since you installed Operator in `basic` mode, you must use the `spinnaker-operator` namespace. The permissions in `basic` mode are scoped to a single namespace so it doesn't see anything in other namespaces. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There's no technical reason for that. In basic mode, you can specify the namespace on the command line ( |
||
|
|
||
| ```bash | ||
| $ kubectl create ns <spinnaker-namespace> | ||
| $ kubectl -n <spinnaker-namespace> apply -f deploy/spinnaker/basic/spinnakerservice.yml | ||
| $ $ kubectl -n spinnaker-operator apply -f deploy/spinnaker/basic/spinnakerservice.yml | ||
| ``` | ||
|
|
||
| This configuration does not contain any connected accounts, just a persistent storage. | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo
OperAtor