On OpenShift#
Template Operator is RedHat Certified operator available on the Red Hat MarketPlace.
This document contains instructions on installing, uninstalling and configuring Multi Tenant Operator on OpenShift.
Requirements#
- An OpenShift cluster
Installing via OperatorHub UI#
- After opening OpenShift console click on
Operators
, followed byOperatorHub
from the side menu
- Now search for
Template Operator
and then click onTemplate Operator
tile
- Click on the
install
button
- Keep the
Update Channel
andVersion
dropdowns at the latest versions. Select Operator recommended Namespace inInstalled Namespace
section.
- Wait for the operator to be installed
Note: Template Operator will be installed in
template-operator-system
namespace.
Installing via CLI OR GitOps#
- Create namespace
template-operator-system
oc create namespace template-operator-system
namespace/template-operator-system created
- Create an OperatorGroup YAML for Template Operator and apply it in
template-operator-system
namespace.
oc create -f - << EOF
apiVersion: operators.coreos.com/v1
kind: OperatorGroup
metadata:
name: template-operator
namespace: template-operator-system
EOF
operatorgroup.operators.coreos.com/template-operator created
- Create a subscription YAML for Template Operator and apply it in
template-operator-system
namespace.
oc create -f - << EOF
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: template-operator
namespace: template-operator-system
spec:
channel: release-0.1
installPlanApproval: Automatic
name: template-operator
source: certified-operators
sourceNamespace: openshift-marketplace
startingCSV: template-operator.v0.1.5
EOF
subscription.operators.coreos.com/template-operator created
Note: To bring Template Operator via GitOps, add the above files in GitOps repository.
- After creating the
subscription
custom resource, open OpenShift console and click onOperators
, followed byInstalled Operators
from the side menu and wait for the installation to complete
Uninstall via OperatorHub UI#
You can uninstall Template Operator by following these steps:
- After making the required changes open OpenShift console and click on
Operators
, followed byInstalled Operators
from the side menu
- Now click on uninstall and confirm uninstall.
- Now the operator has been uninstalled.
Note: you can also manually remove Template Operator's CRDs and its resources from the cluster.