GithubHelp home page GithubHelp logo

gettyio / cluster-logging-operator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from openshift/cluster-logging-operator

0.0 5.0 0.0 29.8 MB

Operator to support OKD cluster logging

License: Apache License 2.0

Dockerfile 1.55% Makefile 1.28% Go 88.67% Shell 8.50%

cluster-logging-operator's Introduction

cluster-logging-operator

Operator to support OKD cluster logging

Testing

E2E Testing

To run the e2e tests, from the repo directory, run:

oc adm policy add-scc-to-user privileged -z fluentd -n openshift-logging
imagebuilder -t quay.io/openshift/cluster-logging-operator .
operator-sdk test local --namespace openshift-logging ./test/e2e/

Dev Testing

To set up your local environment based on what will be provided by OLM, run:

mkdir /tmp/_working_dir

CLUSTER_LOGGING_OPERATOR=$GOPATH/src/github.com/openshift/cluster-logging-operator
ELASTICSEARCH_OPERATOR=$GOPATH/src/github.com/openshift/elasticsearch-operator

oc adm ca create-signer-cert --cert='/tmp/ca.crt' --key='/tmp/ca.key' --serial='/tmp/ca.serial.txt'
oc adm ca create-server-cert --cert='/tmp/kibana-internal.crt' --key='/tmp/kibana-internal.key' --hostnames='kibana,kibana-ops' --signer-cert='/tmp/ca.crt' --signer-key='/tmp/ca.key' --signer-serial='/tmp/ca.serial.txt'

oc create -n openshift-logging secret generic logging-master-ca --from-file=masterca=/tmp/ca.crt --from-file=masterkey=/tmp/ca.key --from-file=kibanacert=/tmp/kibana-internal.crt --from-file=kibanakey=/tmp/kibana-internal.key

oc label node --all logging-infra-fluentd=true
oc adm policy add-scc-to-user privileged -z fluentd -n openshift-logging

oc create -n openshift-logging -f $CLUSTER_LOGGING_OPERATOR/deploy/service_account.yaml
oc create -n openshift-logging -f $CLUSTER_LOGGING_OPERATOR/deploy/role.yaml
oc create -n openshift-logging -f $CLUSTER_LOGGING_OPERATOR/deploy/role_binding.yaml
oc create -n openshift-logging -f $CLUSTER_LOGGING_OPERATOR/deploy/crds/crd.yaml
oc create -n openshift-logging -f $ELASTICSEARCH_OPERATOR/deploy/rbac.yaml
oc create -n openshift-logging -f $ELASTICSEARCH_OPERATOR/deploy/crd.yaml

oc create -n openshift-logging -f $CLUSTER_LOGGING_OPERATOR/deploy/cr.yaml

To test on an OCP cluster, you can run: REPO_PREFIX=openshift/ IMAGE_PREFIX=origin- OPERATOR_NAME=cluster-logging-operator WATCH_NAMESPACE=openshift-logging KUBERNETES_CONFIG=/etc/origin/master/admin.kubeconfig go run cmd/cluster-logging-operator/main.go

To remove created API objects: oc delete ClusterLogging example -n openshift-logging

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.