Installation of the SusQL Operator via OperatorHub.io is fairly easy.
- Kepler is assumed to be installed in the cluster.
oc
is assumed to be installed, and you are assumed to be logged in to the cluster in your CLI environment. - Installation of the SusQL Operator has been extensively used with Red Hat OpenShift clusters 4.14 and higher.
- Consider enabling User Project Monitoring when using on OpenShift. https://docs.openshift.com/container-platform/latest/monitoring/enabling-monitoring-for-user-defined-projects.html
- Other flavors and versions of Kubernetes clusters are also expected to function.
- Ensure that the following command is run to install the service monitor. Replace
<NAMESPACE>
with the namespace SusQL is installed into. (Usuallyopenshift-operators
)
oc apply -n <NAMESPACE> -f oc apply -f https://raw.githubusercontent.com/sustainable-computing-io/susql-operator/main/hack/susql-servicemonitor.yaml
Create a file called catalogsource.yaml
as follows:
apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
metadata:
name: operatorhubio-catalog
namespace: openshift-marketplace
spec:
sourceType: grpc
image: quay.io/operatorhubio/catalog:latest
displayName: Community Operators
publisher: OperatorHub.io
updateStrategy:
registryPoll:
interval: 10m
Apply this file with these commands:
oc apply -f catalogsource.yaml
oc patch -n openshift-marketplace OperatorHub cluster --type merge -p '{"spec":{"sources":[{"name":"operatorhubio-catalog","disabled":false},{"name":"community-operators","disabled":false}]}}'
Next, use the OpenShift web console to install the SusQL Operator:
- Click on "Operator->OperatorHub"
- Search for "SusQL"
- Click on it, and follow the GUI prompts to install.
Before deploying the SusQL Operator create a ConfigMap
called susql-config
in
the same namespace that the operator will run in.
susql-config.yaml is a good starting point. If you download it first, you
could create the ConfigMap with oc apply -n <NAMESPACE> -f susql-config.yaml
.
If you update (or create) the ConfigMap after the SusQL Operator has been installed, then restarting the SusQL Operator controller pod will
enable the changes. (e.g., Delete the pod, and allow it to be recreated automatically.)
Copyright 2023, 2024.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.