Analyzing a Cluster

Perform analysis on the state of Kubernetes cluster using the ocne cluster analyze command.

This might be useful for debugging any issues with the Kubernetes cluster.

You can create a set of dump files to analyze using the ocne cluster dump command. Or you can analyze a live, running, cluster without first creating a set of dump files.

  1. (Optional) Generate dump files of the Kubernetes cluster.

    Use the ocne cluster dump command to generate a dump file of the Kubernetes cluster. The syntax to use is:

    ocne cluster dump 
    [{-c|--curated-resources}]
    [{-z|--generate-archive} path]
    [{-m|--include-configmaps}]
    [{-n|--namespaces} namespace,...]
    [{-N|--nodes} nodename, ...]
    [{-d|--output-directory} path]
    [{-r|--skip-cluster}]
    [{-s|--skip-nodes}]
    [{-p|--skip-pod-logs}]
    [{-t|--skip-redaction}]

    For more information on the syntax options, see Oracle Cloud Native Environment: CLI.

    For example:

    ocne cluster dump --output-directory $HOME/dump
  2. Analyze the state of the cluster.

    Use the ocne cluster analyze command to analyze the state of the cluster. The syntax is:

    ocne cluster analyze 
    [{-d|--dump-directory} path]
    [{-s|--skip-nodes}]
    [{-p|--skip-pod-logs}]
    [{-v|--verbose}]

    For more information on the syntax options, see Oracle Cloud Native Environment: CLI.

    For example:

    To analyze a live cluster:

    ocne cluster analyze

    To analyze a live cluster without including node data:

    ocne cluster analyze --skip-nodes

    To perform a basic analysis of cluster dump files:

    ocne cluster analyze --dump-directory $HOME/dump/

    To display more detailed information of cluster dump files:

    ocne cluster analyze --dump-directory $HOME/dump/ --verbose