Building and Pushing Image

Setup Quay.io account

Before we build our operator image we will want to setup an account on quay.io. We will need to push this image to quay.io so that we can test the Metadata Files discussed in the next section. To setup an account on quay.io:
  1. 1.
    Go to: quay.io
  2. 2.
    Click on the SIGN IN button located on the upper right side
  3. 3.
    You can either Sign In with your GitHub account or click Create Account
  4. 4.
    Once logged into Quay, click CREATE REPOSITORY to create a place to push your operator image for testing (example name: mongodb-operator)

Building and Pushing the Operator

Build the mongodb-operator image and push it to a registry:
1
make docker-build docker-push IMG=quay.io/example/mongodb-operator:v0.0.1
Copied!

Editing your Image and ImagePullPolicy

Now that you have built and pushed the image to quay.io it is necessary to edit config/manager/manager.yaml and replace the following fields:
  • image - your new image on quay.io
  • imagePullPolicy - Always
This is the edited example of deploy/operator.yaml
Last modified 1yr ago