Deploying Multi-Container Applications using Template (OpenShift Containers & Kubernetes Part-10)

EX180 Red Hat Certified Specialist in Containers, Kubernetes and OpenShift
Deploying Multi-Container Applications using Template

cd ~/multicontainer-openshift/images/mysql
sudo podman login registry.redhat.io -u tejendrarana
sudo podman build -t do180-mysql-57-rhel7 .
sudo podman images
sudo podman login quay.io -u tsrana
sudo podman tag do180-mysql-57-rhel7 quay.io/tsrana/do180-mysql-57-rhel7
sudo podman push quay.io/tsrana/do180-mysql-57-rhel7

cd ~/multicontainer-openshift/images/nodejs
sudo podman build -t do180-nodejs .

cd ~/multicontainer-openshift/deploy/nodejs
./build.sh
sudo podman tag do180/todonodejs quay.io/tsrana/do180-todonodejs
sudo podman push quay.io/tsrana/do180-todonodejs

cd ~/multicontainer-openshift
oc process -f todo-template.json -p RHT_OCP4_QUAY_USER=tsrana | oc create -f –
oc get pods -w
oc expose service todoapi
oc status

source by Tech Tejendra

redhat openstack

Léa LOPEZ

Léa LOPEZ, Telecom System Administrator, Ambala College of Engineering and Applied Research, Ambala (INDIA)

Leave a Reply

Your email address will not be published. Required fields are marked *