Coder Social home page Coder Social logo

must-gather's Introduction

Medik8s must-gather

must-gather is a tool built on top of OpenShift must-gather that expands its capabilities to gather more related information to Medik8s operators.

Usage

oc adm must-gather --image=quay.io/medik8s/must-gather

The command above will create a local directory with a dump of the operator's state. Note that this command will only get data related to the operator's part of the OpenShift cluster.

You will get a dump of:

  • the namespace to which NodeHealthCheck and Self Node Remediation Operators are deployed, including logs
  • NHC and SNR related CRs
  • Nodes

In order to get data about other parts of the cluster (not specific to medik8s) you should run oc adm must-gather (without passing a custom image). Run oc adm must-gather -h to see more options.

Development

You can build the image locally using the Dockerfile included.

A makefile is also provided. Override IMAGE_REGISTRY, IMAGE_NAME and/or IMAGE_TAG to your needs. Default is quay.io/medik8s/must-gather:latest.

The targets for make are as follows:

  • build: builds the image with the supplied name and pushes it
  • docker-build: builds the image but does not push it
  • docker-push: pushes an already-built image

For example:

make build IMAGE_REGISTRY=quay.io/my-user IMAGE_NAME=my-must-gather IMAGE_TAG=0.0.1-test

would build the local repository as quay.io/my-user/my-must-gather:0.0.1-test and then push it.

must-gather's People

Contributors

clobrano avatar n1r1 avatar openshift-merge-bot[bot] avatar razo7 avatar slintes avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  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.