Openshift Examples

___ TODO MAKE DOCUMENTATION ___

sxcollector can be deployed in an Openshift cluster using the template resource and through the openshift catalog. You can load the sxcollector example structure into the catalog, and use the cli as well as the web console to deploy one or multiple sxcollector scheduled jobs.

Load the SXCollector templates into catalog

This command will add the sxcollector templates into the openshift global catalog. You must have the write access to the openshift namespace.

export BASE_URL=https://gitlab.com/startx1/k8s/sxcollector/-/raw/main/docs/examples/openshift
oc apply -f ${BASE_URL}/template-sxcollector-examples.yaml

Check the sxcollector project

Be sure that you have the sxcollector namespace and operator deployed.

SXNS=sxcollector
oc project $SXNS

Deploy examples

This command will createvarious examples of new sxcollector config, schedule, daemon and task into the sxcollector namespace with generic example configuration that must be adapted.

SXNS=sxcollector
oc process \
   sxcollector-examples \
   -n openshift \
   -p APP_NAME=example \
   -p APP_NS=$SXNS \
   | \
   oc apply -f -