Kubernetes is now the defacto “Application Server” when you build Cloud Native applications using technologies such as Docker, Microservices etc. You are also familiar with various Kubernetes Objects such as Pods, ReplicationContainers and Services. Further, you would have deployed these objects using either YAML files (by running kubectl commands) or using Helmcharts (by running Helm commands). However, there are situations when you may be forced to dynamically deploy objects inside Kubernetes. For example, let’s say, you want to execute some task on-demand based on end-user interaction. If this task runs infrequently, you may not want to create a Pod that sits idle most of the time and only runs when a user performs certain action. In such cases, you can use Serverless technology such as AWS Lambda or GCP Cloud Function to run your container on the fly. The other option is to dynamically create a Pod using Kubernetes API. In this article, we will explore how you can use Kubernetes API to manage objects inside Kubernetes. …


Sumit Datta

Loves dabbling in new technologies. All views expressed are mine.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store