Posts with category 'Devops'

| Page 1

How to validate, plan, and deploy ARM templates

|
|
Tags:  azure,  arm

Azure Resource Manager templates are used for creating reproducible deployments in Azure. In this post I will explain the lifecycle of an ARM template. The sections on this post are in the order that I think the deployments should be made: Validate syntax, execute plan, and Deploy the template, but if you don’t have experience...

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...

Share a Docker image without using a Docker registry

|
|
Tags:  Docker

This is useful for sharing personal Docker images or to import it to a secure environment with no Internet connection. Example: # Export Docker image to a .tar file docker save thingsandcode.com/thingsandcode-web:20220830-pro > /tmp/thingsandcode-web_20220830-pro.tar # Import .tar file to local Docker installation docker load --input /tmp/thingsandcode-web_20220830-pro.tar

Continue reading...

Copy a Docker image from one registry to another

|
|
Tags:  Docker

Copying docker images is useful to prevent losing access to an image if the remote registry goes down or to move images between environments (For example: from testing to production) The process consists in pulling an image from an origin repository, change the tag, and push the image to a remote repository. Example: # Login...

Continue reading...