https://github.com/stefanprodan/openfaas-colorisebot-gke-weave
OpenFaaS colorisebot on GKE and Weave Cloud
https://github.com/stefanprodan/openfaas-colorisebot-gke-weave
Last synced: about 1 month ago
JSON representation
OpenFaaS colorisebot on GKE and Weave Cloud
- Host: GitHub
- URL: https://github.com/stefanprodan/openfaas-colorisebot-gke-weave
- Owner: stefanprodan
- License: mit
- Created: 2017-11-25T14:26:27.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-01T22:02:48.000Z (over 7 years ago)
- Last Synced: 2025-02-05T11:36:06.890Z (3 months ago)
- Language: Shell
- Size: 29.3 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# openfaas-colorisebot-gke-weave
OpenFaaS colorisebot GKE deployment instrumented with Weave Cloud
### Setup
Prerequisites:
* gcloud
* kubectl
* mc
* faas-cli
* jq, awk, base64Run `gcloud init` and set the default zone to `europe-west1-d`.
Create the GKE cluster:
```bash
./cluster-up.sh
```Deploy OpenFaaS services, Weave Cloud agents, Caddy, Nats, Minio, Colorisebot services and functions:
```bash
basic_auth_user= \
basic_auth_password= \
twitter_account= \
twitter_consumer_key= \
twitter_consumer_secret= \
twitter_access_token= \
twitter_access_token_secret= \
minio_access_key= \
minio_secret_key= \
weave_token= \
./openfaas-up.sh
```### Components
Namespace openfaas:
```bash
$ kubectl -n openfaas get deployments
NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
alertmanager 1 1 1 1 3h
caddy 1 1 1 1 3h
faas-netesd 1 1 1 1 3h
gateway 1 1 1 1 3h
nats 1 1 1 1 3h
prometheus 1 1 1 1 3h
tweetlistener 1 1 1 1 3h
```Namespace openfaas-fn:
```bash
$ kubectl -n openfaas-fn get deployments
NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
colorization 4 4 4 4 3h
mailbox 1 1 1 1 3h
minio 1 1 1 1 3h
normalisecolor 4 4 4 4 3h
queue-worker 16 16 16 16 3h
tweetpic 1 1 1 1 3h
```