Skip to content

Latest commit

 

History

History

rolling-updates-in-k8s

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Rolling Updates in Kubernetes

Problem

Recently some of the performance issues were observed with some applications hosted on Kubernetes cluster. The Nautilus DevOps team has observed some resources constraints, where some of the applications are running out of resources like memory, cpu etc., and some of the applications are consuming more resources than needed. Therefore, the team has decided to add some limits for resources utilization. Below you can find more details.

Create a pod named httpd-pod and a container under it named as httpd-container, use httpd image with latest tag only and remember to mention tag i.e httpd:latest and set the following limits:

Requests: Memory: 15Mi, CPU: 100m

Limits: Memory: 20Mi, CPU: 100m

Note: The kubectl utility on jump_host has been configured to work with the kubernetes cluster.

Debugging

Solution

kubectl set image deployments/nginx-deployment nginx-container=nginx:1.19