Skip to main content


rhoas cluster connect#

Connect your services to Kubernetes or OpenShift


Connect your application services to your Kubernetes or OpenShift cluster. The kubeconfig file is used to connect to the cluster and identify the context. Alternatively, you can use the KUBECONFIG environment variable to read your configuration.

NOTE: This command requires the RHOAS operator to be running on your cluster.

This command will:

  1. Create a service account and mount it as a secret into your cluster. If the cluster has a service account, it will be refreshed.

  2. Create a Kafka Request object that can be used to create a ServiceBinding object using the Service Binding operator (

rhoas cluster connect [flags]


# connect the current Kafka instance to your cluster$ rhoas cluster connect


      --ignore-context      Ignore currently selected services and ask to select each service separately      --kubeconfig string   Location of the kubeconfig file  -n, --namespace string    Custom Kubernetes namespace (if not set current namespace will be used)      --token string        Provide an offline token to be used by the operator (to get a token, visit                              -y, --yes                 Forcibly create a binding without confirmation

Options inherited from parent commands#

  -h, --help      Show help for a command  -v, --verbose   Enable verbose mode


  • rhoas cluster - View and perform operations on your Kubernetes or OpenShift cluster