Basic Tips on Using Kubernetes

Note: This page is a Work in Progress!

Overview:

  • Kubernetes deployments are typically run on a cluster of servers (A mixture of Masters and Nodes).
  • Typically the Masters will run the management of the Cluster only and Nodes will run services which are deployed to the Cluster.
  • Access to Kubernetes cluster is completed using the kubectl command (Install instructions below) from remote machines (Eg your Desktop).
  • Different levels of access can be provided to different users (Which will be provided in kube config files).
  • Different Kubernetes cluster configurations can be added to your Desktop and you can jump between environments using the kubectl command (Or kubectx package mentioned below).

Key Kubernetes Commands / Tool Installation:

  • kubectl
    • kubectl will be the primary command you will be using to access and manage your kubernetes cluster
  • kubectx
    • kubectx is a project which allows you to easily swap between kubernetes contexts (Eg which environment you are connected to)

Accessing a (Bare metal) Kubernetes Cluster:

To access a Kubernetes cluster, a user with Administrative permissions on the cluster should create an account for you.

You will be provided with a kube config file, if this is the first Kubernetes cluster that you are accessing, you should put the config file in:

~/.kube/config

If you already have access to a Kubernetes cluster – You will need to save this to:

~/.kube/config-[new-env]

and you should review this page on how to combine your config files.

Any comments or questions? Get in touch here or Email me at [email protected]