Posts with tag 'Openshift'

Openshift deployment strategies

|
|
Tags:  Openshift,  Kubernetes

A deployment strategy defines how the old pods are replaced with new ones in a Kubernetes deployment. Examples of scenarios that require different deployment strategies: Recreate all the pods because the new ones use a different database schema. Update an application in batches to prevent downtime and/or reduce the resources used while deploying. To run...

Continue reading...

How to detect and diagnose pods with problems in Openshift

|
|
Tags:  Openshift

Pods are the basic unit of deployment of Kubernetes. Each pod contains one or more containers that share the same network connections and storage. In this post you will learn the diferent ways to diagnose pods with problems. The commands in this post were run in a computer with Ubuntu 22.04.1 LTS connected to Openshift...

Continue reading...

Restart an Openshift deployment or deployment config

|
|
Tags:  Openshift

The easiest way to restart is reducing the number of pods to zero and increase again up to the desired pod count: oc get deployment thingsandcodeDeployment # Shows the current number of pods oc scale deployment thingsandcodeDeployment --replicas=0 # Stops the deployment oc scale deployment thingsandcodeDeployment --replicas=2 # Starts new pods for deployment

Continue reading...