Skip to content

Instantly share code, notes, and snippets.

@odra
Created October 17, 2018 15:23
Show Gist options
  • Save odra/a3a4ead3d82e2724329db694ddae3c8b to your computer and use it in GitHub Desktop.
Save odra/a3a4ead3d82e2724329db694ddae3c8b to your computer and use it in GitHub Desktop.
#copy the template file
make template-copy
#build the image
operator-sdk build docker.io/$org/tutorial-web-app-operator:latest
#push it
docker push docker.io/$org/tutorial-web-app-operator:latest
#deploy all required resources - you may need to change the image name (also set the openshift_host var to the correct value)
oc apply -f deploy/crd.yml
oc apply -f deploy/sa.yml
oc apply -f deploy/rbac.yml
oc apply -f deploy/cr.yml
#deploy the operator
oc apply -f deploy/operator.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment