A tutorial on installing customized cluster-level apps.
Total Time: ~1.5h
status: under development Nov 2017
This tutorial requires no knowledge of kubernetes, also called k8s.
The focus here is exploring the notion of a cluster-level app by executing the commands needed to make one.
Excellent, broader discussion of kubernetes (including things omitted here, like history, storage, networking, security, etc.) can be found in Kubernetes Up and Running, at k8s.io, and at many other sites.
To establish context for app configuration, this tutorial begins by writing a small server with a sufficient number of configurable knobs. It then runs the server through a lifecycle as a cluster app using raw k8s and higher level approaches to cluster apps.
Go, curl, and docker. Command blocks use bash syntax.
The tutorial is tested on ubuntu. It's not yet tested on OSX; some commands will require edits due to small bash and coreutil differences.
To copy a block, click the block title (checkPrerequisites
below)
or hit Enter (โต).
A check mark indicates successful copy.
function tut_checkProgram {
if ! type -P "$1" >/dev/null 2>&1; then
echo Please install $1
fi
}
tut_checkProgram go
tut_checkProgram curl
tut_checkProgram docker
Further requirements (discussed shortly) arise from your choice of cluster host.