#openshift complete tutorial | Podman Tutorial | Podman Build and Deploy in Openshift Cluster
#openshift complete tutorial | Podman Tutorial | Podman Build and Deploy in Openshift
Learning Objective - Demonstrate how to containerize a software application, test it with Podman, and deploy it on a Red Hat OpenShift cluster.
What is Podman?
Podman have emerged to aid with container image building.
It is a constituent of the Open Repository for Container Tools, and stem from Red Hat’s mission to excise the Docker daemon from container workflows
Podman emulates the various client commands that Docker provides.
Amongst the suite of Docker-like commands is the podman build command. It’s used for building container images, using a Dockerfile as its source for the various build steps.
In that sense it is virtually identical to the docker build command, but without the overhead of the Docker daemon.
Daemonless Builds
Podman attempts to reproduce the entirety of the familiar Docker CLI without the need to run a daemon to serve and act on API requests.
Instead of a client/server model, Podman implements a local fork/exec model, which in Red Hat’s eyes greatly simplifies the control and security of the container’s lifecycle.
Install podman
Login as root user and install podman with
# yum -y install podman
Verify the Installation
# podman -v
podman version 1.6.4
podman info
host:
BuildahVersion: 1.11.5
CgroupVersion: v1
Conmon:
package: conmon-2.0.8-1.el7.x86_64
path: /usr/bin/conmon
version: 'conmon version 2.0.8, commit: f85c8b1ce77b73bcd48b2d802396321217008762'
Create a container in the pod
To create a container in the pod, use podman run, but don't map a port.
This makes more sense when you have more than one container to work with.
Let us create a database container and then a WordPress container.
# podman pod create --name tsp-pod -p 8080:80
a5ce8cf6f37a27f3be18fa5bc054cb19a6c97a90dc075ac3dc6fe4b495e13272
This command creates a pod with port 8080 mapped to inside port 80.
If you then spin up a container listening on port 80, you'd have connectivity.
Wordpress Container
Bring up a pod from the YAML
Deploy Container in Openshift
openshift, openshift tutorial, openshift administration, openshift deployment, Deploy Container in Openshift, Wordpress Container, Create a container in the pod, What is Podman, Podman Daemonless Builds, Install podman, pod from the YAMLVisit www.theskillpedia.com for Online Training on this technology
Видео #openshift complete tutorial | Podman Tutorial | Podman Build and Deploy in Openshift Cluster автора Кодовое Разнообразие
Видео #openshift complete tutorial | Podman Tutorial | Podman Build and Deploy in Openshift Cluster автора Кодовое Разнообразие
Информация
4 декабря 2023 г. 3:23:27
00:38:00
Похожие видео