This is a simple webapp authenticates with gitter oauth (github/gitlab/twitter). Once authentication is done, it calles out a bash script. The default one:
- joins a central room
- sends a welcome message
- does some kubectl magic This is all k8s workshop specific
On gitter's developer site create new app
Use redirect url as: http://gitter.yuorcustom.domain/login/callback
Store the newly generated oauth key and oauth secret in a secret:
kubectl create secret generic gitter \
--from-literal=GITTER_OAUTH_KEY=$GITTER_OAUTH_KEY \
--from-literal=GITTER_OAUTH_SECRET=$GITTER_OAUTH_SECRET
Now you can create all the k8s resources:
- deployment
- service
- ingress
export workshopNamespace
export domain=mydomain.com
curl -sL https://raw.githubusercontent.com/lalyos/gitter-scripter/master/gitter-template.yaml \
| envsubst \
| kubectl apply -f -
muhaha
- custom script from web form
- several modular script, probably with plugn or pluginhook