Ansible Operator for installing the Emergency Response demo.
- Login to an OpenShift cluster as a
cluster-admin
- Create a
CatalogSource
to import the Emergency Response Demo operator catalog.
oc apply -f - << EOF
apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
metadata:
name: erdemo-operators
namespace: openshift-marketplace
spec:
sourceType: grpc
image: quay.io/akrohg/erdemo-operator-catalog:latest
displayName: Emergency Response Demo Operator
publisher: RedHatGov
EOF
- Create a project named erdemo-operator-system for your operator deployment to live.
oc new-project erdemo-operator-system
- In the OpenShift Web Console, navigate to Operators -> OperatorHub and search for "Emergency Response Demo Operator" in the erdemo-operator-system project. Select it and click Install
- Set Installation Mode to A specific namespace on the cluster and set Installed Namespace to erdemo-operator-system.
- Leave other options as default and click Install once more.
- On the ErDemo Operator page, create a new
ErDemo
CustomResource, setting the value of mapToken to match your own mapbox API token.
To install:
- Clone this repository and
cd
into it.
git clone https://github.com/andykrohg/erdemo-operator
cd erdemo-operator
- Ensure you're logged in with
oc
as acluster-admin
- Run
hack/operate.sh
to install theCustomResourceDefinition
and accompanying assets, and to create aDeployment
for the operator. It will be created in theerdemo-operator-system
namespace. - Create an
ErDemo
Custom Resource:oc apply -n erdemo-operator-system -f config/samples/apps_v1alpha1_erdemo.yaml
- Watch the progress in the logs of the
erdemo-operator-controller-manager
pod.