Kubernetes

Provisioning

There is a bunch of ways to provision Kubernetes, but you need to take few elements into account:

  • is it a “throwable” cluster, for development or tests purposes
  • is it a local cluster (not exposed to the public)
  • is it a production grade cluster (exposed to the public)

For the throwable case, there is a bunch of possibilities, from running VMs to running kubernetes in containers.

For the local cluster part, you can rely on the hard way or on tools from the community, depending on your system.

For the production grade cluster, well, I am not there yet, but best advice, use GKE or OpenShift.

Configuration

Extract configuration context to its own file

kubectl config view --minify --flatten \
        --context=put-the-context-here > ~/.kube/config.context