Skip to content
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

doc: modify user_guide with watched namespace fixed #279

Merged
merged 1 commit into from
May 24, 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
14 changes: 6 additions & 8 deletions doc/user-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ There is two ways to run the operator:

#### 1. Run as pod inside a Kubernetes cluster

Run as pod inside a Kubernetes cluster is prefered for production use.
Run as pod inside a Kubernetes cluster is preferred for production use.

Build the memcached-operator image and push it to a registry:
```
Expand Down Expand Up @@ -126,23 +126,21 @@ memcached-operator 1 1 1 1 1m

#### 2. Run outside the cluster

This method is prefered during development cycle to deploy and test faster.
This method is preferred during development cycle to deploy and test faster.

Set `WATCH_NAMESPACE` env var to specify which namespace will be watch by the operator.

Run the operator localy with the default kubernetes config file present at `$HOME/.kube/config`:
Run the operator locally with the default kubernetes config file present at `$HOME/.kube/config`:

```sh
$ WATCH_NAMESPACE="default" operator-sdk up local
$ operator-sdk up local
INFO[0000] Go Version: go1.10
INFO[0000] Go OS/Arch: darwin/amd64
INFO[0000] operator-sdk Version: 0.0.5+git
```

Run the operator localy with a provided kubernetes config file:
Run the operator locally with a provided kubernetes config file:

```sh
$ WATCH_NAMESPACE="default" operator-sdk up local --kubeconfig=config
$ operator-sdk up local --kubeconfig=config
INFO[0000] Go Version: go1.10
INFO[0000] Go OS/Arch: darwin/amd64
INFO[0000] operator-sdk Version: 0.0.5+git
Expand Down