---
# System prepended metadata

title: Demo cluster

---

# Demo cluster

Demo cluster was created on [GCP Botkube project](https://console.cloud.google.com/kubernetes/clusters/details/europe-west3-a/kasten-demo/details?project=botkube-cloud). Botkube version 1.0.0 was installed and configured with [Botkube Playground](https://temptestworkspaceco.slack.com) workspace.


Botkube was configured in the following way:

- `sre` 
   - all k8s pod errors from all namespaces
   - kubectl enabled (read-only)
   - helm enabled (read-only) 
- `backend`
  - all k8s events from `backend` namespace
  - kubectl enabled (read-only)
  - helm enabled (read-only)
- `frontend`
  - only pod errors from `frontend` namespace with enabled "show-logs-on-error" automation
  - all k8s recommendations that we have
  - only kubectl enabled (read-only)


### Recreate demo

```shell
export SLACK_APP_TOKEN="xapp-1-"
export SLACK_BOT_TOKEN="xoxb-"
helm upgrade botkube --install \
--namespace botkube  --create-namespace \
-f https://gist.github.com/mszostok/04284918f79f86e30ed9dcbd34b420a5/raw \
--set communications.default-group.socketSlack.appToken=${SLACK_APP_TOKEN} \
--set communications.default-group.socketSlack.botToken=${SLACK_BOT_TOKEN} \
botkube/botkube
```

## Kubeconfig


```shell
export KUBECONFIG=/tmp/gke-demo
gcloud container clusters get-credentials kasten-demo --zone europe-west3-a --project botkube-cloud
```

## Create example resources

### Backend channel
```
kubectl apply -f https://gist.githubusercontent.com/mszostok/e95a7c30589274ffd492413011ace446/raw -n backend
```

### Frontend channel
```
kubectl apply -f https://gist.githubusercontent.com/mszostok/e95a7c30589274ffd492413011ace446/raw -n frontend
```


### SRE channel

SRE gets all events:
```
kubectl apply -f https://gist.githubusercontent.com/mszostok/e95a7c30589274ffd492413011ace446/raw -n default
```

## NOTES

> **Important**

**Kubernetes' recommendation settings ignore the namespace restriction!** So if you have `k8s-recommendations` enabled on the frontend channel you will get all recommendation across all resources, so if Pod without labels will be created in the `backend` namespace you will see it also in the frontend channel.

See the issue: https://github.com/kubeshop/botkube/issues/1041
