Posts with category 'Devops'

| Page 1

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

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

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