...

/

Deploying to a New Namespace

Deploying to a New Namespace

In this lesson, we will deploy a release to our newly created Namespace.

Altering the Deployment Definition

As we explained in the previous lesson, the main objective of the deployment is to provide a means to test the release. It should remain hidden from our users.

The users should be oblivious to the existence of the new Deployment and continue using the release 1.0 until we are confident that 2.0 works as expected.

Press + to interact
TAG=2.0
DOM=go-demo-2.com
cat ns/go-demo-2.yml \
| sed -e \
"s@image: $IMG@image: $IMG:$TAG@g" \
| sed -e \
"s@host: $DOM@host: $TAG\.$DOM@g" \
| kubectl create -f -

Just as before, we used sed to alter the image definition. This time, we’re deploying the tag 2.0.

Apart ...

Access this course and 1400+ top-rated courses and projects.