August 2019
Intermediate to advanced
242 pages
5h 45m
English
We also need to write a few scripts to allow us to set environment variables and spin up or bring down a Kubernetes cluster on demand. Here, we will bring together the templates we have written, KOPS or kubectl, and the AWS configuration we completed in previous sections.
Let's look at our vars.sh file:
#!/bin/bash# AWS varsexport BUCKET_NAME="hodlgo-models"export MASTERTYPE="m3.medium"export SLAVETYPE="t2.medium"export SLAVES="2"export ZONE="ap-southeast-2b"# K8s varsexport NAME="hodlgo.k8s.local"export KOPS_STATE_STORE="s3://hodlgo-cluster"export PROJECT="hodlgo"export CLUSTER_NAME=$PROJECT# Docker varsexport VERSION_TAG="0.1"export MODEL_CONTAINER="hodlgo-model"
We can see here that the main variables are the ...
Read now
Unlock full access