Deploy the operator
These instructions do not apply if the operator is installed from the OpenShift software catalog or when using Operator Lifecycle Manager (OLM). However, creating resources outside of the installation namespace, as mentioned in step 3, is always advised.
This page shows the installation steps to deploy ECK in Openshift:
Apply the manifests the same way as described in Install ECK using the YAML manifests document:
oc create -f https://download.elastic.co/downloads/eck/3.5.0/crds.yaml oc apply -f https://download.elastic.co/downloads/eck/3.5.0/operator.yaml[Optional] Only if your cluster still uses the OpenShift SDN network plug-in with the
ovs-multitenantmode, you must allow theelastic-systemnamespace to access other Pods and Services in the cluster. Clusters that use the default OVN-Kubernetes network plug-in don't need this step:oc adm pod-network make-projects-global elastic-systemCreate a namespace to hold the Elastic resources (Elasticsearch, Kibana, APM Server, Beats, Elastic Agent, Elastic Maps Server, Logstash, AutoOps Agent Policy and Package Registry):
NoteA namespace other than the default namespaces (default, kube-*, openshift-*, etc) is required such that default Security Context Constraint (SCC) permissions are applied automatically. Elastic resources will not work properly in any of the default namespaces.
oc new-project elastic- creates the elastic project
[Optional] Allow another user or a group of users to manage the Elastic resources:
oc adm policy add-role-to-user elastic-operator-edit developer -n elasticIn this example the user
developeris allowed to manage Elastic resources in the namespaceelastic. Useelastic-operator-viewto grant read-only access. Users that already have the built-ineditoradminrole in the namespace can manage Elastic resources without this step.