Wednesday, February 21, 2024
HomeSoftware EngineeringPressure a Redeploy in Kubernetes

Pressure a Redeploy in Kubernetes


If it’s essential to pressure a redeploy of a deployment in Kubernetes, then you should utilize the rollout function.

You’ll have a picture that has been up to date, however with out altering the tag/model.

Step 1 – Optionally replace the imagePullPolicy

In case you have not modified the picture model, then test your imagePullPolicy.

In your deployment.yaml file:

containers:
  - title: backend
    picture: aoms/mock_backend_python:newest
    imagePullPolicy: At all times

Step 2 – Get the deployment title

kubectl get deploy

Step 3 – Pressure the Redeployment

kubectl rollout restart deploy backend
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments