Skip to content

Commit

Permalink
Fix using GOPATH in the guides
Browse files Browse the repository at this point in the history
Switch from local path to github link.
Closes googleforgames#1151.
  • Loading branch information
aLekSer committed Oct 30, 2019
1 parent 89e4a92 commit 61d1a27
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,10 @@ You need to put Base64-encoded string into caBundle field in your fleetautoscale
base64 -i ./rootCA.pem
```

Copy the output of the command above and replace the caBundle field in your text editor:
Copy the output of the command above and replace the caBundle field in your text editor (say vim) with the new value:
```
vim $GOPATH/src/agones.dev/agones/examples/webhookfleetautoscalertls.yaml
wget https://raw.githubusercontent.com/googleforgames/agones/{{< release-branch >}}/examples/webhookfleetautoscalertls.yaml
vim ./webhookfleetautoscalertls.yaml
```

#### 3. Deploy a Webhook service for autoscaling
Expand All @@ -356,10 +357,10 @@ Status: Running

#### 4. Create a Fleet Autoscaler

Let's create a Fleet Autoscaler using the following command:
Let's create a Fleet Autoscaler using the following command (caBundle should be set properly on Step 2):

```
kubectl apply -f $GOPATH/src/agones.dev/agones/examples/webhookfleetautoscalertls.yaml
kubectl apply -f ./webhookfleetautoscalertls.yaml
```

#### 5. See the fleet and autoscaler status.
Expand Down
9 changes: 6 additions & 3 deletions site/content/en/docs/Guides/Client SDKs/local.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ You will find the executables for the SDK server, one for each type of operating

- `sdk-server.windows.amd64.exe` - Windows
- `sdk-server.darwin.amd64` - macOS
- `sdk-server.linux.amd64` - Linux
- `sdk-server.linux.amd64` - Linux

To run in local mode, pass the flag `--local` to the executable.

Expand Down Expand Up @@ -62,8 +62,8 @@ happen when live as well.
For example:

```console
$ export AGONES_PATH=/home/go/src/agones.dev/agones
$ ./sdk-server.linux.amd64 --local -f ${AGONES_PATH}/examples/simple-udp/gameserver.yaml
$ wget https://raw.githubusercontent.com/googleforgames/agones/{{< release-branch >}}/examples/simple-udp/gameserver.yaml
$ ./sdk-server.linux.amd64 --local -f ./gameserver.yaml
{"ctlConf":{"Address":"localhost","IsLocal":true,"LocalFile":"/home/go/src/agones.dev/agones/examples/simple-udp/gameserver.yaml"},"grpcPort":59357,"httpPort":59358,"level":"info","msg":"Starting sdk sidecar","source":"main","time":"2018-08-25T17:56:39-07:00","version":"0.4.0-b44960a8"}
{"level":"info","msg":"Reading GameServer configuration","path":"/home/user/workspace/agones/src/agones.dev/agones/examples/simple-udp/gameserver.yaml","source":"main","time":"2018-08-25T17:56:39-07:00"}
{"level":"info","msg":"Starting SDKServer grpc service...","source":"main","time":"2018-08-25T17:56:39-07:00"}
Expand All @@ -85,6 +85,7 @@ All state transitions are supported for local SDK server, however not all of the
All changes to the GameServer state could be observed and retrieved using Watch() or GameServer() methods using GameServer SDK.

Example of using HTTP gateway locally:

```console
$ curl -X POST "http://localhost:59358/ready" -H "accept: application/json" -H "Content-Type: application/json" -d "{}"
{}
Expand All @@ -94,3 +95,5 @@ $ curl -X PUT "http://localhost:59358/metadata/label" -H "accept: application/js
$ curl -GET "http://localhost:59358/gameserver" -H "accept: application/json"}"
{"object_meta":{"creation_timestamp":"-62135596800","labels":{"agones.dev/sdk-foo":"bar"}},"spec":{"health":{}},"status":{"state":"Ready"}}
```

It is assumed that you downloaded and unzipped SDK server binary according to your OS type (in this example sdk-server.linux.amd64).

0 comments on commit 61d1a27

Please sign in to comment.