An open API service indexing awesome lists of open source software.

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

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, base64

Run `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
```