Skip to content

Automation to install the Logging Operator in OpenShift 4.x

Notifications You must be signed in to change notification settings

themoosman/ocp4-install-efk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EFK Operator Install

This automation will install EFK stack in OpenShift 4.x per (https://docs.openshift.com/container-platform/4.1/logging/efk-logging-deploying.html#efk-logging-deploy-subscription_efk-logging-deploying).

Prerequisites

Setup

Install git and clone the code

git clone https://github.com/themoosman/ocp4-install-efk

Export the path to the k8s config file.

This is what the k8s Ansible module will use to authenticate to OpenShift.

#Update as necessary
export KUBECONFIG=/home/themoosman/.kube/config

Run the install_efk.yaml playbook

#Update as necessary
export KUBECONFIG=/home/.kube/config
cd ocp4-install-efk
ansible-playbook install_efk.yaml

Cleanup

Run the cleanup script.

./cleanup.sh

TODO

Current the following variables are hardcoded and need to be made dynamic.

  • channel - use oc get packagemanifest elasticsearch-operator -n openshift-marketplace -o jsonpath='{.status.channels[].name}' to get the value.
  • csv - use oc get packagemanifest elasticsearch-operator -n openshift-marketplace -o jsonpath='{.status.channels[].currentCSV}' to get the value.
  • clv - use oc get packagemanifest cluster-logging -n openshift-marketplace -o jsonpath='{.status.channels[].currentCSV}' to get the value.

About

Automation to install the Logging Operator in OpenShift 4.x

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages