rpk container status

Get the status of a local container cluster, including the node IDs, ports, and running state of each broker.

Usage

rpk container status [flags]

Global flags

Value Type Description

--config

string

Redpanda or rpk config file; default search paths are ~/.config/rpk/rpk.yaml, $PWD/redpanda.yaml, and /etc/redpanda/redpanda.yaml.

-X, --config-opt

stringArray

Override rpk configuration settings; -X help for detail or -X list for terser detail.

--ignore-profile

bool

Ignore rpk.yaml and redpanda.yaml; use default settings.

--profile

string

rpk profile to use.

-v, --verbose

bool

Enable verbose logging.

Example

If you’re following Quick Start - Deploy Redpanda to Docker with Three Nodes, you can run rpk container status to see more information about your containers.

Example

rpk container status
NODE-ID  STATUS   KAFKA-ADDRESS   ADMIN-ADDRESS   PROXY-ADDRESS   SCHEMA-REGISTRY-ADDRESS
0        running  127.0.0.1:9092  127.0.0.1:9644  127.0.0.1:8082  127.0.0.1:8081

Redpanda Console started in: http://localhost:8080

You can use rpk to interact with this cluster. E.g:

    rpk cluster info
    rpk cluster health

You may also set an environment variable with the comma-separated list of
broker addresses:

    export RPK_BROKERS="127.0.0.1:34189,127.0.0.1:45523,127.0.0.1:37223"
    rpk cluster info