To deploy the cluster on Google Cloud Platform there is a terraform script in the folder terraform.
- Update terraform.tfvars with the correct values for your Google cloud user and project
- Update credentials.json accordingly (retrievable from Google Cloud Platform)
- Provide an ssh key pair called ow-gcp-key, which will be used to setup ssh access for ansible
- Run
terraform apply
in terraform folder in order to deploy 8 virtual machines (1 K8S master, 3 OpenWhisk controllers and 4 Invokers) - Wait a few seconds and move into ansible folder
- Run
ansible-playbook cluster.yaml
to deploy a K8S cluster and OpenWhisk on top of it
You're good to go. To set up the wsk command-line tool to be used with the deployed platform, checkout the official repository.
You can see the IPs of the deployed machines in the file hosts.ini in the ansible folder (after running terraform).