Giter Club home page Giter Club logo

logging-dev's Introduction

Development/testing environment for RHTAP Logging

Prerequisites

  1. A Quickcluster cluster.

  2. Use setup-nfs-quickcluster.sh to setup NFS.

Argo CD Deployment

  1. Install the OpenShift GitOps Operator
oc create -f install-openshift-gitops-operator.yaml

Once the the operator installation is complete, the link to Argo CD will be visible from the OpenShift Console. Screenshot Argo CD should be also accessible through this link: https://openshift-gitops-server-openshift-gitops.apps.[cluster_host]

Example for cluster_host: 'mycluster.lab.psi.pnq2.redhat.com'.
You can get the information from the Quickcluster cluster page.

  1. Create the Argo CD logging app
oc create -f argocd-app.yaml

After a successful deployment, the sync indicator should indicate Synced and the overall health status of the app should be Healthy. Screenshot

  1. Apply the logging health checks
oc apply -f health-checks.yaml -n openshift-gitops

For example, clusterlogforwarder before applying the Argo CD health check: Screenshot

clusterlogforwarder after applying the Argo CD health check:

Screenshot

Checking the logs

  1. Open Splunk in your browser with the following command:
xdg-open "$(oc get route splunk-web --template='{{.spec.host}}' --namespace=splunk)"
  1. Login with u:admin/p:Password.
  2. Run a Splunk query against the index rh_rhtap_dev_audit or rh_rhtap_dev_app.
    E.g: index="rh_rhtap_dev_audit"

Diagnostics

Relevant pod logs can be found in the following namespaces:

Namespace Description
openshift-operators openshift-gitops-operator, external-secrets-operator
external-secrets External Secrets resources
splunk Splunk resources

Links

  1. Splunk dev image on Quay.io

Documentation Links

OpenShift Logging

  1. OpenShift Logging
  2. Deploy OpenShift Logging via CLI

External Secrets Operator

  1. external-secrets.io
  2. Installing External Secrets Operator with OLM

Argo CD

  1. Argo CD Operator
  2. Argo CD

Red Hat's GitOps Operator

  1. Red Hat OpenShift GitOps
  2. Installing GitOps Operator

Known Issues

  1. external-secrets operatorconfig fails to sync with the following error:
The Kubernetes API could not find operator.external-secrets.io/OperatorConfig for
requested resource external-secrets/cluster. Make sure the "OperatorConfig" CRD is
installed on the destination cluster.

How to resolve:

  1. Terminate the current sync attempt.
  2. sync the external-secrets namespace.
  3. sync the external-secrets-operator
  4. Everything else should sync successfully.

logging-dev's People

Contributors

eisraeli avatar yftacherzog avatar

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.