Skip to content

Commit

Permalink
adding uninstall information (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgkanatsios committed Nov 11, 2021
1 parent 8bb8f28 commit 7b0e29a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
15 changes: 15 additions & 0 deletions docs/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,3 +228,18 @@ You can allocate a game server by using the same command as the fake game server
## Modifying standingBy and max number of servers

You can use `kubectl edit gsb <name-of-your-gameserverbuild>` to modify the max/standingBy numbers. Bear in mind that the count of active+standingBy will never be larger than the max.

## Uninstalling thundernetes

You should first remove all your GameServerBuilds. Since each GameServer has a finalizer, removing the controller before removing GameServer instances will make the GameServer instances get stuck if you try to delete them.

```bash
kubectl delete gsb --all -A # this will delete all GameServerBuilds from all namespaces, which in turn will delete all GameServers
kubectl get gs -A # verify that there are no GameServers in all namespaces
kubectl delete ns thundernetes-system # delete the namespace with all thundernetes resources
# delete RBAC resources. You might need to add namespaces for the service account and the role binding
kubectl delete clusterrole thundernetes-proxy-role thundernetes-metrics-reader thundernetes-manager-role thundernetes-gameserver-editor-role
kubectl delete serviceaccount thundernetes-gameserver-editor
kubectl delete clusterrolebinding thundernetes-manager-rolebinding thundernetes-proxy-rolebinding
kubectl delete rolebinding thundernetes-gameserver-editor-rolebinding
```
5 changes: 3 additions & 2 deletions operator/config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
images:
- name: controller
newName: ghcr.io/playfab/thundernetes-operator
newTag: 0.0.2.0
newName: thundernetes-operator
newTag: 52d2641

0 comments on commit 7b0e29a

Please sign in to comment.