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:
Go to: quay.io
Click on the SIGN IN button located on the upper right side
You can either Sign In with your GitHub account or click Create Account
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:
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
Last updated