In this article we will explore how to create an operator that can prefetch our images (from our deployments to all nodes) using the Operator SDK, you might be wondering why would you want to do this? the main idea is to get the images in advance so you don’t have to pull them when the pod actually needs to start running in a given node, this can speed up things a bit and it’s also an interesting exercise.

If you have read the article  Cloud native applications with kubebuilder and kind aka kubernetes operators you will note that the commands are really similar between each other, since now the operator-sdk uses

Prerequisites

  • Operator SDK
  • Go
  • Kind
  • Docker
  • kustomize

#operator-sdk #golang #kubebuilder #kubernetes

Testing the Operator SDK and making a prefetch mechanism for Kubernetes
4.00 GEEK