Welcome to my field notes!

Field notes are notes I leave myself as I go through my day to day work. The hope is that other people will also find these notes useful. Note that these notes are unfiltered and unverified.

Kubernetes

Kubernetes is the industry standard for orchestrating containerized workloads.
Author

TJ Palanca

Published

August 26, 2022

Persistent Storage

StatefulSets

  • Use these for putting databases in your cluster.
  • Have stable pod names and you can spin them up in a particular order.
  • Usually you will attach PersistentVolumes to them.

Getting pods to schedule on the right nodes

Taints and Tolerations

  • These are the tools used to ensure that we schedule pods on the right nodes.
  • Taints are applied on nodes, whereas Tolerations are applied on pods.
    • If you add a taint to a node, it will avoid certain pods unless it has that specific toleration.
  • Generally most useful if you need to not schedule unless certain conditions are met.

Node Selector

  • Another option is to use node selector on the pods to select certain nodes onto which the pod can be scheduled.
  • Useful if you need to schedule if only certain conditions are met.