Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

re-flow GKE note in get-started doc #1489

Merged
merged 1 commit into from
Nov 5, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 15 additions & 11 deletions site/get-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,27 @@ When using nodes of only 1 cpu (like `n1-standard-1`), an upgrade
may be stuck with not enough CPU resources. This is seen by pods
hanging in PENDING state and with:

```
```sh
$ kubectl describe pod/helloworld-... | tail -3
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning FailedScheduling 3m (x37 over 13m) default-scheduler 0/2 nodes are available: 2 Insufficient cpu.
```

### A Note on GKE with RBAC enabled

> If working on e.g. GKE with RBAC enabled, you will need to add a clusterrolebinding:
>
> ```sh
> kubectl create clusterrolebinding "cluster-admin-$(whoami)" --clusterrole=cluster-admin --user="$(gcloud config get-value core/account)"
> ```
> to avoid an error along the lines of
>
> `Error from server (Forbidden): error when creating "deploy/flux-account.yaml":
> clusterroles.rbac.authorization.k8s.io "flux" is forbidden: attempt to grant
> extra privileges:`

## Set up Flux

Get Flux:
Expand All @@ -55,16 +68,7 @@ In our example we are going to use
want to use that too, be sure to create a fork of it on Github and
add the git URL to the config file above.

If working on e.g. GKE with RBAC enabled, you will need to add a clusterrolebinding:

```sh
kubectl create clusterrolebinding "cluster-admin-$(whoami)" --clusterrole=cluster-admin --user="$(gcloud config get-value core/account)"
```
to avoid an error along the lines of

`Error from server (Forbidden): error when creating "deploy/flux-account.yaml":
clusterroles.rbac.authorization.k8s.io "flux" is forbidden: attempt to grant
extra privileges:`
## Deploying Flux to the cluster

In the next step, deploy Flux to the cluster:

Expand Down