How to Deploy, Update, and Scale Custom Apps on a Kubernetes Cluster
A DEV Community tutorial guides users through deploying a custom containerized application on an on-premise Kubernetes cluster, continuing a multi-part series. The walkthrough covers building a Docker image using an Alpine-based Dockerfile with Java 11, publishing it to Docker Hub or a private registry, and creating a Kubernetes Deployment via the command line. It explains how to expose the application externally using a LoadBalancer-type Service with a manually assigned IP, since on-premise environments lack automatic load balancer provisioning. The guide also demonstrates rolling updates and rollbacks using kubectl commands to minimize downtime during version changes. Finally, it covers both manual replica scaling and automatic scaling through a Horizontal Pod Autoscaler configured to trigger when average CPU usage exceeds 75 percent.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in