Git Product home page Git Product logo

eck-diagnostics's Introduction

eck-diagnostics

Diagnostic tooling for ECK installations

Go

Installation

Go to the releases page and download the version matching your architecture. Unpack the gzip'ed tar archive and put the binary included in the archive somewhere in your PATH.

Running

Just execute the binary. On macOS versions with Gatekeeper enabled you have to explicitly allow the execution the first time round, as described in this support article (in the section "If you want to open an app that hasn’t been notarized or is from an unidentified developer").

To run diagnostics, you need to specify at least the workload resource namespace(s). The operator namespace is set by default to the elastic-system namespace, where the ECK operator typically resides.

For example, to run diagnostics for resource namespaces a and b:

eck-diagnostics -r a,b

A full list of available flags is reproduced here and is also printed when calling the eck-diagnostics binary with the --help or -h flag:

Usage:
  eck-diagnostics [flags]

Flags:
      --diagnostic-image string        Diagnostic image to be used for stack diagnostics, see run-stack-diagnostics (default "docker.elastic.co/eck-dev/support-diagnostics:8.1.4")
      --eck-version string             ECK version in use, will try to autodetect if not specified
  -h, --help                           help for eck-diagnostics
      --kubeconfig string              optional path to kube config, defaults to $HOME/.kube/config
  -o, --operator-namespaces strings    Comma-separated list of namespace(s) in which operator(s) are running (default [elastic-system])
      --output-directory string        Path where to output diagnostic results
  -r, --resources-namespaces strings   Comma-separated list of namespace(s) in which resources are managed
      --run-stack-diagnostics          Run diagnostics on deployed Elasticsearch clusters and Kibana instances, requires deploying diagnostic Pods into the cluster (default true)
      --verbose                        Verbose mode

Information collected by eck-diagnostics

The eck-diagnostics retrieves Kubernetes API server resources and log files and, unless disabled, it runs Elastic support-diagnostics on Elasticsearch and Kibana instances installed in the namespaces indicated by the -r, --resources-namespaces flag.

The following Kubernetes resources are retrieved from the cluster being diagnosed:

Global resources

  • Kubernetes server version
  • Kubernetes nodes
  • PodSecurityPolicy
  • ClusterRole
  • ClusterRoleBindings

In all operator and workload resource namespaces

  • StatefulSet
  • Pod
  • Service
  • ConfigMap
  • Event
  • NetworkPolicy
  • ControllerRevision
  • Secret (metadata only)
  • ServiceAccount

In the workload resources namespaces

In addition to the resources mentioned above, the following Kubernetes resources are retrieved:

  • ReplicaSet
  • Deployment
  • DaemonSet
  • PersistentVolume
  • PersistentVolumeClaim
  • Endpoint

The ECK related custom resources are included in those namespaces as well:

  • Agent
  • ApmServer
  • Beat
  • ElasticMapsServer
  • Elasticsearch
  • EnterpriseSearch
  • Kibana

Logs

In the operator namespaces (-o, --operator-namespaces) all logs are collected, while in the workload resource namespaces only logs from Pods managed by ECK are collected.

eck-diagnostics's People

Contributors

pebrc avatar renovate[bot] avatar thbkrkr avatar barkbay avatar renovate-bot avatar miriam-eid 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.