Marta is a slack chatbot that will fetch some readonly values from the Kubernetes api from inside the cluster.
Please refer to https://get.slack.help/hc/en-us/articles/115005265703-Create-a-bot-for-your-workspace
kubectl create -f k8s/roles.yaml
TODO Create a secret for the SLACK_BOT_TOKEN inside k8s.
echo -n 'SLACK_TOKEN' | base64
with the output of that command, replace in the secret.yaml the correct value for SLACK_BOT_TOKEN.
...
data:
SLACK_BOT_TOKEN: REPLACEME
...
then run
kubectl create -f k8s/secret.yaml
kubectl create -f k8s/deployment.yaml k8s/service.yaml
Make sure you have python installed, then:
EXPORT SLACK_BOT_TOKEN=TOKEN
EXPORT ENV=dev #To use local .kube/config file.
virtualenv venv/
source venv/bin/activate
pip install -r requirements.txt
python marta.py