IBM Cloud Kubernetes Service CLI reference

Refer to these commands to create and manage IBM Cloud Kubernetes Service clusters.

In the command line, you are notified when updates to the ibmcloud CLI and plug-ins are available. Be sure to keep your CLI up-to-date so that you can use all available commands and options.

  1. Install the IBM Cloud CLI. See Getting started with the IBM Cloud CLI.

  2. Install the ks plug-in.

    ibmcloud plugin install ks
    

Api commands

View the current API endpoint.

ibmcloud ks api

View the current API endpoint.

ibmcloud ks api [-q]

Command options

-q
Do not show the message of the day or update reminders.

Examples

View the current API endpoint

ibmcloud ks api

Api-key commands

View information about the API key for a cluster or reset it to a new key.

ibmcloud ks api-key help

Show help

ibmcloud ks api-key help

Examples

Show help

ibmcloud ks api-key help

ibmcloud ks api-key info

Virtual Private Cloud Classic infrastructure

View information about the API key owner for a cluster.

ibmcloud ks api-key info --cluster CLUSTER [--output OUTPUT] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.

Examples

View information about the API key owner for a cluster

ibmcloud ks api-key info --cluster CLUSTER

ibmcloud ks api-key reset

Virtual Private Cloud Classic infrastructure

Replace the API key for all clusters in the specified region and targeted resource group. If no resource group is targeted the command applies to the default resource group. For more information, see http://ibm.biz/api-key.

ibmcloud ks api-key reset --region REGION [-f] [--output OUTPUT] [-q]

Command options

-f
Force the command to run without user prompts.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.
--region
Specify the region to target.

Examples

Replace the API key for all clusters in the specified region and targeted resource group

ibmcloud ks api-key reset --region REGION

Cluster commands

View and modify cluster and cluster service settings.

ibmcloud ks cluster addon disable acm

Disable the Red Hat Advanced Cluster Management add-on.

ibmcloud ks cluster addon disable acm --cluster CLUSTER [-f] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.

Examples

Disable the Red Hat Advanced Cluster Management add-on

ibmcloud ks cluster addon disable acm --cluster CLUSTER

ibmcloud ks cluster addon disable alb-oauth-proxy

Virtual Private Cloud Classic infrastructure Satellite

Disable the ALB OAuth Proxy add-on.

ibmcloud ks cluster addon disable alb-oauth-proxy --cluster CLUSTER [-f] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.

Examples

Disable the ALB OAuth Proxy add-on

ibmcloud ks cluster addon disable alb-oauth-proxy --cluster CLUSTER

ibmcloud ks cluster addon disable cluster-autoscaler

Disable the Cluster Autoscaler add-on.

ibmcloud ks cluster addon disable cluster-autoscaler --cluster CLUSTER [-f] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.

Examples

Disable the Cluster Autoscaler add-on

ibmcloud ks cluster addon disable cluster-autoscaler --cluster CLUSTER

ibmcloud ks cluster addon disable debug-tool

Disable the Diagnostics and Debug Tool add-on.

ibmcloud ks cluster addon disable debug-tool --cluster CLUSTER [-f] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.

Examples

Disable the Diagnostics and Debug Tool add-on

ibmcloud ks cluster addon disable debug-tool --cluster CLUSTER

ibmcloud ks cluster addon disable headlamp

The cluster addon disable headlamp command is a beta feature.

Virtual Private Cloud Classic infrastructure Satellite

Disable the Headlamp add-on.

ibmcloud ks cluster addon disable headlamp --cluster CLUSTER [-f] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.

Examples

Disable the Headlamp add-on

ibmcloud ks cluster addon disable headlamp --cluster CLUSTER

ibmcloud ks cluster addon disable help

Show help

ibmcloud ks cluster addon disable help

Examples

Show help

ibmcloud ks cluster addon disable help

ibmcloud ks cluster addon disable hpcs-router

Disable the HPCS Router Operator add-on for OpenShift.

ibmcloud ks cluster addon disable hpcs-router --cluster CLUSTER [-f] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.

Examples

Disable the HPCS Router Operator add-on for OpenShift

ibmcloud ks cluster addon disable hpcs-router --cluster CLUSTER

ibmcloud ks cluster addon disable ibm-storage-operator

The cluster addon disable ibm-storage-operator command is a beta feature.

Disable the IBM Cloud Storage Operator add-on.

ibmcloud ks cluster addon disable ibm-storage-operator --cluster CLUSTER [-f] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.

Examples

Disable the IBM Cloud Storage Operator add-on

ibmcloud ks cluster addon disable ibm-storage-operator --cluster CLUSTER

ibmcloud ks cluster addon disable istio

Classic infrastructure

Disable the managed Istio add-on.

ibmcloud ks cluster addon disable istio --cluster CLUSTER [-f] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.

Examples

Disable the managed Istio add-on

ibmcloud ks cluster addon disable istio --cluster CLUSTER

ibmcloud ks cluster addon disable istio-extras

The cluster addon disable istio-extras command is deprecated.

Classic infrastructure

Disable extra Istio components: Grafana, Jaeger, and Kiali.

ibmcloud ks cluster addon disable istio-extras --cluster CLUSTER [-f] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.

Examples

Disable extra Istio components: Grafana, Jaeger, and Kiali

ibmcloud ks cluster addon disable istio-extras --cluster CLUSTER

ibmcloud ks cluster addon disable istio-sample-bookinfo

The cluster addon disable istio-sample-bookinfo command is deprecated.

Classic infrastructure

Disable the Istio BookInfo sample application add-on (deprecated).

ibmcloud ks cluster addon disable istio-sample-bookinfo --cluster CLUSTER [-f] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.

Examples

Disable the Istio BookInfo sample application add-on (deprecated)

ibmcloud ks cluster addon disable istio-sample-bookinfo --cluster CLUSTER

ibmcloud ks cluster addon disable knative

Disable the Knative serverless framework add-on.

ibmcloud ks cluster addon disable knative --cluster CLUSTER [-f] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.

Examples

Disable the Knative serverless framework add-on

ibmcloud ks cluster addon disable knative --cluster CLUSTER

ibmcloud ks cluster addon disable kube-terminal

Virtual Private Cloud Classic infrastructure Satellite

Disable the Kubernetes web terminal add-on.

ibmcloud ks cluster addon disable kube-terminal --cluster CLUSTER [-f] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.

Examples

Disable the Kubernetes web terminal add-on

ibmcloud ks cluster addon disable kube-terminal --cluster CLUSTER

ibmcloud ks cluster addon disable static-route

Virtual Private Cloud Classic infrastructure Satellite

Disable the Static Route add-on.

ibmcloud ks cluster addon disable static-route --cluster CLUSTER [-f] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.

Examples

Disable the Static Route add-on

ibmcloud ks cluster addon disable static-route --cluster CLUSTER

ibmcloud ks cluster addon disable vpc-block-csi-driver

Classic infrastructure

Disable the VPC Block Storage CSI Driver add-on.

ibmcloud ks cluster addon disable vpc-block-csi-driver --cluster CLUSTER [-f] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.

Examples

Disable the VPC Block Storage CSI Driver add-on

ibmcloud ks cluster addon disable vpc-block-csi-driver --cluster CLUSTER

ibmcloud ks cluster addon enable acm

Enable the Red Hat Advanced Cluster Management add-on.

ibmcloud ks cluster addon enable acm --cluster CLUSTER [-f] [--param PARAM] [-q] [--version VERSION] [-y]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
--param
Specify installation options for the add-on. If no parameters are specified, the default values are used. Review the available options with the ibmcloud ks cluster addon options command.
-q
Do not show the message of the day or update reminders.
--version
Specify the version of the add-on to install. If no version is specified, the default version is installed.
-y
Enable all add-on dependencies.

Examples

Enable the Red Hat Advanced Cluster Management add-on

ibmcloud ks cluster addon enable acm --cluster CLUSTER

ibmcloud ks cluster addon enable alb-oauth-proxy

Virtual Private Cloud Classic infrastructure Satellite

Enable the ALB OAuth Proxy add-on.

ibmcloud ks cluster addon enable alb-oauth-proxy --cluster CLUSTER [-q] [--version VERSION] [-y]

Command options

-c, --cluster
Specify the cluster name or ID.
-q
Do not show the message of the day or update reminders.
--version
Specify the version of the add-on to install. If no version is specified, the default version is installed.
-y
Enable all add-on dependencies.

Examples

Enable the ALB OAuth Proxy add-on

ibmcloud ks cluster addon enable alb-oauth-proxy --cluster CLUSTER

ibmcloud ks cluster addon enable cluster-autoscaler

Enable the Cluster Autoscaler add-on.

ibmcloud ks cluster addon enable cluster-autoscaler --cluster CLUSTER [-q] [--version VERSION] [-y]

Command options

-c, --cluster
Specify the cluster name or ID.
-q
Do not show the message of the day or update reminders.
--version
Specify the version of the add-on to install. If no version is specified, the default version is installed.
-y
Enable all add-on dependencies.

Examples

Enable the Cluster Autoscaler add-on

ibmcloud ks cluster addon enable cluster-autoscaler --cluster CLUSTER

ibmcloud ks cluster addon enable debug-tool

Enable the Diagnostics and Debug Tool add-on.

ibmcloud ks cluster addon enable debug-tool --cluster CLUSTER [-q] [--version VERSION] [-y]

Command options

-c, --cluster
Specify the cluster name or ID.
-q
Do not show the message of the day or update reminders.
--version
Specify the version of the add-on to install. If no version is specified, the default version is installed.
-y
Enable all add-on dependencies.

Examples

Enable the Diagnostics and Debug Tool add-on

ibmcloud ks cluster addon enable debug-tool --cluster CLUSTER

ibmcloud ks cluster addon enable headlamp

The cluster addon enable headlamp command is a beta feature.

Virtual Private Cloud Classic infrastructure Satellite

Enable the Headlamp add-on.

ibmcloud ks cluster addon enable headlamp --cluster CLUSTER [-q] [--version VERSION] [-y]

Command options

-c, --cluster
Specify the cluster name or ID.
-q
Do not show the message of the day or update reminders.
--version
Specify the version of the add-on to install. If no version is specified, the default version is installed.
-y
Enable all add-on dependencies.

Examples

Enable the Headlamp add-on

ibmcloud ks cluster addon enable headlamp --cluster CLUSTER

ibmcloud ks cluster addon enable help

Show help

ibmcloud ks cluster addon enable help

Examples

Show help

ibmcloud ks cluster addon enable help

ibmcloud ks cluster addon enable hpcs-router

Enable the HPCS Router Operator add-on for OpenShift.

ibmcloud ks cluster addon enable hpcs-router --cluster CLUSTER [-q] [--version VERSION] [-y]

Command options

-c, --cluster
Specify the cluster name or ID.
-q
Do not show the message of the day or update reminders.
--version
Specify the version of the add-on to install. If no version is specified, the default version is installed.
-y
Enable all add-on dependencies.

Examples

Enable the HPCS Router Operator add-on for OpenShift

ibmcloud ks cluster addon enable hpcs-router --cluster CLUSTER

ibmcloud ks cluster addon enable ibm-storage-operator

The cluster addon enable ibm-storage-operator command is a beta feature.

Enable the IBM Cloud Storage Operator add-on.

ibmcloud ks cluster addon enable ibm-storage-operator --cluster CLUSTER [-q] [--version VERSION] [-y]

Command options

-c, --cluster
Specify the cluster name or ID.
-q
Do not show the message of the day or update reminders.
--version
Specify the version of the add-on to install. If no version is specified, the default version is installed.
-y
Enable all add-on dependencies.

Examples

Enable the IBM Cloud Storage Operator add-on

ibmcloud ks cluster addon enable ibm-storage-operator --cluster CLUSTER

ibmcloud ks cluster addon enable istio

Classic infrastructure

Enable the managed Istio add-on.

ibmcloud ks cluster addon enable istio --cluster CLUSTER [-q] [--version VERSION] [-y]

Command options

-c, --cluster
Specify the cluster name or ID.
-q
Do not show the message of the day or update reminders.
--version
Specify the version of the add-on to install. If no version is specified, the default version is installed.
-y
Enable all add-on dependencies.

Examples

Enable the managed Istio add-on

ibmcloud ks cluster addon enable istio --cluster CLUSTER

ibmcloud ks cluster addon enable istio-extras

The cluster addon enable istio-extras command is deprecated.

Enable extra Istio components: Grafana, Jaeger, and Kiali.

ibmcloud ks cluster addon enable istio-extras --cluster CLUSTER [-q] [--version VERSION] [-y]

Command options

-c, --cluster
Specify the cluster name or ID.
-q
Do not show the message of the day or update reminders.
--version
Specify the version of the add-on to install. If no version is specified, the default version is installed.
-y
Enable all add-on dependencies.

Examples

Enable extra Istio components: Grafana, Jaeger, and Kiali

ibmcloud ks cluster addon enable istio-extras --cluster CLUSTER

ibmcloud ks cluster addon enable istio-sample-bookinfo

The cluster addon enable istio-sample-bookinfo command is deprecated.

Enable the Istio BookInfo sample application add-on on a cluster (deprecated).

ibmcloud ks cluster addon enable istio-sample-bookinfo --cluster CLUSTER [-q] [--version VERSION] [-y]

Command options

-c, --cluster
Specify the cluster name or ID.
-q
Do not show the message of the day or update reminders.
--version
Specify the version of the add-on to install. If no version is specified, the default version is installed.
-y
Enable all add-on dependencies.

Examples

Enable the Istio BookInfo sample application add-on on a cluster (deprecated)

ibmcloud ks cluster addon enable istio-sample-bookinfo --cluster CLUSTER

ibmcloud ks cluster addon enable static-route

Virtual Private Cloud Classic infrastructure Satellite

Enable the Static Route add-on.

ibmcloud ks cluster addon enable static-route --cluster CLUSTER [-q] [--version VERSION] [-y]

Command options

-c, --cluster
Specify the cluster name or ID.
-q
Do not show the message of the day or update reminders.
--version
Specify the version of the add-on to install. If no version is specified, the default version is installed.
-y
Enable all add-on dependencies.

Examples

Enable the Static Route add-on

ibmcloud ks cluster addon enable static-route --cluster CLUSTER

ibmcloud ks cluster addon enable vpc-block-csi-driver

Virtual Private Cloud

Enable the VPC Block Storage CSI Driver add-on.

ibmcloud ks cluster addon enable vpc-block-csi-driver --cluster CLUSTER [-q] [--version VERSION] [-y]

Command options

-c, --cluster
Specify the cluster name or ID.
-q
Do not show the message of the day or update reminders.
--version
Specify the version of the add-on to install. If no version is specified, the default version is installed.
-y
Enable all add-on dependencies.

Examples

Enable the VPC Block Storage CSI Driver add-on

ibmcloud ks cluster addon enable vpc-block-csi-driver --cluster CLUSTER

ibmcloud ks cluster addon get

Virtual Private Cloud Classic infrastructure Satellite

View details of an installed add-on.

ibmcloud ks cluster addon get --addon ADDON --cluster CLUSTER [--output OUTPUT] [-q]

Command options

--addon
The add-on name or ID.
-c, --cluster
Specify the cluster name or ID.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.

Examples

View details of an installed add-on

ibmcloud ks cluster addon get --addon ADDON --cluster CLUSTER

ibmcloud ks cluster addon help

Show help

ibmcloud ks cluster addon help

Examples

Show help

ibmcloud ks cluster addon help

ibmcloud ks cluster addon ls

Virtual Private Cloud Classic infrastructure Satellite

List enabled add-ons.

ibmcloud ks cluster addon ls --cluster CLUSTER [--output OUTPUT] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.

Examples

List enabled add-ons

ibmcloud ks cluster addon ls --cluster CLUSTER

ibmcloud ks cluster addon options

Virtual Private Cloud Classic infrastructure Satellite

View installation options for an add-on.

ibmcloud ks cluster addon options --addon ADDON [--output OUTPUT] [-q] [--version VERSION]

Command options

--addon
The add-on name or ID.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.
--version
Specify an add-on version to display options for. If no version is specified, the default version's options are displayed.

Examples

View installation options for an add-on

ibmcloud ks cluster addon options --addon ADDON

ibmcloud ks cluster addon update acm

Update the Red Hat Advanced Cluster Management add-on.

ibmcloud ks cluster addon update acm --cluster CLUSTER [-f] [-q] [--version VERSION] [-y]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.
--version
Specify the version of the add-on to install. If no version is specified, the default version is installed.
-y
Update all add-on dependencies.

Examples

Update the Red Hat Advanced Cluster Management add-on

ibmcloud ks cluster addon update acm --cluster CLUSTER

ibmcloud ks cluster addon update alb-oauth-proxy

Update the ALB OAuth Proxy add-on.

ibmcloud ks cluster addon update alb-oauth-proxy --cluster CLUSTER [-f] [-q] [--version VERSION] [-y]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.
--version
Specify the version of the add-on to install. If no version is specified, the default version is installed.
-y
Update all add-on dependencies.

Examples

Update the ALB OAuth Proxy add-on

ibmcloud ks cluster addon update alb-oauth-proxy --cluster CLUSTER

ibmcloud ks cluster addon update cluster-autoscaler

Update the Cluster Autoscaler add-on.

ibmcloud ks cluster addon update cluster-autoscaler --cluster CLUSTER [-f] [-q] [--version VERSION] [-y]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.
--version
Specify the version of the add-on to install. If no version is specified, the default version is installed.
-y
Update all add-on dependencies.

Examples

Update the Cluster Autoscaler add-on

ibmcloud ks cluster addon update cluster-autoscaler --cluster CLUSTER

ibmcloud ks cluster addon update debug-tool

Update the Diagnostics and Debug Tool add-on.

ibmcloud ks cluster addon update debug-tool --cluster CLUSTER [-f] [-q] [--version VERSION] [-y]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.
--version
Specify the version of the add-on to install. If no version is specified, the default version is installed.
-y
Update all add-on dependencies.

Examples

Update the Diagnostics and Debug Tool add-on

ibmcloud ks cluster addon update debug-tool --cluster CLUSTER

ibmcloud ks cluster addon update headlamp

The cluster addon update headlamp command is a beta feature.

Update the Headlamp add-on.

ibmcloud ks cluster addon update headlamp --cluster CLUSTER [-f] [-q] [--version VERSION] [-y]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.
--version
Specify the version of the add-on to install. If no version is specified, the default version is installed.
-y
Update all add-on dependencies.

Examples

Update the Headlamp add-on

ibmcloud ks cluster addon update headlamp --cluster CLUSTER

ibmcloud ks cluster addon update help

Show help

ibmcloud ks cluster addon update help

Examples

Show help

ibmcloud ks cluster addon update help

ibmcloud ks cluster addon update hpcs-router

Update the HPCS Router Operator add-on for OpenShift.

ibmcloud ks cluster addon update hpcs-router --cluster CLUSTER [-f] [-q] [--version VERSION] [-y]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.
--version
Specify the version of the add-on to install. If no version is specified, the default version is installed.
-y
Update all add-on dependencies.

Examples

Update the HPCS Router Operator add-on for OpenShift

ibmcloud ks cluster addon update hpcs-router --cluster CLUSTER

ibmcloud ks cluster addon update ibm-storage-operator

The cluster addon update ibm-storage-operator command is a beta feature.

Update the IBM Cloud Storage Operator add-on.

ibmcloud ks cluster addon update ibm-storage-operator --cluster CLUSTER [-f] [-q] [--version VERSION] [-y]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.
--version
Specify the version of the add-on to install. If no version is specified, the default version is installed.
-y
Update all add-on dependencies.

Examples

Update the IBM Cloud Storage Operator add-on

ibmcloud ks cluster addon update ibm-storage-operator --cluster CLUSTER

ibmcloud ks cluster addon update image-key-synchronizer

Update the Image Key Synchronizer add-on.

ibmcloud ks cluster addon update image-key-synchronizer --cluster CLUSTER [-f] [-q] [--version VERSION] [-y]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.
--version
Specify the version of the add-on to install. If no version is specified, the default version is installed.
-y
Update all add-on dependencies.

Examples

Update the Image Key Synchronizer add-on

ibmcloud ks cluster addon update image-key-synchronizer --cluster CLUSTER

ibmcloud ks cluster addon update istio

Update the managed Istio add-on.

ibmcloud ks cluster addon update istio --cluster CLUSTER [-f] [-q] [--version VERSION] [-y]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.
--version
Specify the version of the add-on to install. If no version is specified, the default version is installed.
-y
Update all add-on dependencies.

Examples

Update the managed Istio add-on

ibmcloud ks cluster addon update istio --cluster CLUSTER

ibmcloud ks cluster addon update istio-extras

The cluster addon update istio-extras command is deprecated.

Update extra Istio components: Grafana, Jaeger, and Kiali.

ibmcloud ks cluster addon update istio-extras --cluster CLUSTER [-f] [-q] [--version VERSION] [-y]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.
--version
Specify the version of the add-on to install. If no version is specified, the default version is installed.
-y
Update all add-on dependencies.

Examples

Update extra Istio components: Grafana, Jaeger, and Kiali

ibmcloud ks cluster addon update istio-extras --cluster CLUSTER

ibmcloud ks cluster addon update istio-sample-bookinfo

The cluster addon update istio-sample-bookinfo command is deprecated.

Update the Istio BookInfo sample application add-on (deprecated).

ibmcloud ks cluster addon update istio-sample-bookinfo --cluster CLUSTER [-f] [-q] [--version VERSION] [-y]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.
--version
Specify the version of the add-on to install. If no version is specified, the default version is installed.
-y
Update all add-on dependencies.

Examples

Update the Istio BookInfo sample application add-on (deprecated)

ibmcloud ks cluster addon update istio-sample-bookinfo --cluster CLUSTER

ibmcloud ks cluster addon update knative

Update the Knative serverless framework add-on.

ibmcloud ks cluster addon update knative --cluster CLUSTER [-f] [-q] [--version VERSION] [-y]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.
--version
Specify the version of the add-on to install. If no version is specified, the default version is installed.
-y
Update all add-on dependencies.

Examples

Update the Knative serverless framework add-on

ibmcloud ks cluster addon update knative --cluster CLUSTER

ibmcloud ks cluster addon update kube-terminal

Update the Kubernetes web terminal add-on.

ibmcloud ks cluster addon update kube-terminal --cluster CLUSTER [-f] [-q] [--version VERSION] [-y]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.
--version
Specify the version of the add-on to install. If no version is specified, the default version is installed.
-y
Update all add-on dependencies.

Examples

Update the Kubernetes web terminal add-on

ibmcloud ks cluster addon update kube-terminal --cluster CLUSTER

ibmcloud ks cluster addon update openshift-data-foundation

Update the OpenShift Data Foundation add-on.

ibmcloud ks cluster addon update openshift-data-foundation --cluster CLUSTER [-f] [-q] [--version VERSION] [-y]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.
--version
Specify the version of the add-on to install. If no version is specified, the default version is installed.
-y
Update all add-on dependencies.

Examples

Update the OpenShift Data Foundation add-on

ibmcloud ks cluster addon update openshift-data-foundation --cluster CLUSTER

ibmcloud ks cluster addon update static-route

Update the Static Route add-on.

ibmcloud ks cluster addon update static-route --cluster CLUSTER [-f] [-q] [--version VERSION] [-y]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.
--version
Specify the version of the add-on to install. If no version is specified, the default version is installed.
-y
Update all add-on dependencies.

Examples

Update the Static Route add-on

ibmcloud ks cluster addon update static-route --cluster CLUSTER

ibmcloud ks cluster addon update vpc-block-csi-driver

Update the VPC Block Storage CSI Driver add-on.

ibmcloud ks cluster addon update vpc-block-csi-driver --cluster CLUSTER [-f] [-q] [--version VERSION] [-y]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.
--version
Specify the version of the add-on to install. If no version is specified, the default version is installed.
-y
Update all add-on dependencies.

Examples

Update the VPC Block Storage CSI Driver add-on

ibmcloud ks cluster addon update vpc-block-csi-driver --cluster CLUSTER

ibmcloud ks cluster addon versions

Virtual Private Cloud Classic infrastructure Satellite

List supported versions for managed add-ons.

ibmcloud ks cluster addon versions [--addon ADDON] [--offering OFFERING] [--output OUTPUT] [-q] [--show-defaults]

Command options

--addon
Specify an add-on name to filter versions for.
--offering
Specify an offering to filter versions for. Accepted values: kubernetes, openshift, openshift-vs
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.
--show-defaults
Show the default version columns in the output.

Examples

List supported versions for managed add-ons

ibmcloud ks cluster addon versions

ibmcloud ks cluster ca create

Virtual Private Cloud Classic infrastructure Satellite

Create a CA certificate for your cluster. Then, you must rotate the previous certificates to use the new certificates.

ibmcloud ks cluster ca create --cluster CLUSTER [-f] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.

Examples

Create a CA certificate for your cluster

ibmcloud ks cluster ca create --cluster CLUSTER

ibmcloud ks cluster ca get

Virtual Private Cloud Classic infrastructure Satellite

View the details of a cluster's CA certificate.

ibmcloud ks cluster ca get --cluster CLUSTER [--output OUTPUT] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.

Examples

View the details of a cluster's CA certificate

ibmcloud ks cluster ca get --cluster CLUSTER

ibmcloud ks cluster ca help

Show help

ibmcloud ks cluster ca help

Examples

Show help

ibmcloud ks cluster ca help

ibmcloud ks cluster ca rotate

Virtual Private Cloud Classic infrastructure Satellite

Rotate the CA certificates of a cluster, which requires that you previously created CA certificates. Rotating invalidates the previous certificates and refreshes the API server of the cluster.

ibmcloud ks cluster ca rotate --cluster CLUSTER [-f] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.

Examples

Rotate the CA certificates of a cluster, which requires that you previously created CA certificates

ibmcloud ks cluster ca rotate --cluster CLUSTER

ibmcloud ks cluster ca status

Virtual Private Cloud Classic infrastructure Satellite

View the rotation status of CA certificates for a cluster.

ibmcloud ks cluster ca status --cluster CLUSTER [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-q
Do not show the message of the day or update reminders.

Examples

View the rotation status of CA certificates for a cluster

ibmcloud ks cluster ca status --cluster CLUSTER

ibmcloud ks cluster config

Virtual Private Cloud Classic infrastructure Satellite

Download the Kubernetes configuration files and certificates to connect to your cluster by using kubectl commands.

ibmcloud ks cluster config --cluster CLUSTER [--admin] [--endpoint ENDPOINT] [--network] [--output OUTPUT] [-q] [--skip-rbac]

Command options

--admin
Retrieve administrator certificates and PEM keys.
-c, --cluster
Specify the cluster name or ID.
--endpoint
The server URL to use for the cluster context. If you do not include this flag, the default cluster service endpoint is used. For more info, see https://ibm.biz/context-kube for Kubernetes or https://ibm.biz/context-ocp for OpenShift clusters. Accepted values: private, link, vpe
--network
Retrieve the Calico network config with the Admin config.
--output
Prints the command output in the provided format and skips kubeconfig merges. A zip output does not contain a refresh token. Accepted values: json, yaml, zip
-q
Do not show the message of the day or update reminders.
--skip-rbac
Skip adding RBAC roles. Include this option only if you manage your own Kubernetes RBAC roles. If you use IAM service access roles to manage all your RBAC users, do not include this option.

Examples

Download the Kubernetes configuration files and certificates to connect to your cluster by using kubectl commands

ibmcloud ks cluster config --cluster CLUSTER

ibmcloud ks cluster create classic

Classic infrastructure

Create a cluster with worker nodes on classic infrastructure.

ibmcloud ks cluster create classic --flavor FLAVOR --name NAME --zone ZONE [--disable-disk-encrypt] [--entitlement ENTITLEMENT] [--hardware HARDWARE] [--location LOCATION] [--no-subnet] [--operating-system SYSTEM] [--pod-subnet SUBNET] [--private-service-endpoint] [--private-vlan VLAN] [--public-service-endpoint] [-q] [--service-subnet SUBNET] [--skip-advance-permissions-check] [--sm-group GROUP] [--sm-instance INSTANCE] [--version VERSION] [--workers COUNT] (--private-only | --public-vlan VLAN)

Command options

--disable-disk-encrypt
Disable encryption on a worker node.
--entitlement
Set this flag to ocp_entitled only if you use this cluster with a license such as a Cloud Pak that has an OpenShift entitlement.
--flavor
The flavor of a worker node. To see available flavors, run ibmcloud ks flavor ls --zone <zone name> (for public IBM Cloud accounts) or ibmcloud ks flavor ls (for IBM Cloud Dedicated accounts).
--hardware
The level of hardware isolation for your worker node. Use dedicated to have available physical resources dedicated to you only, or shared to allow physical resources to be shared with other IBM customers. For IBM Cloud Public accounts, the default value is shared. For IBM Cloud Dedicated accounts, dedicated is the only available option.
--location
Deprecated Flag maintained for compatibility with an earlier version. Use the --zone flag instead.
--name
Enter a name for the cluster.
--no-subnet
Prevent the creation of a portable subnet when creating the cluster. By default, both a public and a private portable subnet are created on the associated VLAN, and this flag prevents that behavior. To add a subnet to the cluster later, run ibmcloud ks cluster subnet add.
--operating-system
Specify the name of the operating system.
--pod-subnet
Specify a custom subnet CIDR to provide private IP addresses for pods. The subnet must be at least /23 or larger. For more info, see https://ibm.biz/cluster-create-classic
--private-only
Use this flag to prevent a public VLAN from being created. Required only when you specify the --private-vlan flag without specifying the --public-vlan flag.
--private-service-endpoint
Enable the private service endpoint to make the master privately accessible.
--private-vlan
Conditional: Specify the ID of the private VLAN. To see available VLANs, run ibmcloud ks vlan ls --zone <zone name>. If you do not have a private VLAN yet, do not specify this option because one will be automatically created for you. When you specify a private VLAN, you must also specify either the --public-vlan flag or the --private-only flag.
--public-service-endpoint
Enable the public service endpoint to make the master publicly accessible.
--public-vlan
Conditional: Specify the ID of the public VLAN. To see available VLANs, run ibmcloud ks vlan ls --zone <zone name>. If you do not have a public VLAN yet, do not specify this option because one will be automatically created for you.
-q
Do not show the message of the day or update reminders.
--service-subnet
Specify a custom subnet CIDR to provide private IP addresses for services. The subnet must be at least /24 or larger. For more info, see https://ibm.biz/cluster-create-classic. Default value: 172.21.0.0/16
--skip-advance-permissions-check
Skip checking for infrastructure permissions before completing this action. Note that if you do not have the correct infrastructure permissions, this action might only partially succeed.
--sm-group
The Secret Group ID of the IBM Cloud Secrets Manager instance where your secrets are persisted.
--sm-instance
The CRN of the IBM Cloud Secrets Manager instance.
--version
Specify the Kubernetes or OpenShift version, including at least the major.minor version. If you do not include this flag, the default version is used. To see available versions, run ibmcloud ks versions.
--workers
The number of cluster worker nodes. Defaults to 1.
--zone
Specify the zone for the worker pool in a multizone cluster. To list available zones, run ibmcloud ks zone ls.

Examples

Create a cluster with worker nodes on classic infrastructure

ibmcloud ks cluster create classic --flavor FLAVOR --name NAME --zone ZONE --private-only

ibmcloud ks cluster create help

Show help

ibmcloud ks cluster create help

Examples

Show help

ibmcloud ks cluster create help

ibmcloud ks cluster create satellite

Create an IBM Cloud Satellite cluster on your own infrastructure.

ibmcloud ks cluster create satellite --location LOCATION --name NAME --version VERSION [--enable-config-admin] [--entitlement ENTITLEMENT] [--host-label LABEL ...] [--infrastructure-topology TOPOLOGY] [--operating-system SYSTEM] [--pod-network-interface-selection SELECTION] [--pod-subnet SUBNET] [--pull-secret SECRET] [-q] [--service-subnet SUBNET] [--sm-group GROUP] [--sm-instance INSTANCE] [--workers COUNT] [--zone ZONE]

Command options

--enable-config-admin
Grant cluster admin access to Satellite Config to manage Kubernetes resources.
--entitlement
Set this flag to ocp_entitled only if you use this cluster with a license such as a Cloud Pak that has an OpenShift entitlement.
--host-label, --hl
Enter any labels as key-value pairs to identify the host to assign to your Satellite control plane or Red Hat OpenShift cluster. The first host that has this label and is unassigned is automatically assigned to the control plane or cluster. To find available host labels, run ibmcloud sat host get --host <host_name_or_ID> --location <location_name_or_ID>.
--infrastructure-topology
Specify whether the cluster should run a single worker node or the default number of worker nodes. To create a single-node cluster, specify single-replica. To create a default cluster with multiple worker nodes, specify highly-available. The highly-available option is applied by default. Accepted values: single-replica, highly-available
--location
The name or ID of the Satellite location. To find the location ID or name, run ibmcloud sat location ls.
--name
Enter a name for the cluster.
--operating-system
Specify the name of the operating system.
--pod-network-interface-selection
The method for selecting the node network interface for the internal pod network. This option can be used only if the Satellite location that you specify has Red Hat CoreOS enabled. To provide a direct URL or IP address, specify can-reach=<url> or can-reach=<ip_address>. To choose a network interface, specify interface=<network_interface>.
--pod-subnet
Specify a custom subnet CIDR to provide private IP addresses for pods. The subnet must be at least /23 or larger. For more info, see https://ibm.biz/cluster-create-satellite. Default value: 172.30.0.0/16
--pull-secret
Specify an existing OpenShift entitlement for this cluster's worker nodes by providing your Red Hat account pull secret.
-q
Do not show the message of the day or update reminders.
--service-subnet
Specify a custom subnet CIDR to provide private IP addresses for services. The subnet must be at least /24 or larger. For more info, see https://ibm.biz/cluster-create-satellite. Default value: 172.21.0.0/16
--sm-group
The Secret Group ID of the IBM Cloud Secrets Manager instance where your secrets are persisted.
--sm-instance
The CRN of the IBM Cloud Secrets Manager instance.
--version
The Red Hat OpenShift on IBM Cloud version, including at least the major.minor version. To see available versions, run ibmcloud ks versions.
--workers
The number of worker nodes per zone in the default worker pool. Required when --host-label is specified.
--zone
The zone for the default worker pool in a multizone cluster. To list zones for your location, run ibmcloud sat location get.

Examples

Create an IBM Cloud Satellite cluster on your own infrastructure

ibmcloud ks cluster create satellite --location LOCATION --name NAME --version VERSION

ibmcloud ks cluster create vpc-classic

Create a cluster with worker nodes on Virtual Private Cloud (VPC) Gen 1 infrastructure.

ibmcloud ks cluster create vpc-classic --flavor FLAVOR --name NAME --subnet-id ID --vpc-id ID --zone ZONE [--disable-public-service-endpoint] [--entitlement ENTITLEMENT] [--operating-system SYSTEM] [--pod-subnet SUBNET] [-q] [--service-subnet SUBNET] [--sm-group GROUP] [--sm-instance INSTANCE] [--version VERSION] [--workers COUNT]

Command options

--disable-public-service-endpoint
Disable the public service endpoint to prevent public access to the master.
--entitlement
Set this flag to ocp_entitled only if you use this cluster with a license such as a Cloud Pak that has an OpenShift entitlement.
--flavor
The flavor of a worker node. To see available flavors, run ibmcloud ks flavor ls --zone <zone name> (for public IBM Cloud accounts) or ibmcloud ks flavor ls (for IBM Cloud Dedicated accounts).
--name
Enter a name for the cluster.
--operating-system
Specify the name of the operating system.
--pod-subnet
Specify a custom subnet CIDR to provide private IP addresses for pods. The subnet must be at least /23 or larger. For more info, see https://ibm.biz/cluster-create-vpc
-q
Do not show the message of the day or update reminders.
--service-subnet
Specify a custom subnet CIDR to provide private IP addresses for services. The subnet must be at least /24 or larger. For more info, see https://ibm.biz/cluster-create-vpc. Default value: 172.21.0.0/16
--sm-group
The Secret Group ID of the IBM Cloud Secrets Manager instance where your secrets are persisted.
--sm-instance
The CRN of the IBM Cloud Secrets Manager instance.
--subnet-id
The VPC subnet to assign the cluster. To list available subnets, run ibmcloud ks subnets --provider vpc-classic --vpc-id <vpc-id> --zone <vpc-zone>.
--version
Specify the Kubernetes or OpenShift version, including at least the major.minor version. If you do not include this flag, the default version is used. To see available versions, run ibmcloud ks versions.
--vpc-id
The ID of the VPC in which to create the worker nodes. To list available IDs, run ibmcloud ks vpcs.
--workers
The number of worker nodes per zone in the default worker pool. For OpenShift clusters, you must set this value to at least 2. For Kubernetes clusters, this value is optional.
--zone
Specify the zone for the worker pool in a multizone cluster. To list available zones, run ibmcloud ks zone ls.

Examples

Create a cluster with worker nodes on Virtual Private Cloud (VPC) Gen 1 infrastructure

ibmcloud ks cluster create vpc-classic \
  --flavor FLAVOR \
  --name NAME \
  --subnet-id ID \
  --vpc-id ID \
  --zone ZONE

ibmcloud ks cluster create vpc-gen2

Virtual Private Cloud

Create a cluster with worker nodes on Virtual Private Cloud (VPC) Gen 2 infrastructure.

ibmcloud ks cluster create vpc-gen2 --flavor FLAVOR --name NAME --subnet-id ID --vpc-id ID --zone ZONE [--cluster-security-group GROUP ...] [--cni CNI] [--cos-instance INSTANCE] [--crk CRK] [--disable-outbound-traffic-protection] [--disable-public-service-endpoint] [--entitlement ENTITLEMENT] [--kms-account-id ID] [--kms-instance INSTANCE] [--offering OFFERING] [--operating-system SYSTEM] [--pod-subnet SUBNET] [-q] [--secondary-storage STORAGE] [--service-subnet SUBNET] [--sm-group GROUP] [--sm-instance INSTANCE] [--version VERSION] [--workers COUNT]

Command options

--cluster-security-group
Optional. Specify one or more security group IDs to apply to all workers on the cluster. For OpenShift version 4.15 and Kubernetes version 1.30 and later, these security groups are applied in addition to the IBM-managed kube-clusterID security group. For earlier cluster versions, specify the --cluster-security-group cluster option to apply the kube-clusterID security group. If no value is specified, a default set of security groups including kube-clusterID are applied.
--cni
Set the network plugin for the cluster. Calico is set by default. Accepted values: Calico, OVNKubernetes
--cos-instance
Required for OpenShift clusters only. The CRN for the standard cloud object storage instance to back up the internal registry in your OpenShift cluster. To list the CRNs of your cloud object storage instances, run ibmcloud resource service-instances --long --service-name cloud-object-storage.
--crk
The ID of the root key in your KMS instance to use for local disk encryption. To list available root keys, run ibmcloud ks kms crk ls --instance-id <kms_instance>.
--disable-outbound-traffic-protection
Include this option to allow public outbound access from the cluster workers. By default, public outbound access is blocked in OpenShift versions 4.15 and later and Kubernetes versions 1.30 and later.
--disable-public-service-endpoint
Disable the public service endpoint to prevent public access to the master.
--entitlement
Set this flag to ocp_entitled only if you use this cluster with a license such as a Cloud Pak that has an OpenShift entitlement.
--flavor
The flavor of a worker node. To see available flavors, run ibmcloud ks flavor ls --zone <zone name> (for public IBM Cloud accounts) or ibmcloud ks flavor ls (for IBM Cloud Dedicated accounts).
--kms-account-id
The ID of the account that contains the KMS instance you want to use for local disk or secret encryption.
--kms-instance
The ID of the KMS instance to use for local disk encryption. To list available KMS instances, run ibmcloud ks kms instance ls.
--name
Enter a name for the cluster.
--offering
Specify the cluster offering. Accepted values: kubernetes, openshift, openshift-vs
--operating-system
Specify the name of the operating system.
--pod-subnet
Specify a custom subnet CIDR to provide private IP addresses for pods. The subnet must be at least /23 or larger. For more info, see https://ibm.biz/cluster-create-vpc
-q
Do not show the message of the day or update reminders.
--secondary-storage
The secondary storage option for the flavor. To view the secondary storage options that are available for a flavor, run ibmcloud ks flavor get --provider vpc-gen2 --zone <zone name>.
--service-subnet
Specify a custom subnet CIDR to provide private IP addresses for services. The subnet must be at least /24 or larger. For more info, see https://ibm.biz/cluster-create-vpc. Default value: 172.21.0.0/16
--sm-group
The Secret Group ID of the IBM Cloud Secrets Manager instance where your secrets are persisted.
--sm-instance
The CRN of the IBM Cloud Secrets Manager instance.
--subnet-id
The VPC subnet to assign the cluster. To list available subnets, run ibmcloud ks subnets --provider vpc-gen2 --vpc-id <vpc-id> --zone <vpc-zone>.
--version
Specify the Kubernetes or OpenShift version, including at least the major.minor version. If you do not include this flag, the default version is used. To see available versions, run ibmcloud ks versions.
--vpc-id
The ID of the VPC in which to create the worker nodes. To list available IDs, run ibmcloud ks vpcs.
--workers
The number of worker nodes per zone in the default worker pool. For OpenShift clusters, you must set this value to at least 2. For Kubernetes clusters, this value is optional.
--zone
Specify the zone for the worker pool in a multizone cluster. To list available zones, run ibmcloud ks zone ls.

Examples

Create a cluster with worker nodes on Virtual Private Cloud (VPC) Gen 2 infrastructure

ibmcloud ks cluster create vpc-gen2 \
  --flavor FLAVOR \
  --name NAME \
  --subnet-id ID \
  --vpc-id ID \
  --zone ZONE

ibmcloud ks cluster get

Virtual Private Cloud Classic infrastructure Satellite

View the details of a cluster.

ibmcloud ks cluster get --cluster CLUSTER [--output OUTPUT] [-q] [--show-resources]

Command options

-c, --cluster
Specify the cluster name or ID.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.
--show-resources
Show additional cluster resources such as add-ons, VLANs, and subnets.

Examples

View the details of a cluster

ibmcloud ks cluster get --cluster CLUSTER

ibmcloud ks cluster help

Show help

ibmcloud ks cluster help

Examples

Show help

ibmcloud ks cluster help

ibmcloud ks cluster image-security disable

Virtual Private Cloud Classic infrastructure Satellite

Disable image security enforcement in your cluster.

ibmcloud ks cluster image-security disable --cluster CLUSTER [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-q
Do not show the message of the day or update reminders.

Examples

Disable image security enforcement in your cluster

ibmcloud ks cluster image-security disable --cluster CLUSTER

ibmcloud ks cluster image-security enable

Virtual Private Cloud Classic infrastructure Satellite

Enable image security enforcement in your cluster.

ibmcloud ks cluster image-security enable --cluster CLUSTER [-f] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.

Examples

Enable image security enforcement in your cluster

ibmcloud ks cluster image-security enable --cluster CLUSTER

ibmcloud ks cluster image-security help

Show help

ibmcloud ks cluster image-security help

Examples

Show help

ibmcloud ks cluster image-security help

ibmcloud ks cluster ls

Virtual Private Cloud Classic infrastructure Satellite

List all clusters in your IBM Cloud account.

ibmcloud ks cluster ls [-l LOCATION ...] [--output OUTPUT] [--provider PROVIDER] [-q]

Command options

-l, --location
A location to filter for. To list available locations, run ibmcloud ks locations.
--output
Prints the command output in the provided format. If you do not include the provider flag, only classic clusters are returned. Accepted values: json
--provider
Filter the list for a specific infrastructure provider. Accepted values: classic, vpc-classic, vpc-gen2, satellite
-q
Do not show the message of the day or update reminders.

Examples

List all clusters in your IBM Cloud account

ibmcloud ks cluster ls

ibmcloud ks cluster master audit-webhook get

Classic infrastructure

View the audit webhook configuration for a cluster's Kubernetes API server. The webhook backend forwards API server audit logs to a remote server.

ibmcloud ks cluster master audit-webhook get --cluster CLUSTER [--output OUTPUT] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.

Examples

View the audit webhook configuration for a cluster's Kubernetes API server

ibmcloud ks cluster master audit-webhook get --cluster CLUSTER

ibmcloud ks cluster master audit-webhook help

Show help

ibmcloud ks cluster master audit-webhook help

Examples

Show help

ibmcloud ks cluster master audit-webhook help

ibmcloud ks cluster master audit-webhook set

Classic infrastructure

Set the audit webhook configuration for a cluster's Kubernetes API server. The webhook backend forwards API server audit logs to a remote server.

ibmcloud ks cluster master audit-webhook set --cluster CLUSTER [--ca-cert CERT] [--client-cert CERT] [--client-key KEY] [--policy POLICY] [-q] [--remote-server SERVER]

Command options

-c, --cluster
Specify the cluster name or ID.
--ca-cert
The filepath of the CA cert used to verify the remote logging service.
--client-cert
The filepath for the client cert that is used to authenticate against the remote logging service.
--client-key
The filepath for the corresponding client key that is used to connect to the remote logging service.
--policy
Specify the audit policy type. Accepted values: default, verbose
-q
Do not show the message of the day or update reminders.
--remote-server
The URL or IP address for the remote logging service.

Examples

Set the audit webhook configuration for a cluster's Kubernetes API server

ibmcloud ks cluster master audit-webhook set --cluster CLUSTER

ibmcloud ks cluster master audit-webhook unset

Classic infrastructure

Remove the audit webhook configuration for a cluster's Kubernetes API server.

ibmcloud ks cluster master audit-webhook unset --cluster CLUSTER [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-q
Do not show the message of the day or update reminders.

Examples

Remove the audit webhook configuration for a cluster's Kubernetes API server

ibmcloud ks cluster master audit-webhook unset --cluster CLUSTER

ibmcloud ks cluster master console-oauth-access get

Get the OpenShift web console and OAuth server access type.

ibmcloud ks cluster master console-oauth-access get --cluster CLUSTER [--output OUTPUT] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.

Examples

Get the OpenShift web console and OAuth server access type

ibmcloud ks cluster master console-oauth-access get --cluster CLUSTER

ibmcloud ks cluster master console-oauth-access help

Show help

ibmcloud ks cluster master console-oauth-access help

Examples

Show help

ibmcloud ks cluster master console-oauth-access help

ibmcloud ks cluster master console-oauth-access set

Set the OpenShift web console and OAuth server access type.

ibmcloud ks cluster master console-oauth-access set --cluster CLUSTER [-f] [-q] [--type TYPE]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.
--type
Specify the OpenShift web console and OAuth server access type. Accepted values: vpe-gateway, legacy

Examples

Set the OpenShift web console and OAuth server access type

ibmcloud ks cluster master console-oauth-access set --cluster CLUSTER

ibmcloud ks cluster master help

Show help

ibmcloud ks cluster master help

Examples

Show help

ibmcloud ks cluster master help

ibmcloud ks cluster master pod-security get

Virtual Private Cloud Classic infrastructure Satellite

View the PodSecurity admission configuration for a cluster's Kubernetes API server.

ibmcloud ks cluster master pod-security get --cluster CLUSTER [--output OUTPUT] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.

Examples

View the PodSecurity admission configuration for a cluster's Kubernetes API server

ibmcloud ks cluster master pod-security get --cluster CLUSTER

ibmcloud ks cluster master pod-security help

Show help

ibmcloud ks cluster master pod-security help

Examples

Show help

ibmcloud ks cluster master pod-security help

ibmcloud ks cluster master pod-security policy disable

Virtual Private Cloud Classic infrastructure Satellite

Disable PodSecurityPolicy for a cluster's Kubernetes API server.

ibmcloud ks cluster master pod-security policy disable --cluster CLUSTER [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-q
Do not show the message of the day or update reminders.

Examples

Disable PodSecurityPolicy for a cluster's Kubernetes API server

ibmcloud ks cluster master pod-security policy disable --cluster CLUSTER

ibmcloud ks cluster master pod-security policy enable

Virtual Private Cloud Classic infrastructure Satellite

Enable PodSecurityPolicy for a cluster's Kubernetes API server.

ibmcloud ks cluster master pod-security policy enable --cluster CLUSTER [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-q
Do not show the message of the day or update reminders.

Examples

Enable PodSecurityPolicy for a cluster's Kubernetes API server

ibmcloud ks cluster master pod-security policy enable --cluster CLUSTER

ibmcloud ks cluster master pod-security policy get

Virtual Private Cloud Classic infrastructure Satellite

View the PodSecurityPolicy configuration for a cluster's Kubernetes API server.

ibmcloud ks cluster master pod-security policy get --cluster CLUSTER [--output OUTPUT] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.

Examples

View the PodSecurityPolicy configuration for a cluster's Kubernetes API server

ibmcloud ks cluster master pod-security policy get --cluster CLUSTER

ibmcloud ks cluster master pod-security policy help

Show help

ibmcloud ks cluster master pod-security policy help

Examples

Show help

ibmcloud ks cluster master pod-security policy help

ibmcloud ks cluster master pod-security set

Virtual Private Cloud Classic infrastructure Satellite

Set and enable the PodSecurity admission configuration for a cluster's Kubernetes API server.

ibmcloud ks cluster master pod-security set --cluster CLUSTER [--config-file FILE] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--config-file
The filepath of a custom PodSecurity configuration. If not specified, the Kubernetes defaults are applied. For more information, see https://ibm.biz/BdPtUB
-q
Do not show the message of the day or update reminders.

Examples

Set and enable the PodSecurity admission configuration for a cluster's Kubernetes API server

ibmcloud ks cluster master pod-security set --cluster CLUSTER

ibmcloud ks cluster master pod-security unset

Virtual Private Cloud Classic infrastructure Satellite

Remove the PodSecurity admission configuration for a cluster's Kubernetes API server.

ibmcloud ks cluster master pod-security unset --cluster CLUSTER [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-q
Do not show the message of the day or update reminders.

Examples

Remove the PodSecurity admission configuration for a cluster's Kubernetes API server

ibmcloud ks cluster master pod-security unset --cluster CLUSTER

ibmcloud ks cluster master private-service-endpoint allowlist add

The cluster master private-service-endpoint allowlist add command is deprecated.

Virtual Private Cloud Classic infrastructure

Add subnets to a cluster's private service endpoint allowlist.

ibmcloud ks cluster master private-service-endpoint allowlist add --cluster CLUSTER --subnet SUBNET [--subnet SUBNET ...] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-q
Do not show the message of the day or update reminders.
--subnet
Specify the subnet CIDR.

Examples

Add subnets to a cluster's private service endpoint allowlist

ibmcloud ks cluster master private-service-endpoint allowlist add --cluster CLUSTER --subnet SUBNET

ibmcloud ks cluster master private-service-endpoint allowlist disable

The cluster master private-service-endpoint allowlist disable command is deprecated.

Virtual Private Cloud Classic infrastructure

Disable the allowlist. When disabled, authorized requests to the cluster master from any subnet are permitted through the private service endpoint.

ibmcloud ks cluster master private-service-endpoint allowlist disable --cluster CLUSTER [-f] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.

Examples

Disable the allowlist

ibmcloud ks cluster master private-service-endpoint allowlist disable --cluster CLUSTER

ibmcloud ks cluster master private-service-endpoint allowlist enable

The cluster master private-service-endpoint allowlist enable command is deprecated.

Virtual Private Cloud Classic infrastructure

Enable the allowlist. When enabled, only authorized requests to the cluster master from subnets in the allowlist are permitted through the private service endpoint.

ibmcloud ks cluster master private-service-endpoint allowlist enable --cluster CLUSTER [-f] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.

Examples

Enable the allowlist

ibmcloud ks cluster master private-service-endpoint allowlist enable --cluster CLUSTER

ibmcloud ks cluster master private-service-endpoint allowlist get

The cluster master private-service-endpoint allowlist get command is deprecated.

Virtual Private Cloud Classic infrastructure

Get a cluster's private service endpoint allowlist.

ibmcloud ks cluster master private-service-endpoint allowlist get --cluster CLUSTER [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-q
Do not show the message of the day or update reminders.

Examples

Get a cluster's private service endpoint allowlist

ibmcloud ks cluster master private-service-endpoint allowlist get --cluster CLUSTER

ibmcloud ks cluster master private-service-endpoint allowlist help

Show help

ibmcloud ks cluster master private-service-endpoint allowlist help

Examples

Show help

ibmcloud ks cluster master private-service-endpoint allowlist help

ibmcloud ks cluster master private-service-endpoint allowlist rm

The cluster master private-service-endpoint allowlist rm command is deprecated.

Virtual Private Cloud Classic infrastructure

Remove subnets from a cluster's private service endpoint allowlist.

ibmcloud ks cluster master private-service-endpoint allowlist rm --cluster CLUSTER --subnet SUBNET [--subnet SUBNET ...] [-f] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.
--subnet
Specify the subnet CIDR.

Examples

Remove subnets from a cluster's private service endpoint allowlist

ibmcloud ks cluster master private-service-endpoint allowlist rm --cluster CLUSTER --subnet SUBNET

ibmcloud ks cluster master private-service-endpoint enable

Classic infrastructure

Enable the private service endpoint to make the master privately accessible.

ibmcloud ks cluster master private-service-endpoint enable --cluster CLUSTER [-f] [-q] [-y]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.
-y
If the feature requires further action, such as reloading workers or refreshing the cluster master, then perform those actions with no user prompts.

Examples

Enable the private service endpoint to make the master privately accessible

ibmcloud ks cluster master private-service-endpoint enable --cluster CLUSTER

ibmcloud ks cluster master private-service-endpoint help

Show help

ibmcloud ks cluster master private-service-endpoint help

Examples

Show help

ibmcloud ks cluster master private-service-endpoint help

ibmcloud ks cluster master public-service-endpoint disable

Virtual Private Cloud Classic infrastructure

Disable the public service endpoint to make the master only privately accessible.

ibmcloud ks cluster master public-service-endpoint disable --cluster CLUSTER [-f] [-q] [-y]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.
-y
If the feature requires further action, such as reloading workers or refreshing the cluster master, then perform those actions with no user prompts.

Examples

Disable the public service endpoint to make the master only privately accessible

ibmcloud ks cluster master public-service-endpoint disable --cluster CLUSTER

ibmcloud ks cluster master public-service-endpoint enable

Virtual Private Cloud Classic infrastructure

Enable the public service endpoint to make the master publicly accessible.

ibmcloud ks cluster master public-service-endpoint enable --cluster CLUSTER [-f] [-q] [-y]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.
-y
If the feature requires further action, such as reloading workers or refreshing the cluster master, then perform those actions with no user prompts.

Examples

Enable the public service endpoint to make the master publicly accessible

ibmcloud ks cluster master public-service-endpoint enable --cluster CLUSTER

ibmcloud ks cluster master public-service-endpoint help

Show help

ibmcloud ks cluster master public-service-endpoint help

Examples

Show help

ibmcloud ks cluster master public-service-endpoint help

ibmcloud ks cluster master refresh

Virtual Private Cloud Classic infrastructure Satellite

Restart the cluster master nodes to apply new Kubernetes API configuration changes. Your worker nodes, apps, and resources are not modified and continue to run.

ibmcloud ks cluster master refresh --cluster CLUSTER [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-q
Do not show the message of the day or update reminders.

Examples

Restart the cluster master nodes to apply new Kubernetes API configuration changes

ibmcloud ks cluster master refresh --cluster CLUSTER

ibmcloud ks cluster master satellite-service-endpoint allowlist add

Add subnets to a Satellite cluster's service endpoint allowlist.

ibmcloud ks cluster master satellite-service-endpoint allowlist add --cluster CLUSTER --subnet SUBNET [--subnet SUBNET ...] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-q
Do not show the message of the day or update reminders.
--subnet
Specify the subnet CIDR.

Examples

Add subnets to a Satellite cluster's service endpoint allowlist

ibmcloud ks cluster master satellite-service-endpoint allowlist add \
  --cluster CLUSTER \
  --subnet SUBNET

ibmcloud ks cluster master satellite-service-endpoint allowlist disable

Disable the allowlist for a Satellite cluster. When disabled, authorized requests to the cluster master from any subnet are permitted through the Satellite service endpoint.

ibmcloud ks cluster master satellite-service-endpoint allowlist disable --cluster CLUSTER [-f] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.

Examples

Disable the allowlist for a Satellite cluster

ibmcloud ks cluster master satellite-service-endpoint allowlist disable --cluster CLUSTER

ibmcloud ks cluster master satellite-service-endpoint allowlist enable

Enable the allowlist for a Satellite cluster. When enabled, only authorized requests to the cluster master from subnets in the allowlist are permitted through the Satellite service endpoint.

ibmcloud ks cluster master satellite-service-endpoint allowlist enable --cluster CLUSTER [-f] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.

Examples

Enable the allowlist for a Satellite cluster

ibmcloud ks cluster master satellite-service-endpoint allowlist enable --cluster CLUSTER

ibmcloud ks cluster master satellite-service-endpoint allowlist get

Get a Satellite cluster's service endpoint allowlist.

ibmcloud ks cluster master satellite-service-endpoint allowlist get --cluster CLUSTER [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-q
Do not show the message of the day or update reminders.

Examples

Get a Satellite cluster's service endpoint allowlist

ibmcloud ks cluster master satellite-service-endpoint allowlist get --cluster CLUSTER

ibmcloud ks cluster master satellite-service-endpoint allowlist help

Show help

ibmcloud ks cluster master satellite-service-endpoint allowlist help

Examples

Show help

ibmcloud ks cluster master satellite-service-endpoint allowlist help

ibmcloud ks cluster master satellite-service-endpoint allowlist rm

Remove subnets from a Satellite cluster's service endpoint allowlist.

ibmcloud ks cluster master satellite-service-endpoint allowlist rm --cluster CLUSTER --subnet SUBNET [--subnet SUBNET ...] [-f] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.
--subnet
Specify the subnet CIDR.

Examples

Remove subnets from a Satellite cluster's service endpoint allowlist

ibmcloud ks cluster master satellite-service-endpoint allowlist rm --cluster CLUSTER --subnet SUBNET

ibmcloud ks cluster master satellite-service-endpoint help

Show help

ibmcloud ks cluster master satellite-service-endpoint help

Examples

Show help

ibmcloud ks cluster master satellite-service-endpoint help

ibmcloud ks cluster master update

Virtual Private Cloud Classic infrastructure Satellite

Update the cluster master to the latest or a specified Kubernetes version.

ibmcloud ks cluster master update --cluster CLUSTER [-f] [--force-update] [-q] [--version VERSION]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
--force-update
Attempt the update even if the change is greater than two minor versions from the worker node's current version.
-q
Do not show the message of the day or update reminders.
--version
Specify the Kubernetes or OpenShift version, including at least the major.minor version. If you do not include this flag, the default version is used. To see available versions, run ibmcloud ks versions.

Examples

Update the cluster master to the latest or a specified Kubernetes version

ibmcloud ks cluster master update --cluster CLUSTER

ibmcloud ks cluster pull-secret apply

Virtual Private Cloud Classic infrastructure Satellite

Generate and apply a new image pull secret that stores IAM credentials for the cluster to access images in IBM Cloud Container Registry.

ibmcloud ks cluster pull-secret apply --cluster CLUSTER [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-q
Do not show the message of the day or update reminders.

Examples

Generate and apply a new image pull secret that stores IAM credentials for the cluster to access images in IBM Cloud Container Registry

ibmcloud ks cluster pull-secret apply --cluster CLUSTER

ibmcloud ks cluster pull-secret help

Show help

ibmcloud ks cluster pull-secret help

Examples

Show help

ibmcloud ks cluster pull-secret help

ibmcloud ks cluster rm

Virtual Private Cloud Classic infrastructure Satellite

Delete a cluster. All worker nodes, apps, and containers are permanently deleted. This action cannot be undone.

ibmcloud ks cluster rm --cluster CLUSTER [--delete-openshift-registry-cos-bucket] [--delete-storage] [-f] [-q] [--skip-advance-permissions-check]

Command options

-c, --cluster
Specify the cluster name or ID.
--delete-openshift-registry-cos-bucket
Remove the COS bucket and the associated service key that holds the OpenShift registry backups on ROKS clusters
--delete-storage
Force the removal of the cluster's persistent storage. Deleted data cannot be recovered.
-f
Force the command to run without user prompts. The cluster's persistent storage is not deleted unless the delete-storage option is also provided. The COS bucket and it's associated service key is not deleted unless the delete-openshift-registry-cos-bucket option is also provided.
-q
Do not show the message of the day or update reminders.
--skip-advance-permissions-check
Skip checking for infrastructure permissions before completing this action. Note that if you do not have the correct infrastructure permissions, this action might only partially succeed.

Examples

Delete a cluster

ibmcloud ks cluster rm --cluster CLUSTER

ibmcloud ks cluster service bind

Virtual Private Cloud Classic infrastructure Satellite

Add an IBM Cloud service to a cluster by binding the service instance to a Kubernetes namespace.

ibmcloud ks cluster service bind --cluster CLUSTER --namespace NAMESPACE --service SERVICE [-q] (--key KEY | --role ROLE)

Command options

-c, --cluster
Specify the cluster name or ID.
--key
Specify the name or GUID of an existing service key. If you define a service key, you cannot set the --role option at the same time.
-n, --namespace
Specify the Kubernetes namespace.
-q
Do not show the message of the day or update reminders.
--role
Specify the IAM role for the service key. This flag does not work if you specify an existing key to use or for services that are not IAM-enabled, such as Cloud Foundry services.
--service
Specify the name of the service instance. To see a list of available service instances, run ibmcloud service list for Cloud Foundry services, or ibmcloud resource service-instances for IAM-enabled services.

Examples

Add an IBM Cloud service to a cluster by binding the service instance to a Kubernetes namespace

ibmcloud ks cluster service bind --cluster CLUSTER --namespace NAMESPACE --service SERVICE --key KEY

ibmcloud ks cluster service help

Show help

ibmcloud ks cluster service help

Examples

Show help

ibmcloud ks cluster service help

ibmcloud ks cluster service ls

Virtual Private Cloud Classic infrastructure Satellite

List services bound to a Kubernetes namespace.

ibmcloud ks cluster service ls --cluster CLUSTER [--output OUTPUT] [-q] (--all-namespaces | --namespace NAMESPACE)

Command options

--all-namespaces
Include all Kubernetes namespaces.
-c, --cluster
Specify the cluster name or ID.
-n, --namespace
The Kubernetes namespace. Will use the default namespace if not specified.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.

Examples

List services bound to a Kubernetes namespace

ibmcloud ks cluster service ls --cluster CLUSTER --all-namespaces

ibmcloud ks cluster service unbind

Virtual Private Cloud Classic infrastructure Satellite

Remove an IBM Cloud service from a cluster by unbinding it from a Kubernetes namespace.

ibmcloud ks cluster service unbind --cluster CLUSTER --namespace NAMESPACE --service SERVICE [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-n, --namespace
Specify the Kubernetes namespace.
-q
Do not show the message of the day or update reminders.
--service
Specify the name of the service instance. To see a list of available service instances, run ibmcloud service list for Cloud Foundry services, or ibmcloud resource service-instances for IAM-enabled services.

Examples

Remove an IBM Cloud service from a cluster by unbinding it from a Kubernetes namespace

ibmcloud ks cluster service unbind --cluster CLUSTER --namespace NAMESPACE --service SERVICE

ibmcloud ks cluster subnet add

Classic infrastructure

Make an existing public or private portable subnet in your IBM Cloud infrastructure account available to a classic cluster.

ibmcloud ks cluster subnet add --cluster CLUSTER --subnet-id ID [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-q
Do not show the message of the day or update reminders.
--subnet-id
Specify the subnet ID.

Examples

Make an existing public or private portable subnet in your IBM Cloud infrastructure account available to a classic cluster

ibmcloud ks cluster subnet add --cluster CLUSTER --subnet-id ID

ibmcloud ks cluster subnet create

Classic infrastructure

Create a portable subnet on your public or private VLAN and make it available to a classic cluster.

ibmcloud ks cluster subnet create --cluster CLUSTER --size SIZE --vlan VLAN [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-q
Do not show the message of the day or update reminders.
--size
Specify the size of the portable subnet. The size must be one of 8, 16, 32, 64.
--vlan
Specify the public or private VLAN ID.

Examples

Create a portable subnet on your public or private VLAN and make it available to a classic cluster

ibmcloud ks cluster subnet create --cluster CLUSTER --size SIZE --vlan VLAN

ibmcloud ks cluster subnet detach

Classic infrastructure

Detach an existing public or private portable subnet from a classic cluster.

ibmcloud ks cluster subnet detach --cluster CLUSTER --subnet-id ID [-f] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.
--subnet-id
Specify the subnet ID.

Examples

Detach an existing public or private portable subnet from a classic cluster

ibmcloud ks cluster subnet detach --cluster CLUSTER --subnet-id ID

ibmcloud ks cluster subnet help

Show help

ibmcloud ks cluster subnet help

Examples

Show help

ibmcloud ks cluster subnet help

Credential commands

Set and unset credentials that allow you to access the IBM Cloud classic infrastructure portfolio through your IBM Cloud account.

ibmcloud ks credential get

Classic infrastructure

If you set up your IBM Cloud account to use different credentials to access the IBM Cloud classic infrastructure portfolio, get the infrastructure user name. This command applies to the targeted resource group, or to the default resource group if no resource group is targeted.

ibmcloud ks credential get --region REGION [--output OUTPUT] [-q]

Aliases: ibmcloud ks credentials-get

Command options

--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.
--region
Specify the region to target.

Examples

If you set up your IBM Cloud account to use different credentials to access the IBM Cloud classic infrastructure portfolio, get the infrastructure user name

ibmcloud ks credential get --region REGION

ibmcloud ks credential help

Show help

ibmcloud ks credential help

Examples

Show help

ibmcloud ks credential help

ibmcloud ks credential set classic

Classic infrastructure

Set credentials that allow you to access the IBM Cloud classic infrastructure portfolio through your IBM Cloud account.

ibmcloud ks credential set classic --infrastructure-api-key KEY --infrastructure-username USERNAME --region REGION [-q]

Command options

--infrastructure-api-key
The API key of your IBM Cloud classic infrastructure account.
--infrastructure-username
The user name of your IBM Cloud classic infrastructure account.
-q
Do not show the message of the day or update reminders.
--region
Specify the region to target.

Examples

Set credentials that allow you to access the IBM Cloud classic infrastructure portfolio through your IBM Cloud account

ibmcloud ks credential set classic \
  --infrastructure-api-key KEY \
  --infrastructure-username USERNAME \
  --region REGION

ibmcloud ks credential set help

Show help

ibmcloud ks credential set help

Examples

Show help

ibmcloud ks credential set help

ibmcloud ks credential unset

Classic infrastructure

Remove the credentials that allow you to access the IBM Cloud classic infrastructure portfolio through your IBM Cloud account. This command applies to the targeted resource group, or to the default resource group if no resource group is targeted.

ibmcloud ks credential unset --region REGION [-q]

Aliases: ibmcloud ks credentials-unset

Command options

-q
Do not show the message of the day or update reminders.
--region
Specify the region to target.

Examples

Remove the credentials that allow you to access the IBM Cloud classic infrastructure portfolio through your IBM Cloud account

ibmcloud ks credential unset --region REGION

Experimental commands

[Expires on 2026-10-21] Experiment with new commands. IMPORTANT: Commands here will retire after the [date] in their description.

ibmcloud ks experimental help

Show help

ibmcloud ks experimental help

Examples

Show help

ibmcloud ks experimental help

ibmcloud ks experimental trusted-profile default get

[Expires on 2026-10-21] Get the default trusted profile for clusters created in a resource-group.

ibmcloud ks experimental trusted-profile default get --region REGION --resource-group GROUP [--output OUTPUT] [-q]

Command options

--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.
--region
The region where the resource-group is located.
--resource-group
The resource-group whose default trusted profile is to be retrieved.

Examples

[Expires on 2026-10-21] Get the default trusted profile for clusters created in a resource-group

ibmcloud ks experimental trusted-profile default get --region REGION --resource-group GROUP

ibmcloud ks experimental trusted-profile default help

Show help

ibmcloud ks experimental trusted-profile default help

Examples

Show help

ibmcloud ks experimental trusted-profile default help

ibmcloud ks experimental trusted-profile default set

[Expires on 2026-10-21] Set the default trusted profile for clusters created in a resource-group.

ibmcloud ks experimental trusted-profile default set --region REGION --resource-group GROUP --trusted-profile PROFILE [--output OUTPUT] [-q]

Command options

--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.
--region
The region where the resource group is located.
--resource-group
The resource group ID to set the trusted profile on.
--trusted-profile
The trusted profile ID.

Examples

[Expires on 2026-10-21] Set the default trusted profile for clusters created in a resource-group

ibmcloud ks experimental trusted-profile default set \
  --region REGION \
  --resource-group GROUP \
  --trusted-profile PROFILE

ibmcloud ks experimental trusted-profile get

[Expires on 2026-10-21] Get trusted profile for a cluster.

ibmcloud ks experimental trusted-profile get --cluster CLUSTER [--output OUTPUT] [-q]

Command options

--cluster
The cluster ID to retrieve the trusted profile for.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.

Examples

[Expires on 2026-10-21] Get trusted profile for a cluster

ibmcloud ks experimental trusted-profile get --cluster CLUSTER

ibmcloud ks experimental trusted-profile help

Show help

ibmcloud ks experimental trusted-profile help

Examples

Show help

ibmcloud ks experimental trusted-profile help

ibmcloud ks experimental trusted-profile set

[Expires on 2026-10-21] Set trusted profile on a cluster.

ibmcloud ks experimental trusted-profile set --cluster CLUSTER --trusted-profile PROFILE [--output OUTPUT] [-q]

Command options

--cluster
The cluster ID to set the the trusted profile on.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.
--trusted-profile
The trusted profile ID.

Examples

[Expires on 2026-10-21] Set trusted profile on a cluster

ibmcloud ks experimental trusted-profile set --cluster CLUSTER --trusted-profile PROFILE

Flavor commands

Getting flavor related information. Flavors determine how much virtual CPU, memory, and disk space is available to each worker node.

ibmcloud ks flavor get

Get the information of a flavor for a zone and provider.

ibmcloud ks flavor get --flavor FLAVOR --provider PROVIDER --zone ZONE [--output OUTPUT] [-q]

Command options

--flavor
The flavor of a worker node. To see available flavors, run ibmcloud ks flavor ls --zone <zone name> (for public IBM Cloud accounts) or ibmcloud ks flavor ls (for IBM Cloud Dedicated accounts).
--output
Prints the command output in the provided format. Accepted values: json
--provider
Specify a provider. Available options are classic, vpc-classic and vpc-gen2.
-q
Do not show the message of the day or update reminders.
--zone
Specify the zone to list available flavors for. To list available zones, run ibmcloud ks zone ls.

Examples

Get the information of a flavor for a zone and provider

ibmcloud ks flavor get --flavor FLAVOR --provider PROVIDER --zone ZONE

ibmcloud ks flavor help

Show help

ibmcloud ks flavor help

Examples

Show help

ibmcloud ks flavor help

ibmcloud ks flavor ls

List available flavors for a zone.

ibmcloud ks flavor ls --zone ZONE [--output OUTPUT] [--provider PROVIDER] [-q] [--show-os] [--show-storage]

Command options

--output
Prints the command output in the provided format. Accepted values: json
--provider
The provider type to get the flavors for. Accepted values: classic, vpc-classic, vpc-gen2, satellite
-q
Do not show the message of the day or update reminders.
--show-os
List supported operating systems.
--show-storage
Show additional storage drives.
--zone
Specify the zone to list available flavors for. To list available zones, run ibmcloud ks zone ls.

Examples

List available flavors for a zone

ibmcloud ks flavor ls --zone ZONE

Infra-permissions commands

View information about infrastructure permissions that allow you to access the IBM Cloud classic infrastructure portfolio through your IBM Cloud account.

ibmcloud ks infra-permissions get

Classic infrastructure

Check whether the credentials that allow access to the IBM Cloud classic infrastructure portfolio for the targeted resource group are missing suggested or required infrastructure permissions. This command applies to the targeted resource group, or to the default resource group if no resource group is targeted.

ibmcloud ks infra-permissions get [--output OUTPUT] [-q] [--region REGION]

Command options

--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.
--region
Specify the region to target. If a region is not already targeted, this argument must be specified. To check if a region is targeted, run ibmcloud target.

Examples

Check whether the credentials that allow access to the IBM Cloud classic infrastructure portfolio for the targeted resource group are missing suggested or required infrastructure permissions

ibmcloud ks infra-permissions get

ibmcloud ks infra-permissions help

Show help

ibmcloud ks infra-permissions help

Examples

Show help

ibmcloud ks infra-permissions help

Ingress commands

View and modify Ingress services and settings

ibmcloud ks ingress alb autoscale get

Virtual Private Cloud Classic infrastructure Satellite

See autoscaling status and configuration for Ingress ALBs.

ibmcloud ks ingress alb autoscale get --alb ALB --cluster CLUSTER [--output OUTPUT] [-q]

Command options

--alb
The ALB ID. To see available ALB IDs, run ibmcloud ks ingress alb ls.
-c, --cluster
Specify the cluster name or ID.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.

Examples

See autoscaling status and configuration for Ingress ALBs

ibmcloud ks ingress alb autoscale get --alb ALB --cluster CLUSTER

ibmcloud ks ingress alb autoscale help

Show help

ibmcloud ks ingress alb autoscale help

Examples

Show help

ibmcloud ks ingress alb autoscale help

ibmcloud ks ingress alb autoscale set

Virtual Private Cloud Classic infrastructure Satellite

Configure autoscaling for Ingress ALBs.

ibmcloud ks ingress alb autoscale set --alb ALB --cluster CLUSTER --max-replicas REPLICAS --min-replicas REPLICAS [--output OUTPUT] [-q] (--cpu-average-utilization PERCENT | --custom-metrics-file FILE)

Command options

--alb
The ALB ID. To see available ALB IDs, run ibmcloud ks ingress alb ls.
-c, --cluster
Specify the cluster name or ID.
--cpu-average-utilization
Average CPU utilization threshold. Used to dynamically calculate the number of replicas.
--custom-metrics-file
Path for the custom metric file. See https://ibm.biz/iks-ingress-custom-metrics for more details.
--max-replicas
The maximum replicas for the given ALB. Ensure you have enough workers.
--min-replicas
The minimum replicas for the given ALB. Must be greater or equal to 1. (Recommended minimum is 2 for high availability purposes.)
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.

Examples

Configure autoscaling for Ingress ALBs

ibmcloud ks ingress alb autoscale set \
  --alb ALB \
  --cluster CLUSTER \
  --max-replicas REPLICAS \
  --min-replicas REPLICAS \
  --cpu-average-utilization PERCENT

ibmcloud ks ingress alb autoscale unset

Virtual Private Cloud Classic infrastructure Satellite

Delete the autoscaling configuration for Ingress ALBs.

ibmcloud ks ingress alb autoscale unset --alb ALB --cluster CLUSTER [-q]

Command options

--alb
The ALB ID. To see available ALB IDs, run ibmcloud ks ingress alb ls.
-c, --cluster
Specify the cluster name or ID.
-q
Do not show the message of the day or update reminders.

Examples

Delete the autoscaling configuration for Ingress ALBs

ibmcloud ks ingress alb autoscale unset --alb ALB --cluster CLUSTER

ibmcloud ks ingress alb autoupdate disable

Virtual Private Cloud Classic infrastructure Satellite

Disable automatic updates of all Ingress ALB pods in a cluster.

ibmcloud ks ingress alb autoupdate disable --cluster CLUSTER [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-q
Do not show the message of the day or update reminders.

Examples

Disable automatic updates of all Ingress ALB pods in a cluster

ibmcloud ks ingress alb autoupdate disable --cluster CLUSTER

ibmcloud ks ingress alb autoupdate enable

Virtual Private Cloud Classic infrastructure Satellite

Enable automatic updates of all Ingress ALB pods in a cluster.

ibmcloud ks ingress alb autoupdate enable --cluster CLUSTER [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-q
Do not show the message of the day or update reminders.

Examples

Enable automatic updates of all Ingress ALB pods in a cluster

ibmcloud ks ingress alb autoupdate enable --cluster CLUSTER

ibmcloud ks ingress alb autoupdate get

Virtual Private Cloud Classic infrastructure Satellite

View whether the Ingress ALB pods in a cluster are set to automatically update and whether ALB pods are at the latest version.

ibmcloud ks ingress alb autoupdate get --cluster CLUSTER [--output OUTPUT] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.

Examples

View whether the Ingress ALB pods in a cluster are set to automatically update and whether ALB pods are at the latest version

ibmcloud ks ingress alb autoupdate get --cluster CLUSTER

ibmcloud ks ingress alb autoupdate help

Show help

ibmcloud ks ingress alb autoupdate help

Examples

Show help

ibmcloud ks ingress alb autoupdate help

ibmcloud ks ingress alb create classic

Classic infrastructure

Create and enable an Ingress ALB in a classic cluster.

ibmcloud ks ingress alb create classic --cluster CLUSTER --type TYPE --vlan VLAN --zone ZONE [--ip IP] [-q] [--version VERSION]

Command options

-c, --cluster
Specify the cluster name or ID.
--ip
Specify a portable public or private IP address that is available on the vlan and in the zone of the ALB to be created or enabled.
-q
Do not show the message of the day or update reminders.
--type
Specify the type of ALB. Available options: public, private
--version
Specify the ALB image version. To see supported image versions, run ibmcloud ks ingress alb versions.
--vlan
The VLAN ID. This VLAN must match the ALB type and must be in the same zone as the ALB that you want to create.
--zone
Specify the zone for the worker pool in a multizone cluster. To list available zones, run ibmcloud ks zone ls.

Examples

Create and enable an Ingress ALB in a classic cluster

ibmcloud ks ingress alb create classic --cluster CLUSTER --type TYPE --vlan VLAN --zone ZONE

ibmcloud ks ingress alb create help

Show help

ibmcloud ks ingress alb create help

Examples

Show help

ibmcloud ks ingress alb create help

ibmcloud ks ingress alb create vpc-gen2

Virtual Private Cloud

Create and enable an Ingress ALB in a VPC Gen 2 cluster.

ibmcloud ks ingress alb create vpc-gen2 --cluster CLUSTER --type TYPE --zone ZONE [-q] [--version VERSION]

Command options

-c, --cluster
Specify the cluster name or ID.
-q
Do not show the message of the day or update reminders.
--type
Specify the type of ALB. Available options: public, private
--version
Specify the ALB image version. To see supported image versions, run ibmcloud ks ingress alb versions.
--zone
Specify the zone for the worker pool in a multizone cluster. To list available zones, run ibmcloud ks zone ls.

Examples

Create and enable an Ingress ALB in a VPC Gen 2 cluster

ibmcloud ks ingress alb create vpc-gen2 --cluster CLUSTER --type TYPE --zone ZONE

ibmcloud ks ingress alb disable

Virtual Private Cloud Classic infrastructure Satellite

Disable an Ingress ALB in a cluster.

ibmcloud ks ingress alb disable --alb ALB --cluster CLUSTER [-q]

Command options

--alb
The ALB ID. To see available ALB IDs, run ibmcloud ks ingress alb ls.
-c, --cluster
Specify the cluster name or ID.
-q
Do not show the message of the day or update reminders.

Examples

Disable an Ingress ALB in a cluster

ibmcloud ks ingress alb disable --alb ALB --cluster CLUSTER

ibmcloud ks ingress alb enable classic

Classic infrastructure

Enable an Ingress ALB in a classic cluster.

ibmcloud ks ingress alb enable classic --alb ALB --cluster CLUSTER [--ip IP] [-q] [--version VERSION]

Command options

--alb
The ALB ID. To see available ALB IDs, run ibmcloud ks ingress alb ls.
-c, --cluster
Specify the cluster name or ID.
--ip
Specify a portable public or private IP address that is available on the vlan and in the zone of the ALB to be created or enabled.
-q
Do not show the message of the day or update reminders.
--version
Specify the ALB image version. To see supported image versions, run ibmcloud ks ingress alb versions.

Examples

Enable an Ingress ALB in a classic cluster

ibmcloud ks ingress alb enable classic --alb ALB --cluster CLUSTER

ibmcloud ks ingress alb enable help

Show help

ibmcloud ks ingress alb enable help

Examples

Show help

ibmcloud ks ingress alb enable help

ibmcloud ks ingress alb enable vpc-gen2

Virtual Private Cloud

Enable an Ingress ALB in a VPC Gen 2 cluster.

ibmcloud ks ingress alb enable vpc-gen2 --alb ALB --cluster CLUSTER [-q] [--version VERSION]

Command options

--alb
The ALB ID. To see available ALB IDs, run ibmcloud ks ingress alb ls.
-c, --cluster
Specify the cluster name or ID.
-q
Do not show the message of the day or update reminders.
--version
Specify the ALB image version. To see supported image versions, run ibmcloud ks ingress alb versions.

Examples

Enable an Ingress ALB in a VPC Gen 2 cluster

ibmcloud ks ingress alb enable vpc-gen2 --alb ALB --cluster CLUSTER

ibmcloud ks ingress alb get

Virtual Private Cloud Classic infrastructure Satellite

View the details of an Ingress ALB in a cluster.

ibmcloud ks ingress alb get --alb ALB --cluster CLUSTER [--output OUTPUT] [-q]

Command options

--alb
The ALB ID. To see available ALB IDs, run ibmcloud ks ingress alb ls.
-c, --cluster
Specify the cluster name or ID.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.

Examples

View the details of an Ingress ALB in a cluster

ibmcloud ks ingress alb get --alb ALB --cluster CLUSTER

ibmcloud ks ingress alb health-checker disable

Virtual Private Cloud Classic infrastructure Satellite

Disable the Ingress health checker.

ibmcloud ks ingress alb health-checker disable --cluster CLUSTER [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-q
Do not show the message of the day or update reminders.

Examples

Disable the Ingress health checker

ibmcloud ks ingress alb health-checker disable --cluster CLUSTER

ibmcloud ks ingress alb health-checker enable

Virtual Private Cloud Classic infrastructure Satellite

Enable the Ingress health checker.

ibmcloud ks ingress alb health-checker enable --cluster CLUSTER [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-q
Do not show the message of the day or update reminders.

Examples

Enable the Ingress health checker

ibmcloud ks ingress alb health-checker enable --cluster CLUSTER

ibmcloud ks ingress alb health-checker get

Virtual Private Cloud Classic infrastructure Satellite

View status of the Ingress health checker.

ibmcloud ks ingress alb health-checker get --cluster CLUSTER [--output OUTPUT] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.

Examples

View status of the Ingress health checker

ibmcloud ks ingress alb health-checker get --cluster CLUSTER

ibmcloud ks ingress alb health-checker help

Show help

ibmcloud ks ingress alb health-checker help

Examples

Show help

ibmcloud ks ingress alb health-checker help

ibmcloud ks ingress alb help

Show help

ibmcloud ks ingress alb help

Examples

Show help

ibmcloud ks ingress alb help

ibmcloud ks ingress alb ls

Virtual Private Cloud Classic infrastructure Satellite

List all Ingress ALB IDs in a cluster and whether ALB pods are at the latest version.

ibmcloud ks ingress alb ls --cluster CLUSTER [--output OUTPUT] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.

Examples

List all Ingress ALB IDs in a cluster and whether ALB pods are at the latest version

ibmcloud ks ingress alb ls --cluster CLUSTER

ibmcloud ks ingress alb update

Virtual Private Cloud Classic infrastructure Satellite

Force a one-time update of the pods for individual or all ALBs in the cluster.

ibmcloud ks ingress alb update --cluster CLUSTER [--alb ALB ...] [--output OUTPUT] [-q] [--version VERSION]

Command options

--alb
To update a specific ALB, specify the ALB ID. To see available ALB IDs, run ibmcloud ks ingress alb ls. To update more than one ALB, specify one ALB ID in each flag, such as --alb ID_1 --alb ID_2. To update all ALBs, do not include this flag.
-c, --cluster
Specify the cluster name or ID.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.
--version
Specify the ALB image version. To see supported image versions, run ibmcloud ks ingress alb versions.

Examples

Force a one-time update of the pods for individual or all ALBs in the cluster

ibmcloud ks ingress alb update --cluster CLUSTER

ibmcloud ks ingress alb versions

Virtual Private Cloud Classic infrastructure Satellite

List Ingress ALB image versions that are available.

ibmcloud ks ingress alb versions [--output OUTPUT] [-q] [--region REGION]

Command options

--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.
--region
Specify the region to target.

Examples

List Ingress ALB image versions that are available

ibmcloud ks ingress alb versions

ibmcloud ks ingress domain create

Create an Ingress domain for a cluster.

ibmcloud ks ingress domain create --cluster CLUSTER [--crn CRN] [--domain DOMAIN] [--domain-provider PROVIDER] [--domain-zone ZONE] [--hostname HOSTNAME] [--ip IP] [--is-default] [--output OUTPUT] [-q] [--secret-namespace NAMESPACE]

Command options

-c, --cluster
Specify the cluster name or ID.
--crn
The CRN for the IBM CIS instance.
--domain
The Ingress domain. To see existing domains, run ibmcloud ks ingress domain ls.
--domain-provider
The DNS provider. The default DNS provider is our internal one. For supported providers see our documentation: https://ibm.biz/containers-ingress-domains
--domain-zone
The ZoneID for CIS.
--hostname
For VPC clusters. The hostname to register for the domain.
--ip
The IP addresses to register for the domain.
--is-default
Include this option to set the relevant domain as the default domain for cluster.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.
--secret-namespace
The namespace that the TLS secret is created in.

Examples

Create an Ingress domain for a cluster

ibmcloud ks ingress domain create --cluster CLUSTER

ibmcloud ks ingress domain default help

Show help

ibmcloud ks ingress domain default help

Examples

Show help

ibmcloud ks ingress domain default help

ibmcloud ks ingress domain default replace

Change a cluster's default Ingress domain.

ibmcloud ks ingress domain default replace --cluster CLUSTER --domain DOMAIN [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--domain
The Ingress domain. To see existing domains, run ibmcloud ks ingress domain ls.
-q
Do not show the message of the day or update reminders.

Examples

Change a cluster's default Ingress domain

ibmcloud ks ingress domain default replace --cluster CLUSTER --domain DOMAIN

ibmcloud ks ingress domain get

View the details of an Ingress domain.

ibmcloud ks ingress domain get --cluster CLUSTER --domain DOMAIN [--output OUTPUT] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--domain
The Ingress domain. To see existing domains, run ibmcloud ks ingress domain ls.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.

Examples

View the details of an Ingress domain

ibmcloud ks ingress domain get --cluster CLUSTER --domain DOMAIN

ibmcloud ks ingress domain help

Show help

ibmcloud ks ingress domain help

Examples

Show help

ibmcloud ks ingress domain help

ibmcloud ks ingress domain ls

List all Ingress domains for a cluster.

ibmcloud ks ingress domain ls --cluster CLUSTER [--output OUTPUT] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.

Examples

List all Ingress domains for a cluster

ibmcloud ks ingress domain ls --cluster CLUSTER

ibmcloud ks ingress domain rm

Remove an Ingress domain from a cluster.

ibmcloud ks ingress domain rm --cluster CLUSTER --domain DOMAIN [-f] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--domain
The Ingress domain. To see existing domains, run ibmcloud ks ingress domain ls.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.

Examples

Remove an Ingress domain from a cluster

ibmcloud ks ingress domain rm --cluster CLUSTER --domain DOMAIN

ibmcloud ks ingress domain secret help

Show help

ibmcloud ks ingress domain secret help

Examples

Show help

ibmcloud ks ingress domain secret help

ibmcloud ks ingress domain secret regenerate

Regenerate the certificate for an Ingress domain.

ibmcloud ks ingress domain secret regenerate --cluster CLUSTER --domain DOMAIN [--output OUTPUT] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--domain
The Ingress domain. To see existing domains, run ibmcloud ks ingress domain ls.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.

Examples

Regenerate the certificate for an Ingress domain

ibmcloud ks ingress domain secret regenerate --cluster CLUSTER --domain DOMAIN

ibmcloud ks ingress domain secret rm

Delete a secret for an Ingress domain and prevent future renewal of the certificate.

ibmcloud ks ingress domain secret rm --cluster CLUSTER --domain DOMAIN [-f] [--output OUTPUT] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--domain
The Ingress domain. To see existing domains, run ibmcloud ks ingress domain ls.
-f
Force the command to run without user prompts.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.

Examples

Delete a secret for an Ingress domain and prevent future renewal of the certificate

ibmcloud ks ingress domain secret rm --cluster CLUSTER --domain DOMAIN

ibmcloud ks ingress domain update

Update an Ingress domain for a cluster. The records passed in will fully replace the current records associated with the domain. Passing in no records will unregister the current records from a domain.

ibmcloud ks ingress domain update --cluster CLUSTER --domain DOMAIN [--hostname HOSTNAME] [--ip IP] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--domain
The Ingress domain. To see existing domains, run ibmcloud ks ingress domain ls.
--hostname
For VPC clusters. The hostname to register for the domain.
--ip
The IP addresses to register for the domain.
-q
Do not show the message of the day or update reminders.

Examples

Update an Ingress domain for a cluster

ibmcloud ks ingress domain update --cluster CLUSTER --domain DOMAIN

ibmcloud ks ingress help

Show help

ibmcloud ks ingress help

Examples

Show help

ibmcloud ks ingress help

ibmcloud ks ingress instance default help

Show help

ibmcloud ks ingress instance default help

Examples

Show help

ibmcloud ks ingress instance default help

ibmcloud ks ingress instance default set

Virtual Private Cloud Classic infrastructure Satellite

Set a registered IBM Cloud Secrets Manager instance as the default. If an existing default instance exists, it is unset.

ibmcloud ks ingress instance default set --cluster CLUSTER --name NAME [-q] [--secret-group GROUP]

Command options

-c, --cluster
Specify the cluster name or ID.
--name
The name of the registered IBM Cloud Secret Manager instance.
-q
Do not show the message of the day or update reminders.
--secret-group
Secret Group ID of the IBM Cloud Secret Manager instance where the secrets are persisted.

Examples

Set a registered IBM Cloud Secrets Manager instance as the default

ibmcloud ks ingress instance default set --cluster CLUSTER --name NAME

ibmcloud ks ingress instance default unset

Virtual Private Cloud Classic infrastructure Satellite

Unset a registered IBM Cloud Secrets Manager instance from default.

ibmcloud ks ingress instance default unset --cluster CLUSTER --name NAME [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--name
The name of the registered IBM Cloud Secret Manager instance.
-q
Do not show the message of the day or update reminders.

Examples

Unset a registered IBM Cloud Secrets Manager instance from default

ibmcloud ks ingress instance default unset --cluster CLUSTER --name NAME

ibmcloud ks ingress instance get

Virtual Private Cloud Classic infrastructure Satellite

View details of an IBM Cloud Secrets Manager instance registered to a cluster.

ibmcloud ks ingress instance get --cluster CLUSTER --name NAME [--output OUTPUT] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--name
The name of the registered IBM Cloud Secret Manager instance.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.

Examples

View details of an IBM Cloud Secrets Manager instance registered to a cluster

ibmcloud ks ingress instance get --cluster CLUSTER --name NAME

ibmcloud ks ingress instance help

Show help

ibmcloud ks ingress instance help

Examples

Show help

ibmcloud ks ingress instance help

ibmcloud ks ingress instance ls

Virtual Private Cloud Classic infrastructure Satellite

List IBM Cloud Secrets Manager instances registered to a cluster.

ibmcloud ks ingress instance ls --cluster CLUSTER [--output OUTPUT] [-q] [--show-deleted]

Command options

-c, --cluster
Specify the cluster name or ID.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.
--show-deleted
Show IBM Cloud Secret Manager instances that were unregistered from the cluster.

Examples

List IBM Cloud Secrets Manager instances registered to a cluster

ibmcloud ks ingress instance ls --cluster CLUSTER

ibmcloud ks ingress instance register

Virtual Private Cloud Classic infrastructure Satellite

Register an IBM Cloud Secrets Manager instance to a cluster.

ibmcloud ks ingress instance register --cluster CLUSTER --crn CRN [--is-default] [-q] [--secret-group GROUP]

Command options

-c, --cluster
Specify the cluster name or ID.
--crn
CRN of the IBM Cloud Secret Manager instance.
--is-default
Set the IBM Cloud Secrets Manager instance as the default. If an existing default instance exists, it is unset.
-q
Do not show the message of the day or update reminders.
--secret-group
Secret Group ID of the IBM Cloud Secret Manager instance where the secrets are persisted.

Examples

Register an IBM Cloud Secrets Manager instance to a cluster

ibmcloud ks ingress instance register --cluster CLUSTER --crn CRN

ibmcloud ks ingress instance unregister

Virtual Private Cloud Classic infrastructure Satellite

Unregister an IBM Cloud Secrets Manager instance from a cluster.

ibmcloud ks ingress instance unregister --cluster CLUSTER --name NAME [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--name
The name of the registered IBM Cloud Secret Manager instance.
-q
Do not show the message of the day or update reminders.

Examples

Unregister an IBM Cloud Secrets Manager instance from a cluster

ibmcloud ks ingress instance unregister --cluster CLUSTER --name NAME

ibmcloud ks ingress load-balancer backend help

Show help

ibmcloud ks ingress load-balancer backend help

Examples

Show help

ibmcloud ks ingress load-balancer backend help

ibmcloud ks ingress load-balancer backend set

Virtual Private Cloud

Set the private and/or public backend for the VPC ALB load balancer that exposes the Ingress controller for a cluster.

ibmcloud ks ingress load-balancer backend set --cluster CLUSTER [--private-backend BACKEND] [--public-backend BACKEND] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--private-backend
Backend for private load balancer
--public-backend
Backend for public load balancer
-q
Do not show the message of the day or update reminders.

Examples

Set the private and/or public backend for the VPC ALB load balancer that exposes the Ingress controller for a cluster

ibmcloud ks ingress load-balancer backend set --cluster CLUSTER

ibmcloud ks ingress load-balancer get

Virtual Private Cloud Classic infrastructure

Get the configuration of load balancers that expose Ingress ALBs in your cluster.

ibmcloud ks ingress load-balancer get --cluster CLUSTER [--output OUTPUT] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.

Examples

Get the configuration of load balancers that expose Ingress ALBs in your cluster

ibmcloud ks ingress load-balancer get --cluster CLUSTER

ibmcloud ks ingress load-balancer help

Show help

ibmcloud ks ingress load-balancer help

Examples

Show help

ibmcloud ks ingress load-balancer help

ibmcloud ks ingress load-balancer proxy-protocol disable

Virtual Private Cloud

Disable the PROXY protocol on Ingress ALBs.

ibmcloud ks ingress load-balancer proxy-protocol disable --cluster CLUSTER [-f] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.

Examples

Disable the PROXY protocol on Ingress ALBs

ibmcloud ks ingress load-balancer proxy-protocol disable --cluster CLUSTER

ibmcloud ks ingress load-balancer proxy-protocol enable

Virtual Private Cloud

Enable the PROXY protocol so that client connection information is passed in request headers to ALBs.

ibmcloud ks ingress load-balancer proxy-protocol enable --cluster CLUSTER [--cidr CIDR ...] [-f] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--cidr
The IP address ranges of your load balancers in CIDR format. PROXY headers that are forwarded by load balancers in other IP ranges are not processed.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.

Examples

Enable the PROXY protocol so that client connection information is passed in request headers to ALBs

ibmcloud ks ingress load-balancer proxy-protocol enable --cluster CLUSTER

ibmcloud ks ingress load-balancer proxy-protocol help

Show help

ibmcloud ks ingress load-balancer proxy-protocol help

Examples

Show help

ibmcloud ks ingress load-balancer proxy-protocol help

ibmcloud ks ingress secret create

Virtual Private Cloud Classic infrastructure Satellite

Create an Ingress secret in a cluster for a secret stored in IBM Cloud Secret Manager.

ibmcloud ks ingress secret create --cluster CLUSTER --name NAME [--cert-crn CRN] [--field FIELD] [--namespace NAMESPACE] [--persist] [-q] [--type TYPE]

Command options

-c, --cluster
Specify the cluster name or ID.
--cert-crn
The certificate CRN.
--field
The secret CRN to include as a field. To pull in the secret without specifying the name, use --field <crn>. To specify the field name, use --field name=<crn>. To use the IBM Cloud Secrets Manager secret as the prefix, use --field prefix=<crn>.
-n, --namespace
Specify the Kubernetes namespace.
--name
A name for the Ingress secret that is created in the cluster.
--persist
Persist the secret in the cluster so that it cannot be deleted.
-q
Do not show the message of the day or update reminders.
--type
The Ingress secret type. Can be TLS or Opaque. If no option is specified, TLS is applied by default.

Examples

Create an Ingress secret in a cluster for a secret stored in IBM Cloud Secret Manager

ibmcloud ks ingress secret create --cluster CLUSTER --name NAME

ibmcloud ks ingress secret field add

Virtual Private Cloud Classic infrastructure Satellite

Add fields to an existing Ingress secret.

ibmcloud ks ingress secret field add --cluster CLUSTER --name NAME --namespace NAMESPACE [--field FIELD] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--field
The secret CRN to include as a field. To pull in the secret without specifying the name, use --field <crn>. To specify the field name, use --field name=<crn>. To use the IBM Cloud Secrets Manager secret as the prefix, use --field prefix=<crn>.
-n, --namespace
Specify the Kubernetes namespace.
--name
A name for the Ingress secret that is created in the cluster.
-q
Do not show the message of the day or update reminders.

Examples

Add fields to an existing Ingress secret

ibmcloud ks ingress secret field add --cluster CLUSTER --name NAME --namespace NAMESPACE

ibmcloud ks ingress secret field help

Show help

ibmcloud ks ingress secret field help

Examples

Show help

ibmcloud ks ingress secret field help

ibmcloud ks ingress secret field ls

Virtual Private Cloud Classic infrastructure Satellite

View the fields of an Ingress secret.

ibmcloud ks ingress secret field ls --cluster CLUSTER --name NAME --namespace NAMESPACE [--output OUTPUT] [-q] [--show-crn]

Command options

-c, --cluster
Specify the cluster name or ID.
-n, --namespace
Specify the Kubernetes namespace.
--name
A name for the Ingress secret that is created in the cluster.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.
--show-crn
Show CRN value of secret.

Examples

View the fields of an Ingress secret

ibmcloud ks ingress secret field ls --cluster CLUSTER --name NAME --namespace NAMESPACE

ibmcloud ks ingress secret field rm

Virtual Private Cloud Classic infrastructure Satellite

Remove fields from an existing Ingress secret.

ibmcloud ks ingress secret field rm --cluster CLUSTER --name NAME --namespace NAMESPACE [--field-name NAME] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--field-name
The name of the field to remove from the secret.
-n, --namespace
Specify the Kubernetes namespace.
--name
A name for the Ingress secret that is created in the cluster.
-q
Do not show the message of the day or update reminders.

Examples

Remove fields from an existing Ingress secret

ibmcloud ks ingress secret field rm --cluster CLUSTER --name NAME --namespace NAMESPACE

ibmcloud ks ingress secret get

Virtual Private Cloud Classic infrastructure Satellite

View the details of an Ingress secret.

ibmcloud ks ingress secret get --cluster CLUSTER --name NAME --namespace NAMESPACE [--output OUTPUT] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-n, --namespace
Specify the Kubernetes namespace.
--name
A name for the Ingress secret that is created in the cluster.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.

Examples

View the details of an Ingress secret

ibmcloud ks ingress secret get --cluster CLUSTER --name NAME --namespace NAMESPACE

ibmcloud ks ingress secret help

Show help

ibmcloud ks ingress secret help

Examples

Show help

ibmcloud ks ingress secret help

ibmcloud ks ingress secret ls

Virtual Private Cloud Classic infrastructure Satellite

List all Ingress secrets in a cluster.

ibmcloud ks ingress secret ls --cluster CLUSTER [--output OUTPUT] [-q] [--show-crn] [--show-deleted]

Command options

-c, --cluster
Specify the cluster name or ID.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.
--show-crn
Show CRN value of secret.
--show-deleted
Show secrets that were deleted from the cluster.

Examples

List all Ingress secrets in a cluster

ibmcloud ks ingress secret ls --cluster CLUSTER

ibmcloud ks ingress secret rm

Virtual Private Cloud Classic infrastructure Satellite

Remove an Ingress secret from a cluster.

ibmcloud ks ingress secret rm --cluster CLUSTER --name NAME --namespace NAMESPACE [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-n, --namespace
Specify the Kubernetes namespace.
--name
A name for the Ingress secret that is created in the cluster.
-q
Do not show the message of the day or update reminders.

Examples

Remove an Ingress secret from a cluster

ibmcloud ks ingress secret rm --cluster CLUSTER --name NAME --namespace NAMESPACE

ibmcloud ks ingress secret update

Virtual Private Cloud Classic infrastructure Satellite

Update an existing Ingress secret.

ibmcloud ks ingress secret update --cluster CLUSTER --name NAME --namespace NAMESPACE [--cert-crn CRN] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--cert-crn
The certificate CRN.
-n, --namespace
Specify the Kubernetes namespace.
--name
A name for the Ingress secret that is created in the cluster.
-q
Do not show the message of the day or update reminders.

Examples

Update an existing Ingress secret

ibmcloud ks ingress secret update --cluster CLUSTER --name NAME --namespace NAMESPACE

ibmcloud ks ingress security help

Show help

ibmcloud ks ingress security help

Examples

Show help

ibmcloud ks ingress security help

ibmcloud ks ingress security port80 disable

Disable the usage of port 80 in your cluster.

ibmcloud ks ingress security port80 disable --cluster CLUSTER [-f] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.

Examples

Disable the usage of port 80 in your cluster

ibmcloud ks ingress security port80 disable --cluster CLUSTER

ibmcloud ks ingress security port80 enable

Enable the usage of port 80 in your cluster.

ibmcloud ks ingress security port80 enable --cluster CLUSTER [-f] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.

Examples

Enable the usage of port 80 in your cluster

ibmcloud ks ingress security port80 enable --cluster CLUSTER

ibmcloud ks ingress security port80 get

Get the security configuration of port 80 in your cluster.

ibmcloud ks ingress security port80 get --cluster CLUSTER [--output OUTPUT] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.

Examples

Get the security configuration of port 80 in your cluster

ibmcloud ks ingress security port80 get --cluster CLUSTER

ibmcloud ks ingress security port80 help

Show help

ibmcloud ks ingress security port80 help

Examples

Show help

ibmcloud ks ingress security port80 help

ibmcloud ks ingress status-report disable

Virtual Private Cloud Classic infrastructure Satellite

Disable status reporting for Ingress components in a cluster.

ibmcloud ks ingress status-report disable --cluster CLUSTER [--output OUTPUT] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.

Examples

Disable status reporting for Ingress components in a cluster

ibmcloud ks ingress status-report disable --cluster CLUSTER

ibmcloud ks ingress status-report enable

Virtual Private Cloud Classic infrastructure Satellite

Enable status reporting for Ingress components in a cluster.

ibmcloud ks ingress status-report enable --cluster CLUSTER [--output OUTPUT] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.

Examples

Enable status reporting for Ingress components in a cluster

ibmcloud ks ingress status-report enable --cluster CLUSTER

ibmcloud ks ingress status-report get

Virtual Private Cloud Classic infrastructure Satellite

Get the status report for Ingress components in a cluster.

ibmcloud ks ingress status-report get --cluster CLUSTER [--output OUTPUT] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.

Examples

Get the status report for Ingress components in a cluster

ibmcloud ks ingress status-report get --cluster CLUSTER

ibmcloud ks ingress status-report help

Show help

ibmcloud ks ingress status-report help

Examples

Show help

ibmcloud ks ingress status-report help

ibmcloud ks ingress status-report ignored-errors add

Virtual Private Cloud Classic infrastructure Satellite

Suppress warnings from Ingress status reports for a cluster.

ibmcloud ks ingress status-report ignored-errors add --cluster CLUSTER --code CODE [--code CODE ...] [--output OUTPUT] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--code
Code of the warning to be ignored.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.

Examples

Suppress warnings from Ingress status reports for a cluster

ibmcloud ks ingress status-report ignored-errors add --cluster CLUSTER --code CODE

ibmcloud ks ingress status-report ignored-errors help

Show help

ibmcloud ks ingress status-report ignored-errors help

Examples

Show help

ibmcloud ks ingress status-report ignored-errors help

ibmcloud ks ingress status-report ignored-errors ls

Virtual Private Cloud Classic infrastructure Satellite

List warnings that are currently ignored by Ingress status for a cluster.

ibmcloud ks ingress status-report ignored-errors ls --cluster CLUSTER [--output OUTPUT] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.

Examples

List warnings that are currently ignored by Ingress status for a cluster

ibmcloud ks ingress status-report ignored-errors ls --cluster CLUSTER

ibmcloud ks ingress status-report ignored-errors rm

Virtual Private Cloud Classic infrastructure Satellite

Remove warnings that are currently ignored by Ingress status for a cluster.

ibmcloud ks ingress status-report ignored-errors rm --cluster CLUSTER --code CODE [--code CODE ...] [--output OUTPUT] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--code
Code of the warning to be removed.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.

Examples

Remove warnings that are currently ignored by Ingress status for a cluster

ibmcloud ks ingress status-report ignored-errors rm --cluster CLUSTER --code CODE

Kms commands

View and configure Key Management Service integrations.

ibmcloud ks kms crk help

Show help

ibmcloud ks kms crk help

Examples

Show help

ibmcloud ks kms crk help

ibmcloud ks kms crk ls

Virtual Private Cloud Classic infrastructure Satellite

List available root keys for a Key Management Service instance.

ibmcloud ks kms crk ls --instance-id ID [--output OUTPUT] [-q]

Command options

--instance-id
KMS instance ID. To see available KMS instances, run ibmcloud ks kms instance ls.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.

Examples

List available root keys for a Key Management Service instance

ibmcloud ks kms crk ls --instance-id ID

ibmcloud ks kms enable

Virtual Private Cloud Classic infrastructure Satellite

Enable a key management service (KMS) in your cluster to encrypt your secrets.

ibmcloud ks kms enable --cluster CLUSTER --crk CRK --instance-id ID [--kms-account-id ID] [--public-endpoint] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--crk
A root key ID in your KMS instance. To list available root keys, run ibmcloud ks kms crk ls --instance-id <kms_instance>.
--instance-id
KMS instance ID. To see available KMS instances, run ibmcloud ks kms instance ls.
--kms-account-id
The ID of the account that contains the KMS instance you want to use for local disk or secret encryption.
--public-endpoint
Specify this option to use the KMS public service endpoint. Otherwise the KMS private service endpoint is used.
-q
Do not show the message of the day or update reminders.

Examples

Enable a key management service (KMS) in your cluster to encrypt your secrets

ibmcloud ks kms enable --cluster CLUSTER --crk CRK --instance-id ID

ibmcloud ks kms help

Show help

ibmcloud ks kms help

Examples

Show help

ibmcloud ks kms help

ibmcloud ks kms instance help

Show help

ibmcloud ks kms instance help

Examples

Show help

ibmcloud ks kms instance help

ibmcloud ks kms instance ls

Virtual Private Cloud Classic infrastructure Satellite

List available Key Management Service instances.

ibmcloud ks kms instance ls [--output OUTPUT] [-q]

Command options

--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.

Examples

List available Key Management Service instances

ibmcloud ks kms instance ls

Locations commands

List supported IBM Cloud Kubernetes Service locations.

ibmcloud ks locations

List supported IBM Cloud Kubernetes Service locations.

ibmcloud ks locations

Command options

--output
Prints the command output in the provided format. Accepted values: json
--provider
Filter the list for a specific infrastructure provider. Accepted values: classic, vpc-classic, vpc-gen2, satellite
-q
Do not show the message of the day or update reminders.
--show-flavors
Show the available worker node flavors in the zone for VPC.

Examples

List supported IBM Cloud Kubernetes Service locations

ibmcloud ks locations

Logging commands

Forward logs from your cluster.

ibmcloud ks logging autoupdate disable

Virtual Private Cloud Classic infrastructure

Disable automatic updates of all Fluentd pods in a cluster.

ibmcloud ks logging autoupdate disable --cluster CLUSTER [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-q
Do not show the message of the day or update reminders.

Examples

Disable automatic updates of all Fluentd pods in a cluster

ibmcloud ks logging autoupdate disable --cluster CLUSTER

ibmcloud ks logging autoupdate enable

Virtual Private Cloud Classic infrastructure

Enable automatic updates of all Fluentd pods in a cluster.

ibmcloud ks logging autoupdate enable --cluster CLUSTER [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-q
Do not show the message of the day or update reminders.

Examples

Enable automatic updates of all Fluentd pods in a cluster

ibmcloud ks logging autoupdate enable --cluster CLUSTER

ibmcloud ks logging autoupdate get

Virtual Private Cloud Classic infrastructure

View whether your Fluentd pods are set to automatically update in a cluster.

ibmcloud ks logging autoupdate get --cluster CLUSTER [--output OUTPUT] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.

Examples

View whether your Fluentd pods are set to automatically update in a cluster

ibmcloud ks logging autoupdate get --cluster CLUSTER

ibmcloud ks logging autoupdate help

Show help

ibmcloud ks logging autoupdate help

Examples

Show help

ibmcloud ks logging autoupdate help

ibmcloud ks logging config create

Virtual Private Cloud Classic infrastructure

Create a logging configuration. If you are using a Dedicated account, you must log in to the public IBM Cloud endpoint and target your public org and space to enable log forwarding.

ibmcloud ks logging config create --cluster CLUSTER --logsource LOGSOURCE --type TYPE [--force-update] [--hostname HOSTNAME] [--output OUTPUT] [--port PORT] [-q] (--ca-cert CERT --syslog-protocol PROTOCOL --verify-mode MODE | --org ORG --skip-validation --space SPACE) (--namespace NAMESPACE | -C CONTAINER -p PATH)

Command options

-C, --app-container
Specify the containers that you want to collect logs for. To specify more than one path, use multiple flags, such as -C container1 -C container2. This option is required for the application log source. If not provided, logs are collected from all containers from the application log paths passed in.
-c, --cluster
Specify the cluster name or ID.
--ca-cert
When the logging type is syslog and the protocol is tls, the Kubernetes secret name that contains the Certificate Authority certificate.
--force-update
Force an update of the Fluentd pods in the cluster to the latest version.
--hostname
When logging type is syslog, the hostname or IP address of the log collector. When logging type is ibm (deprecated), the logging ingest endpoint. If you do not provide the logging ingest endpoint, then the current region's endpoint is used.
--logsource
The source of the logs to forward. Supported values are container, application, ingress, worker, storage, and kubernetes. This argument supports a comma separated list of log sources. If you do not provide a log source, logs for container and ingress are forwarded.
-n, --namespace
The namespace you want to apply the log forwarding configuration to. Only use this flag with the container log source or if you do not specify a log source. If you do not specify a namespace, then all namespaces use this configuration.
--org
Deprecated The org name to send logs to. This flag is only valid when the logging type is ibm. The org name is required when you specify a space name. If you do not specify a space name, then logs are forwarded at the account level.
--output
Prints the command output in the provided format. Accepted values: json
-p, --app-path
Specify the absolute file path to collect logs from inside the container. To specify more than one path, use multiple flags, such as -p path1 -p path2. Required parameter when specifying application for the log source. Wildcards such as /var/log/*.log are accepted but recursive globs such are /var/log/**/test.log are not.
--port
The port of the log collector. If you do not specify a port, the default port for the ingestion endpoint is used for ibm (deprecated) and 514 is used for syslog.
-q
Do not show the message of the day or update reminders.
--skip-validation
Skips validation of the org and space names when they are specified. This can result in a broken logging config if the values are invalid but will take less time to process.
--space
Deprecated The space name to send logs to. This flag is only valid when the logging type is ibm. The space name is required when you specify an org name. If you do not specify a space name, then logs are forwarded at the account level.
--syslog-protocol
When the logging type is syslog, the transport layer protocol. Supported values are tls, tcp and the default udp. When forwarding to an rsyslog server with the UDP protocol, logs that are over 1KB are truncated.
--type
The log forwarding protocol that you want to use. The only supported value is syslog.
--verify-mode
When the logging type is syslog and the protocol is tls, the verification mode. Supported values are verify-peer and the default verify-none.

Examples

Create a logging configuration

ibmcloud ks logging config create \
  --cluster CLUSTER \
  --logsource LOGSOURCE \
  --type TYPE \
  --ca-cert CERT \
  --syslog-protocol PROTOCOL \
  --verify-mode MODE \
  --namespace NAMESPACE

ibmcloud ks logging config get

Virtual Private Cloud Classic infrastructure

View log forwarding configurations for a cluster.

ibmcloud ks logging config get --cluster CLUSTER [--logsource LOGSOURCE] [--output OUTPUT] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--logsource
The kind of log source you want to filter for. Accepted values are container, application, ingress, worker, storage and kubernetes. If you do not pass a log source, all logging configurations for the cluster are returned.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.

Examples

View log forwarding configurations for a cluster

ibmcloud ks logging config get --cluster CLUSTER

ibmcloud ks logging config help

Show help

ibmcloud ks logging config help

Examples

Show help

ibmcloud ks logging config help

ibmcloud ks logging config rm

Virtual Private Cloud Classic infrastructure

Delete a log forwarding configuration from a cluster.

ibmcloud ks logging config rm --cluster CLUSTER [--force-update] [-q] (--all | --id ID | --namespace NAMESPACE)

Command options

--all
Remove all log forwarding configurations.
-c, --cluster
Specify the cluster name or ID.
--force-update
Force an update of the Fluentd pods in the cluster to the latest version.
--id
Specify the ID of the logging configuration.
-n, --namespace
The namespace you want to remove the log forwarding configuration from. If there is more than one config for the same namespace, use the --id <logging configuration ID> flag instead.
-q
Do not show the message of the day or update reminders.

Examples

Delete a log forwarding configuration from a cluster

ibmcloud ks logging config rm --cluster CLUSTER --all

ibmcloud ks logging config update

Virtual Private Cloud Classic infrastructure

Update a log forwarding configuration for a cluster.

ibmcloud ks logging config update --cluster CLUSTER --id ID --logsource LOGSOURCE --type TYPE [--force-update] [--hostname HOSTNAME] [--output OUTPUT] [--port PORT] [-q] (--ca-cert CERT --syslog-protocol PROTOCOL --verify-mode MODE | --org ORG --skip-validation --space SPACE) (--namespace NAMESPACE | -C CONTAINER -p PATH)

Command options

-C, --app-container
Specify the containers that you want to collect logs for. To specify more than one path, use multiple flags, such as -C container1 -C container2. This option is required for the application log source. If not provided, logs are collected from all containers from the application log paths passed in.
-c, --cluster
Specify the cluster name or ID.
--ca-cert
When the logging type is syslog and the protocol is tls, the Kubernetes secret name that contains the Certificate Authority certificate.
--force-update
Force an update of the Fluentd pods in the cluster to the latest version.
--hostname
When logging type is syslog, the hostname or IP address of the log collector. When logging type is ibm (deprecated), the logging ingest endpoint. If you do not provide the logging ingest endpoint, then the current region's endpoint is used.
--id
Specify the ID of the logging configuration.
--logsource
The source of the logs to forward. Supported values are container, application, ingress, worker, storage, and kubernetes. This argument supports a comma separated list of log sources. If you do not provide a log source, logs for container and ingress are forwarded.
-n, --namespace
The namespace you want to apply the log forwarding configuration to. Only use this flag with the container log source or if you do not specify a log source. If you do not specify a namespace, then all namespaces use this configuration.
--org
Deprecated The org name to send logs to. This flag is only valid when the logging type is ibm. The org name is required when you specify a space name. If you do not specify a space name, then logs are forwarded at the account level.
--output
Prints the command output in the provided format. Accepted values: json
-p, --app-path
Specify the absolute file path to collect logs from inside the container. To specify more than one path, use multiple flags, such as -p path1 -p path2. Required parameter when specifying application for the log source. Wildcards such as /var/log/*.log are accepted but recursive globs such are /var/log/**/test.log are not.
--port
The port of the log collector. If you do not specify a port, the default port for the ingestion endpoint is used for ibm (deprecated) and 514 is used for syslog.
-q
Do not show the message of the day or update reminders.
--skip-validation
Skips validation of the org and space names when they are specified. This can result in a broken logging config if the values are invalid but will take less time to process.
--space
Deprecated The space name to send logs to. This flag is only valid when the logging type is ibm. The space name is required when you specify an org name. If you do not specify a space name, then logs are forwarded at the account level.
--syslog-protocol
When the logging type is syslog, the transport layer protocol. Supported values are tls, tcp and the default udp. When forwarding to an rsyslog server with the UDP protocol, logs that are over 1KB are truncated.
--type
The log forwarding protocol that you want to use. The only supported value is syslog.
--verify-mode
When the logging type is syslog and the protocol is tls, the verification mode. Supported values are verify-peer and the default verify-none.

Examples

Update a log forwarding configuration for a cluster

ibmcloud ks logging config update \
  --cluster CLUSTER \
  --id ID \
  --logsource LOGSOURCE \
  --type TYPE \
  --ca-cert CERT \
  --syslog-protocol PROTOCOL \
  --verify-mode MODE \
  --namespace NAMESPACE

ibmcloud ks logging filter create

Virtual Private Cloud Classic infrastructure

Create a filter to exclude log lines from forwarding.

ibmcloud ks logging filter create --cluster CLUSTER [--container CONTAINER] [--force-update] [--lc LOGGING-CONFIG ...] [--level LEVEL] [--namespace NAMESPACE] [--output OUTPUT] [-q] [--type TYPE] (--message MESSAGE | --regex-message MESSAGE)

Command options

-c, --cluster
Specify the cluster name or ID.
--container
The name of the container from which you want to filter out logs. This flag applies only when you are using log type container.
--force-update
Force an update of the Fluentd pods in the cluster to the latest version.
--lc, --logging-config
A logging configuration ID. If not provided, the filter is applied to all the cluster logging configurations that are passed to the filter. You can view log configurations that match the filter by using the --show-matching-configs flag with the command.
--level
Filters out logs that are at the specified level and less. Acceptable values in their canonical order are fatal, error, warn/warning, info, debug, and trace. As an example, if you filtered logs at the info level, debug, and trace are also filtered. Note: You can use this flag only when log messages are in JSON format and contain a level field. Example output: {"log": "hello", "level": "info"}
--message
Filters out any logs that contain a specified message anywhere in the log. The message is matched literally and not as an expression. Example: The messages "Hello", "!", and "Hello, World!", would apply to the log "Hello, World!".
-n, --namespace
The Kubernetes namespace from which you want to filter logs.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.
--regex-message
Filters out any logs that contain a specified message regex pattern in the log. The message is matched as a regular expression. Example: The pattern "hello [0-9]" would apply to "hello 1", "hello 2", "hello 9"
--type
The type of logs that you want to apply the filter to. Currently all, container, and host are supported.

Examples

Create a filter to exclude log lines from forwarding

ibmcloud ks logging filter create --cluster CLUSTER --message MESSAGE

ibmcloud ks logging filter get

Virtual Private Cloud Classic infrastructure

View a logging filter configuration.

ibmcloud ks logging filter get --cluster CLUSTER [--id ID] [--output OUTPUT] [-q] [--show-covering-filters] [--show-matching-configs]

Command options

-c, --cluster
Specify the cluster name or ID.
--id
Specify the ID of the logging filter.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.
--show-covering-filters
Show the logging filters that render previous filters obsolete.
--show-matching-configs
Show the logging configurations that match the configuration that you're viewing.

Examples

View a logging filter configuration

ibmcloud ks logging filter get --cluster CLUSTER

ibmcloud ks logging filter help

Show help

ibmcloud ks logging filter help

Examples

Show help

ibmcloud ks logging filter help

ibmcloud ks logging filter rm

Virtual Private Cloud Classic infrastructure

Delete a logging filter.

ibmcloud ks logging filter rm --cluster CLUSTER [--force-update] [-q] (--all | --id ID)

Command options

--all
Delete all log forwarding filters.
-c, --cluster
Specify the cluster name or ID.
--force-update
Force an update of the Fluentd pods in the cluster to the latest version.
--id
Specify the ID of the logging filter.
-q
Do not show the message of the day or update reminders.

Examples

Delete a logging filter

ibmcloud ks logging filter rm --cluster CLUSTER --all

ibmcloud ks logging filter update

Virtual Private Cloud Classic infrastructure

Update a logging filter.

ibmcloud ks logging filter update --cluster CLUSTER --id ID [--container CONTAINER] [--force-update] [--lc LOGGING-CONFIG ...] [--level LEVEL] [--namespace NAMESPACE] [--output OUTPUT] [-q] [--type TYPE] (--message MESSAGE | --regex-message MESSAGE)

Command options

-c, --cluster
Specify the cluster name or ID.
--container
The name of the container from which you want to filter out logs. This flag applies only when you are using log type container.
--force-update
Force an update of the Fluentd pods in the cluster to the latest version.
--id
Specify the ID of the logging filter.
--lc, --logging-config
A logging configuration ID. If not provided, the filter is applied to all the cluster logging configurations that are passed to the filter. You can view log configurations that match the filter by using the --show-matching-configs flag with the command.
--level
Filters out logs that are at the specified level and less. Acceptable values in their canonical order are fatal, error, warn/warning, info, debug, and trace. As an example, if you filtered logs at the info level, debug, and trace are also filtered. Note: You can use this flag only when log messages are in JSON format and contain a level field. Example output: {"log": "hello", "level": "info"}
--message
Filters out any logs that contain a specified message anywhere in the log. The message is matched literally and not as an expression. Example: The messages "Hello", "!", and "Hello, World!", would apply to the log "Hello, World!".
-n, --namespace
The Kubernetes namespace from which you want to filter logs.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.
--regex-message
Filters out any logs that contain a specified message regex pattern in the log. The message is matched as a regular expression. Example: The pattern "hello [0-9]" would apply to "hello 1", "hello 2", "hello 9"
--type
The type of logs that you want to apply the filter to. Currently all, container, and host are supported.

Examples

Update a logging filter

ibmcloud ks logging filter update --cluster CLUSTER --id ID --message MESSAGE

ibmcloud ks logging help

Show help

ibmcloud ks logging help

Examples

Show help

ibmcloud ks logging help

ibmcloud ks logging refresh

Virtual Private Cloud Classic infrastructure

Refresh the logging configuration for a cluster.

ibmcloud ks logging refresh --cluster CLUSTER [--force-update] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--force-update
Force an update of the Fluentd pods in the cluster to the latest version.
-q
Do not show the message of the day or update reminders.

Examples

Refresh the logging configuration for a cluster

ibmcloud ks logging refresh --cluster CLUSTER

Messages commands

View the current user messages.

ibmcloud ks messages

View the current user messages.

ibmcloud ks messages [-q]

Command options

-q
Do not show the message of the day or update reminders.

Examples

View the current user messages

ibmcloud ks messages

Nlb-dns commands

Create and manage host names for network load balancer (NLB) IP addresses in a cluster and health check monitors for host names.

ibmcloud ks nlb-dns add

Classic infrastructure

Add an NLB IP to an existing host name that you created with ibmcloud ks nlb-dns create.

ibmcloud ks nlb-dns add --cluster CLUSTER --ip IP [--ip IP ...] --nlb-host HOST [--output OUTPUT] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--ip
One or more NLB IP addresses. To see load balancer IPs, run kubectl get svc -n <namespace>.
--nlb-host
The host name. To see existing host names, run ibmcloud ks nlb-dns ls.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.

Examples

Add an NLB IP to an existing host name that you created with ibmcloud ks nlb-dns create

ibmcloud ks nlb-dns add --cluster CLUSTER --ip IP --nlb-host HOST

ibmcloud ks nlb-dns create classic

Classic infrastructure

Create a DNS host name to register one or more NLB IPs in a classic cluster.

ibmcloud ks nlb-dns create classic --cluster CLUSTER --ip IP [--ip IP ...] [--output OUTPUT] [-q] [--secret-namespace NAMESPACE]

Command options

-c, --cluster
Specify the cluster name or ID.
--ip
One or more NLB IP addresses. To see load balancer IPs, run kubectl get svc -n <namespace>.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.
--secret-namespace
The namespace that the SSL secret is created in. If this flag is not specified, the secret is created in default.

Examples

Create a DNS host name to register one or more NLB IPs in a classic cluster

ibmcloud ks nlb-dns create classic --cluster CLUSTER --ip IP

ibmcloud ks nlb-dns create help

Show help

ibmcloud ks nlb-dns create help

Examples

Show help

ibmcloud ks nlb-dns create help

ibmcloud ks nlb-dns create vpc-gen2

Virtual Private Cloud

Create a DNS record to register a load balancer host name or load balancer IP addresses in a VPC cluster.

ibmcloud ks nlb-dns create vpc-gen2 --cluster CLUSTER [--output OUTPUT] [-q] [--secret-namespace NAMESPACE] (--ip IP | --lb-host HOST)

Command options

-c, --cluster
Specify the cluster name or ID.
--ip
One or more NLB IP addresses. To see load balancer IPs, run kubectl get svc -n <namespace>.
--lb-host
The VPC load balancer host name. To see load balancer host names, run kubectl get svc -n <namespace>.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.
--secret-namespace
The namespace that the SSL secret is created in. If this flag is not specified, the secret is created in default.

Examples

Create a DNS record to register a load balancer host name or load balancer IP addresses in a VPC cluster

ibmcloud ks nlb-dns create vpc-gen2 --cluster CLUSTER --ip IP

ibmcloud ks nlb-dns get

Virtual Private Cloud Classic infrastructure Satellite

View the details of a registered NLB host name in a cluster.

ibmcloud ks nlb-dns get --cluster CLUSTER --nlb-subdomain SUBDOMAIN [--output OUTPUT] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--nlb-subdomain
The subdomain. To see existing subdomains, run ibmcloud ks nlb-dns ls.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.

Examples

View the details of a registered NLB host name in a cluster

ibmcloud ks nlb-dns get --cluster CLUSTER --nlb-subdomain SUBDOMAIN

ibmcloud ks nlb-dns help

Show help

ibmcloud ks nlb-dns help

Examples

Show help

ibmcloud ks nlb-dns help

ibmcloud ks nlb-dns ls

List the registered NLB host names and IP addresses in a cluster.

ibmcloud ks nlb-dns ls --cluster CLUSTER [--output OUTPUT] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.

Examples

List the registered NLB host names and IP addresses in a cluster

ibmcloud ks nlb-dns ls --cluster CLUSTER

ibmcloud ks nlb-dns monitor configure

Configure a health check monitor for an existing NLB host name in a cluster. To enable the monitor, include the --enable flag. To update an existing monitor, include only the flags for the settings that you want to change.

ibmcloud ks nlb-dns monitor configure --cluster CLUSTER --nlb-host HOST [--enable] [--header HEADER ...] [--interval INTERVAL] [--output OUTPUT] [--path PATH] [--port PORT] [-q] [--timeout TIMEOUT] [--type TYPE]

Command options

-c, --cluster
Specify the cluster name or ID.
--enable
Enable the health check monitor for the host name.
--header
HTTP request headers for the health check are limited to the Host header. This flag is valid only for type HTTP or HTTPS. This flag accepts values in the following format: --header Header-Name=value. When updating a monitor, the existing headers are replaced by the ones you specify. To delete all existing headers specify the flag with an empty value --header "".
--interval
The interval, in seconds, between each health check. Short intervals might improve failover time but increase load on the IPs. Must be in the range [60, 300]. Default: 60
--nlb-host
The host name. To see existing host names, run ibmcloud ks nlb-dns ls.
--output
Prints the command output in the provided format. Accepted values: json
--path
The endpoint path to health check against. This flag is valid only for type HTTP or HTTPS. Default: /
--port
The port number to connect to for the health check. When type is TCP, this flag is required. When type is HTTP or HTTPS, use this flag only for ports other than 80 for HTTP or 443 for HTTPS. HTTP default: 80. HTTPS default: 443.
-q
Do not show the message of the day or update reminders.
--timeout
The timeout, in seconds, before the IP is considered unhealthy. Must be in the range [1, 60]. Default: 5
--type
The protocol to use for the health check. Accepted values: http, https, tcp

Examples

Configure a health check monitor for an existing NLB host name in a cluster

ibmcloud ks nlb-dns monitor configure --cluster CLUSTER --nlb-host HOST

ibmcloud ks nlb-dns monitor disable

Classic infrastructure

Disable an existing health check monitor for a NLB host name in a cluster..

ibmcloud ks nlb-dns monitor disable --cluster CLUSTER --nlb-host HOST [--output OUTPUT] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--nlb-host
The host name. To see existing host names, run ibmcloud ks nlb-dns ls.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.

Examples

Disable an existing health check monitor for a NLB host name in a cluster

ibmcloud ks nlb-dns monitor disable --cluster CLUSTER --nlb-host HOST

ibmcloud ks nlb-dns monitor enable

Classic infrastructure

Enable a health check monitor for an NLB host name in a cluster. Note: You must first configure the monitor with ibmcloud ks nlb-dns monitor configure.

ibmcloud ks nlb-dns monitor enable --cluster CLUSTER --nlb-host HOST [--output OUTPUT] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--nlb-host
The host name. To see existing host names, run ibmcloud ks nlb-dns ls.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.

Examples

Enable a health check monitor for an NLB host name in a cluster

ibmcloud ks nlb-dns monitor enable --cluster CLUSTER --nlb-host HOST

ibmcloud ks nlb-dns monitor get

Classic infrastructure

View the settings for an existing health check monitor.

ibmcloud ks nlb-dns monitor get --cluster CLUSTER --nlb-host HOST [--output OUTPUT] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--nlb-host
The host name. To see existing host names, run ibmcloud ks nlb-dns ls.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.

Examples

View the settings for an existing health check monitor

ibmcloud ks nlb-dns monitor get --cluster CLUSTER --nlb-host HOST

ibmcloud ks nlb-dns monitor help

Show help

ibmcloud ks nlb-dns monitor help

Examples

Show help

ibmcloud ks nlb-dns monitor help

ibmcloud ks nlb-dns monitor ls

Classic infrastructure

List the health check monitor settings for each NLB host name in a cluster.

ibmcloud ks nlb-dns monitor ls --cluster CLUSTER [--output OUTPUT] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.

Examples

List the health check monitor settings for each NLB host name in a cluster

ibmcloud ks nlb-dns monitor ls --cluster CLUSTER

ibmcloud ks nlb-dns replace

Virtual Private Cloud

Update an existing DNS host name by replacing the load balancer hostname associated with it in a VPC cluster.

ibmcloud ks nlb-dns replace --cluster CLUSTER --lb-host HOST --nlb-subdomain SUBDOMAIN [--output OUTPUT] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--lb-host
The VPC load balancer host name. To see load balancer host names, run kubectl get svc -n <namespace>.
--nlb-subdomain
The subdomain. To see existing subdomains, run ibmcloud ks nlb-dns ls.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.

Examples

Update an existing DNS host name by replacing the load balancer hostname associated with it in a VPC cluster

ibmcloud ks nlb-dns replace --cluster CLUSTER --lb-host HOST --nlb-subdomain SUBDOMAIN

ibmcloud ks nlb-dns rm classic

Classic infrastructure

Remove an NLB IP address from an NLB host name. If you remove all IPs from a host name, the host name still exists but no IPs are associated with it.

ibmcloud ks nlb-dns rm classic --cluster CLUSTER --ip IP --nlb-host HOST [--output OUTPUT] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--ip
One NLB IP address. To see NLB IPs associated with the host name, run ibmcloud ks nlb-dns ls.
--nlb-host
The host name. To see existing host names, run ibmcloud ks nlb-dns ls.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.

Examples

Remove an NLB IP address from an NLB host name

ibmcloud ks nlb-dns rm classic --cluster CLUSTER --ip IP --nlb-host HOST

ibmcloud ks nlb-dns rm help

Show help

ibmcloud ks nlb-dns rm help

Examples

Show help

ibmcloud ks nlb-dns rm help

ibmcloud ks nlb-dns rm vpc-gen2

Virtual Private Cloud

Remove a load balancer host name or IP address from a DNS record in a VPC cluster.

ibmcloud ks nlb-dns rm vpc-gen2 --cluster CLUSTER --nlb-subdomain SUBDOMAIN [--ip IP] [--output OUTPUT] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--ip
One NLB IP address. To see NLB IPs associated with the host name, run ibmcloud ks nlb-dns ls.
--nlb-subdomain
The subdomain. To see existing subdomains, run ibmcloud ks nlb-dns ls.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.

Examples

Remove a load balancer host name or IP address from a DNS record in a VPC cluster

ibmcloud ks nlb-dns rm vpc-gen2 --cluster CLUSTER --nlb-subdomain SUBDOMAIN

ibmcloud ks nlb-dns secret help

Show help

ibmcloud ks nlb-dns secret help

Examples

Show help

ibmcloud ks nlb-dns secret help

ibmcloud ks nlb-dns secret regenerate

Virtual Private Cloud Classic infrastructure Satellite

Regenerate the certificate and secret for an NLB subdomain.

ibmcloud ks nlb-dns secret regenerate --cluster CLUSTER --nlb-subdomain SUBDOMAIN [--output OUTPUT] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--nlb-subdomain
The subdomain. To see existing subdomains, run ibmcloud ks nlb-dns ls.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.

Examples

Regenerate the certificate and secret for an NLB subdomain

ibmcloud ks nlb-dns secret regenerate --cluster CLUSTER --nlb-subdomain SUBDOMAIN

ibmcloud ks nlb-dns secret rm

Virtual Private Cloud Classic infrastructure Satellite

Delete a secret from an NLB subdomain and prevent future renewal of the certificate.

ibmcloud ks nlb-dns secret rm --cluster CLUSTER --nlb-subdomain SUBDOMAIN [-f] [--output OUTPUT] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
--nlb-subdomain
The subdomain. To see existing subdomains, run ibmcloud ks nlb-dns ls.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.

Examples

Delete a secret from an NLB subdomain and prevent future renewal of the certificate

ibmcloud ks nlb-dns secret rm --cluster CLUSTER --nlb-subdomain SUBDOMAIN

Quota commands

View the quota and limits for cluster-related resources in your IBM Cloud account.

ibmcloud ks quota help

Show help

ibmcloud ks quota help

Examples

Show help

ibmcloud ks quota help

ibmcloud ks quota ls

Virtual Private Cloud Classic infrastructure Satellite

List all quota and limits for cluster-related resources in your IBM Cloud account.

ibmcloud ks quota ls [--output OUTPUT] [--provider PROVIDER] [-q]

Command options

--output
Prints the command output in the provided format. Accepted values: json
--provider
Filter the list for a specific infrastructure provider. Accepted values: classic, vpc-classic, vpc-gen2, satellite
-q
Do not show the message of the day or update reminders.

Examples

List all quota and limits for cluster-related resources in your IBM Cloud account

ibmcloud ks quota ls

Script commands

Rewrite scripts that call IBM Cloud Kubernetes Service plug-in commands. Legacy-structured commands are replaced with beta-structured commands.

ibmcloud ks script help

Show help

ibmcloud ks script help

Examples

Show help

ibmcloud ks script help

ibmcloud ks script update

Virtual Private Cloud Classic infrastructure

Rewrite scripts that call IBM Cloud Kubernetes Service plug-in commands. Legacy-structured commands are replaced with beta-structured commands.

ibmcloud ks script update [--in-place] FILE [FILE ...]

Command options

--in-place
Rewrite the source file with the updated command structure.
-q
Do not show the message of the day or update reminders.

Examples

Rewrite scripts that call IBM Cloud Kubernetes Service plug-in commands

ibmcloud ks script update FILE

Security-group commands

Run operations against a security group.

ibmcloud ks security-group help

Show help

ibmcloud ks security-group help

Examples

Show help

ibmcloud ks security-group help

ibmcloud ks security-group ls

List all security groups associated with a cluster.

ibmcloud ks security-group ls --cluster CLUSTER [--attached-to ATTACHED] [--managed-by MANAGER] [--output OUTPUT] [-q] [--scope SCOPE]

Command options

--attached-to
Filter the security groups by the components they are attached to. Accepted values: cluster, load-balancer, vpc, vpe-gateway, worker-pool
-c, --cluster
Specify the cluster name or ID.
--managed-by
Specify user to return the security groups created by user. Specify ibm to return only the security groups managed by IBM. Accepted values: ibm, user
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.
--scope
Specify cluster to return security groups scoped to the cluster. Specify vpc to return security groups scoped to the entire VPC. Accepted values: cluster, vpc

Examples

List all security groups associated with a cluster

ibmcloud ks security-group ls --cluster CLUSTER

ibmcloud ks security-group reset

Virtual Private Cloud Classic infrastructure

Deletes all existing security group rules, and reapplies default rules.

ibmcloud ks security-group reset --cluster CLUSTER --security-group GROUP [-f] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.
--security-group, --sg
Specify security group ID.

Examples

Deletes all existing security group rules, and reapplies default rules

ibmcloud ks security-group reset --cluster CLUSTER --security-group GROUP

ibmcloud ks security-group sync

Virtual Private Cloud Classic infrastructure

Reapplies default security group rules that do not exist. Does not delete any preexisting rules.

ibmcloud ks security-group sync --cluster CLUSTER --security-group GROUP [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-q
Do not show the message of the day or update reminders.
--security-group, --sg
Specify security group ID.

Examples

Reapplies default security group rules that do not exist

ibmcloud ks security-group sync --cluster CLUSTER --security-group GROUP

Storage commands

View and modify storage resources.

ibmcloud ks storage attachment create

The storage attachment create command is a beta feature.

Virtual Private Cloud

Attach a storage volume to a worker node.

ibmcloud ks storage attachment create --cluster CLUSTER --volume VOLUME --worker WORKER [--output OUTPUT] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.
--volume
Specify the volume ID. To list available volumes, run ibmcloud ks storage volume ls.
-w, --worker
Specify the worker ID. To list available workers, run ibmcloud ks workers.

Examples

Attach a storage volume to a worker node

ibmcloud ks storage attachment create --cluster CLUSTER --volume VOLUME --worker WORKER_ID

ibmcloud ks storage attachment get

The storage attachment get command is a beta feature.

Virtual Private Cloud

Get the details of a volume attachment in a cluster.

ibmcloud ks storage attachment get --attachment ATTACHMENT --cluster CLUSTER --worker WORKER [--output OUTPUT] [-q]

Command options

--attachment
Specify the volume attachment ID. To list available attachments, run ibmcloud ks storage attachment ls.
-c, --cluster
Specify the cluster name or ID.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.
-w, --worker
Specify the worker ID. To list available workers, run ibmcloud ks workers.

Examples

Get the details of a volume attachment in a cluster

ibmcloud ks storage attachment get --attachment ATTACHMENT --cluster CLUSTER --worker WORKER_ID

ibmcloud ks storage attachment help

Show help

ibmcloud ks storage attachment help

Examples

Show help

ibmcloud ks storage attachment help

ibmcloud ks storage attachment ls

The storage attachment ls command is a beta feature.

Virtual Private Cloud

List all storage volume attachments of a worker in a cluster.

ibmcloud ks storage attachment ls --cluster CLUSTER --worker WORKER [--output OUTPUT] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.
-w, --worker
Specify the worker ID. To list available workers, run ibmcloud ks workers.

Examples

List all storage volume attachments of a worker in a cluster

ibmcloud ks storage attachment ls --cluster CLUSTER --worker WORKER_ID

ibmcloud ks storage attachment rm

The storage attachment rm command is a beta feature.

Virtual Private Cloud

Delete a volume attachment from a worker node.

ibmcloud ks storage attachment rm --attachment ATTACHMENT --cluster CLUSTER --worker WORKER [-q]

Command options

--attachment
Specify the volume attachment ID. To list available attachments, run ibmcloud ks storage attachment ls.
-c, --cluster
Specify the cluster name or ID.
-q
Do not show the message of the day or update reminders.
-w, --worker
Specify the worker ID. To list available workers, run ibmcloud ks workers.

Examples

Delete a volume attachment from a worker node

ibmcloud ks storage attachment rm --attachment ATTACHMENT --cluster CLUSTER --worker WORKER_ID

ibmcloud ks storage help

Show help

ibmcloud ks storage help

Examples

Show help

ibmcloud ks storage help

ibmcloud ks storage volume get

The storage volume get command is a beta feature.

Virtual Private Cloud Classic infrastructure

Get the details of a volume.

ibmcloud ks storage volume get --volume VOLUME [--output OUTPUT] [-q]

Command options

--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.
--volume
Specify the volume ID. To list available volumes, run ibmcloud ks storage volume ls.

Examples

Get the details of a volume

ibmcloud ks storage volume get --volume VOLUME

ibmcloud ks storage volume help

Show help

ibmcloud ks storage volume help

Examples

Show help

ibmcloud ks storage volume help

ibmcloud ks storage volume ls

The storage volume ls command is a beta feature.

Virtual Private Cloud Classic infrastructure

List the details of volumes.

ibmcloud ks storage volume ls [--cluster CLUSTER] [--output OUTPUT] [--provider PROVIDER] [-q] [--zone ZONE]

Command options

-c, --cluster
Specify the cluster name or ID.
--output
Prints the command output in the provided format. Accepted values: json
--provider
Filter the list for a specific infrastructure provider. Accepted values: classic, vpc-classic, vpc-gen2, satellite
-q
Do not show the message of the day or update reminders.
--zone
A zone to filter for. To list available zones, run ibmcloud ks locations.

Examples

List the details of volumes

ibmcloud ks storage volume ls

Subnets commands

List available portable subnets in your IBM Cloud infrastructure account.

ibmcloud ks subnets

List available portable subnets in your IBM Cloud infrastructure account.

ibmcloud ks subnets --provider PROVIDER [-l LOCATION ...] [--output OUTPUT] [-q] [--vpc-id ID] [--zone ZONE]

Command options

-l, --location
A location to filter for. To list available locations, run ibmcloud ks locations.
--output
Prints the command output in the provided format. Accepted values: json
--provider
Filter the list for a specific infrastructure provider. Available options: classic, vpc-classic, vpc-gen2
-q
Do not show the message of the day or update reminders.
--vpc-id
Required for provider types vpc-classic and vpc-gen2: The ID of the VPC to list subnets for. To list VPC IDs, run ibmcloud ks vpcs.
--zone
Required for provider types vpc-classic and vpc-gen2: The zone to list VPC subnets for. To list available zones, run ibmcloud ks zone ls --provider vpc-classic|vpc-gen2.

Examples

List available portable subnets in your IBM Cloud infrastructure account

ibmcloud ks subnets --provider PROVIDER

Versions commands

List all the container platform versions that are available for IBM Cloud Kubernetes Service clusters.

ibmcloud ks versions

List all the container platform versions that are available for IBM Cloud Kubernetes Service clusters.

ibmcloud ks versions [--output OUTPUT] [-q] [--show-version VERSION]

Command options

--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.
--show-version
Show only the versions for the specified container platform. Accepted values: OpenShift, Kubernetes

Examples

List all the container platform versions that are available for IBM Cloud Kubernetes Service clusters

ibmcloud ks versions

Vlan commands

List public and private VLANs for a zone and view the VLAN spanning status.

ibmcloud ks vlan help

Show help

ibmcloud ks vlan help

Examples

Show help

ibmcloud ks vlan help

ibmcloud ks vlan ls

Classic infrastructure

List available public and private VLANs for a zone.

ibmcloud ks vlan ls --zone ZONE [--output OUTPUT] [-q]

Command options

--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.
--zone
Specify the zone for the worker pool in a multizone cluster. To list available zones, run ibmcloud ks zone ls.

Examples

List available public and private VLANs for a zone

ibmcloud ks vlan ls --zone ZONE

ibmcloud ks vlan spanning get

Classic infrastructure

View the VLAN spanning status for your IBM Cloud classic infrastructure account.

ibmcloud ks vlan spanning get [--output OUTPUT] [-q] [--region REGION]

Command options

--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.
--region
Specify the region to target. If a region is not already targeted, this argument must be specified. To check if a region is targeted, run ibmcloud target.

Examples

View the VLAN spanning status for your IBM Cloud classic infrastructure account

ibmcloud ks vlan spanning get

ibmcloud ks vlan spanning help

Show help

ibmcloud ks vlan spanning help

Examples

Show help

ibmcloud ks vlan spanning help

Vni commands

Attach, detach, and list Virtual Network Interfaces on worker nodes.

ibmcloud ks vni attach baremetal

Virtual Private Cloud

Attach a Virtual Network Interface to a bare metal worker node or cluster.

ibmcloud ks vni attach baremetal --vlan VLAN --vni VNI [--auto-delete] [--output OUTPUT] [-q] (--cluster-id ID | --worker WORKER)

Command options

--auto-delete
Automatically delete the VNI when it is removed from the cluster.
-c, --cluster-id
The ID of the cluster.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.
--vlan
The VLAN ID for the bare metal node attachment. Must be unique for each VPC subnet. Multiple VNIs from the same subnet can reuse the VLAN ID. Valid range: 1-500.
--vni
The ID of the Virtual Network Interface to attach. You must specify VNIs without any current target resource. To list all the VNIs, run ibmcloud is vnis. To check if a specific VNI is already attached to a resource, check for the "Target" field in 'ibmcloud is vni <VNI_ID>.
-w, --worker
The ID of the worker node.

Examples

Attach a Virtual Network Interface to a bare metal worker node or cluster

ibmcloud ks vni attach baremetal --vlan VLAN --vni VNI --cluster-id CLUSTER_NAME_OR_ID

ibmcloud ks vni attach help

Show help

ibmcloud ks vni attach help

Examples

Show help

ibmcloud ks vni attach help

ibmcloud ks vni detach

Virtual Private Cloud

Detach a Virtual Network Interface from a worker node or cluster.

ibmcloud ks vni detach --vni VNI [-f] [--output OUTPUT] [-q] (--cluster-id ID | --worker WORKER)

Command options

-c, --cluster-id
The ID of the cluster.
-f
Force the command to run without user prompts.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.
--vni
The ID of the Virtual Network Interface to detach.
-w, --worker
The ID of the worker node.

Examples

Detach a Virtual Network Interface from a worker node or cluster

ibmcloud ks vni detach --vni VNI --cluster-id CLUSTER_NAME_OR_ID

ibmcloud ks vni help

Show help

ibmcloud ks vni help

Examples

Show help

ibmcloud ks vni help

ibmcloud ks vni ls

Virtual Private Cloud

List Virtual Network Interfaces attached to a cluster or worker node.

ibmcloud ks vni ls [--after AFTER] [--first FIRST] [--output OUTPUT] [-q] (--cluster-id ID | --worker WORKER)

Command options

--after
Show Virtual Network Interfaces after the given cursor.
-c, --cluster-id
The ID of the cluster.
--first
View the next Virtual Network Interfaces, up to the first number of VNIs.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.
-w, --worker
The ID of the worker node.

Examples

List VNIs for a cluster.

ibmcloud oc vni ls --after AFTER --first FIRST -q --cluster-id ID

Vpc commands

Get information about VPCs and manage VPC clusters.

ibmcloud ks vpc help

Show help

ibmcloud ks vpc help

Examples

Show help

ibmcloud ks vpc help

ibmcloud ks vpc ls

List all VPCs in the targeted resource group. If no resource group is targeted, all VPCs in the account are listed.

ibmcloud ks vpc ls [--output OUTPUT] [--provider PROVIDER] [-q]

Command options

--output
Prints the command output in the provided format. Accepted values: json
--provider
The VPC infrastructure provider type. Supported values are vpc-classic and vpc-gen2. By default, VPCs of all provider types are returned.
-q
Do not show the message of the day or update reminders.

Examples

List all VPCs in the targeted resource group

ibmcloud ks vpc ls

ibmcloud ks vpc outbound-traffic-protection disable

Disable outbound traffic protection for a Secure By Default VPC cluster.

ibmcloud ks vpc outbound-traffic-protection disable --cluster CLUSTER [-f] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.

Examples

Disable outbound traffic protection for a Secure By Default VPC cluster

ibmcloud ks vpc outbound-traffic-protection disable --cluster CLUSTER

ibmcloud ks vpc outbound-traffic-protection enable

Enable outbound traffic protection for a Secure By Default VPC cluster.

ibmcloud ks vpc outbound-traffic-protection enable --cluster CLUSTER [-f] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.

Examples

Enable outbound traffic protection for a Secure By Default VPC cluster

ibmcloud ks vpc outbound-traffic-protection enable --cluster CLUSTER

ibmcloud ks vpc outbound-traffic-protection help

Show help

ibmcloud ks vpc outbound-traffic-protection help

Examples

Show help

ibmcloud ks vpc outbound-traffic-protection help

ibmcloud ks vpc secure-by-default enable

Enable Secure By Default VPC Networking for a VPC cluster using legacy Security Groups.

ibmcloud ks vpc secure-by-default enable --cluster CLUSTER [--disable-outbound-traffic-protection] [-f] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--disable-outbound-traffic-protection
Include this option to allow public outbound access from the cluster workers. By default, public outbound access is blocked.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.

Examples

Enable Secure By Default VPC Networking for a VPC cluster using legacy Security Groups

ibmcloud ks vpc secure-by-default enable --cluster CLUSTER

ibmcloud ks vpc secure-by-default help

Show help

ibmcloud ks vpc secure-by-default help

Examples

Show help

ibmcloud ks vpc secure-by-default help

Webhook-create commands

Register a webhook in a cluster.

ibmcloud ks webhook-create

Register a webhook in a cluster.

ibmcloud ks webhook-create --cluster CLUSTER --type TYPE --url URL [--level LEVEL] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--level
Set the notification level. Accepted values are Normal or Warning. The default is Warning.
-q
Do not show the message of the day or update reminders.
--type
The type of webhook that you want to use. Currently slack is supported.
--url
The webhook URL.

Examples

Register a webhook in a cluster

ibmcloud ks webhook-create --cluster CLUSTER --type TYPE --url URL

Worker commands

View and modify worker nodes for a cluster.

ibmcloud ks worker get

Virtual Private Cloud Classic infrastructure Satellite

View the details of a worker node.

ibmcloud ks worker get --cluster CLUSTER --worker WORKER [--output OUTPUT] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.
-w, --worker
Specify the worker ID. To list available workers, run ibmcloud ks workers.

Examples

View the details of a worker node

ibmcloud ks worker get --cluster CLUSTER --worker WORKER_ID

ibmcloud ks worker help

Show help

ibmcloud ks worker help

Examples

Show help

ibmcloud ks worker help

ibmcloud ks worker ls

Virtual Private Cloud Classic infrastructure Satellite

List all worker nodes in a cluster.

ibmcloud ks worker ls --cluster CLUSTER [--output OUTPUT] [-q] [--show-delete-reason] [--show-deleted] [--show-pools] [--worker-pool POOL]

Command options

-c, --cluster
Specify the cluster name or ID.
--output
Prints the command output in the provided format. Accepted values: json
-p, --worker-pool
Show only worker nodes that belong to the worker pool you specify.
-q
Do not show the message of the day or update reminders.
--show-delete-reason
Show the reason for worker node deletion.
--show-deleted
Show worker nodes that were deleted from the cluster.
--show-pools
See the worker pool that each worker belongs to.

Examples

List all worker nodes in a cluster

ibmcloud ks worker ls --cluster CLUSTER

ibmcloud ks worker reboot

Virtual Private Cloud Classic infrastructure Satellite

Restart a worker node.

ibmcloud ks worker reboot --cluster CLUSTER --worker WORKER [--worker WORKER ...] [-f] [--hard] [-q] [--skip-master-health]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
--hard
Force a hard restart of a worker node by cutting off power to the worker node. Use this option if the worker node is unresponsive or the worker node has a Docker hang.
-q
Do not show the message of the day or update reminders.
--skip-master-health
Skips checking of master health before initiating action.
-w, --worker
Specify one or more worker IDs.

Examples

Restart a worker node

ibmcloud ks worker reboot --cluster CLUSTER --worker WORKER_ID

ibmcloud ks worker reload

Virtual Private Cloud Classic infrastructure Satellite

Delete the data, reimage, and reinstall Kubernetes with the latest patch version on one or more worker nodes. This action cannot be undone. Classic nodes and bare metal VPC nodes are supported.

ibmcloud ks worker reload --worker WORKER [--worker WORKER ...] [-f] [-q] [--skip-master-health]

Command options

-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.
--skip-master-health
Skips checking of master health before initiating action.
-w, --worker
Specify one or more worker IDs.

Examples

Delete the data, reimage, and reinstall Kubernetes with the latest patch version on one or more worker nodes

ibmcloud ks worker reload --worker WORKER_ID

ibmcloud ks worker replace

Virtual Private Cloud Classic infrastructure Satellite

Delete a worker node and replace it with a new worker node in the same worker pool.

ibmcloud ks worker replace --cluster CLUSTER --worker WORKER [-f] [-q] [--update]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.
--update
Update the worker node to the same major and minor version of the master and the latest patch. Also updates the operating system if the worker pool operating system has been updated.
-w, --worker
Specify the worker ID. To list available workers, run ibmcloud ks workers.

Examples

Delete a worker node and replace it with a new worker node in the same worker pool

ibmcloud ks worker replace --cluster CLUSTER --worker WORKER_ID

ibmcloud ks worker rm

Virtual Private Cloud Classic infrastructure Satellite

Remove a worker node from a cluster.

ibmcloud ks worker rm --cluster CLUSTER --worker WORKER [--worker WORKER ...] [-f] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.
-w, --worker
Specify one or more worker IDs.

Examples

Remove a worker node from a cluster

ibmcloud ks worker rm --cluster CLUSTER --worker WORKER_ID

ibmcloud ks worker update

Classic infrastructure

Update one or more worker nodes in a classic cluster to a new Kubernetes version. During the update, the worker node is updated with the latest image and data is permanently deleted if not stored on persistent storage.

ibmcloud ks worker update --cluster CLUSTER --worker WORKER [--worker WORKER ...] [-f] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-q
Do not show the message of the day or update reminders.
-w, --worker
Specify one or more worker IDs.

Examples

Update one or more worker nodes in a classic cluster to a new Kubernetes version

ibmcloud ks worker update --cluster CLUSTER --worker WORKER_ID

Worker-pool commands

View and modify worker pools for a cluster.

ibmcloud ks worker-pool create classic

Classic infrastructure

Add a worker pool to a classic cluster. No worker nodes are created until zones are added to the worker pool.

ibmcloud ks worker-pool create classic --cluster CLUSTER --flavor FLAVOR --name NAME --size-per-zone SIZE [--disable-disk-encrypt] [--entitlement ENTITLEMENT] [--hardware HARDWARE] [--label LABEL ...] [--operating-system SYSTEM] [--output OUTPUT] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--disable-disk-encrypt
Disable encryption on a worker node.
--entitlement
Set this flag to ocp_entitled only if you use this cluster with a license such as a Cloud Pak that has an OpenShift entitlement.
--flavor
The flavor of a worker node. To see available flavors, run ibmcloud ks flavor ls --zone <zone name> (for public IBM Cloud accounts) or ibmcloud ks flavor ls (for IBM Cloud Dedicated accounts).
--hardware
The level of hardware isolation for your worker node. Use dedicated to have available physical resources dedicated to you only, or shared to allow physical resources to be shared with other IBM customers. For IBM Cloud Public accounts, the default value is shared. For IBM Cloud Dedicated accounts, dedicated is the only available option.
-l, --label
Sets labels on all the workers in the worker pool.
--name
Enter a name for the worker pool.
--operating-system
Specify the name of the operating system.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.
--size-per-zone
Specify the desired number of workers per zone in this worker pool.

Examples

Add a worker pool to a classic cluster

ibmcloud ks worker-pool create classic \
  --cluster CLUSTER \
  --flavor FLAVOR \
  --name NAME \
  --size-per-zone SIZE

ibmcloud ks worker-pool create help

Show help

ibmcloud ks worker-pool create help

Examples

Show help

ibmcloud ks worker-pool create help

ibmcloud ks worker-pool create satellite

Add a worker pool to an IBM Cloud Satellite cluster. No worker nodes are created until zones are added to the worker pool.

ibmcloud ks worker-pool create satellite --cluster CLUSTER --host-label LABEL [--host-label LABEL ...] --name NAME --size-per-zone SIZE --zone ZONE [--entitlement ENTITLEMENT] [--label LABEL ...] [--operating-system SYSTEM] [--output OUTPUT] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--entitlement
Set this flag to ocp_entitled only if you use this cluster with a license such as a Cloud Pak that has an OpenShift entitlement.
--host-label, --hl
Enter any labels as key-value pairs to identify the host to assign to your Satellite control plane or Red Hat OpenShift cluster. The first host that has this label and is unassigned is automatically assigned to the control plane or cluster. To find available host labels, run ibmcloud sat host get --host <host_name_or_ID> --location <location_name_or_ID>.
-l, --label
Sets labels on all the workers in the worker pool.
--name
Enter a name for the worker pool.
--operating-system
Specify the name of the operating system.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.
--size-per-zone
Specify the desired number of workers per zone in this worker pool.
--zone
Specify the zone for the worker pool in a multizone cluster. To list available zones, run ibmcloud ks zone ls.

Examples

Add a worker pool to an IBM Cloud Satellite cluster

ibmcloud ks worker-pool create satellite \
  --cluster CLUSTER \
  --host-label LABEL \
  --name NAME \
  --size-per-zone SIZE \
  --zone ZONE

ibmcloud ks worker-pool create vpc-classic

Add a worker pool to a VPC Gen 1 cluster. No worker nodes are created until zones are added to the worker pool.

ibmcloud ks worker-pool create vpc-classic --cluster CLUSTER --flavor FLAVOR --name NAME --size-per-zone SIZE [--entitlement ENTITLEMENT] [--label LABEL ...] [--operating-system SYSTEM] [--output OUTPUT] [-q] [--vpc-id ID]

Command options

-c, --cluster
Specify the cluster name or ID.
--entitlement
Set this flag to ocp_entitled only if you use this cluster with a license such as a Cloud Pak that has an OpenShift entitlement.
--flavor
The flavor of a worker node. To see available flavors, run ibmcloud ks flavor ls --zone <zone name> (for public IBM Cloud accounts) or ibmcloud ks flavor ls (for IBM Cloud Dedicated accounts).
-l, --label
Sets labels on all the workers in the worker pool.
--name
Enter a name for the worker pool.
--operating-system
Specify the name of the operating system.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.
--size-per-zone
Specify the desired number of workers per zone in this worker pool.
--vpc-id
The ID of the VPC in which to create the worker nodes, which must match the VPC that the cluster is in. To list the cluster's VPC ID, run ibmcloud ks cluster get -c <cluster_name_or_ID>. If this flag is not provided, then the worker pool defaults to the VPC ID of existing worker pools in the cluster.

Examples

Add a worker pool to a VPC Gen 1 cluster

ibmcloud ks worker-pool create vpc-classic \
  --cluster CLUSTER \
  --flavor FLAVOR \
  --name NAME \
  --size-per-zone SIZE

ibmcloud ks worker-pool create vpc-gen2

Virtual Private Cloud

Add a worker pool to a VPC Gen 2 cluster. No worker nodes are created until zones are added to the worker pool.

ibmcloud ks worker-pool create vpc-gen2 --cluster CLUSTER --flavor FLAVOR --name NAME --size-per-zone SIZE [--crk CRK] [--disable-disk-encrypt] [--entitlement ENTITLEMENT] [--kms-account-id ID] [--kms-instance INSTANCE] [--label LABEL ...] [--operating-system SYSTEM] [--output OUTPUT] [-q] [--secondary-storage STORAGE] [--security-group GROUP ...] [--vpc-id ID]

Command options

-c, --cluster
Specify the cluster name or ID.
--crk
The ID of the root key in your KMS instance to use for local disk encryption. To list available root keys, run ibmcloud ks kms crk ls --instance-id <kms_instance>.
--disable-disk-encrypt
Disable encryption on a worker node.
--entitlement
Set this flag to ocp_entitled only if you use this cluster with a license such as a Cloud Pak that has an OpenShift entitlement.
--flavor
The flavor of a worker node. To see available flavors, run ibmcloud ks flavor ls --zone <zone name> (for public IBM Cloud accounts) or ibmcloud ks flavor ls (for IBM Cloud Dedicated accounts).
--kms-account-id
The ID of the account that contains the KMS instance you want to use for local disk or secret encryption.
--kms-instance
The ID of the KMS instance to use for local disk encryption. To list available KMS instances, run ibmcloud ks kms instance ls.
-l, --label
Sets labels on all the workers in the worker pool.
--name
Enter a name for the worker pool.
--operating-system
Specify the name of the operating system.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.
--secondary-storage
The secondary storage option for the flavor. To view the secondary storage options that are available for a flavor, run ibmcloud ks flavor get --provider vpc-gen2 --zone <zone name>.
--security-group
Optional. Specify up to five security group IDs to apply to all workers in the worker pool.
--size-per-zone
Specify the desired number of workers per zone in this worker pool.
--vpc-id
The ID of the VPC in which to create the worker nodes, which must match the VPC that the cluster is in. To list the cluster's VPC ID, run ibmcloud ks cluster get -c <cluster_name_or_ID>. If this flag is not provided, then the worker pool defaults to the VPC ID of existing worker pools in the cluster.

Examples

Add a worker pool to a VPC Gen 2 cluster

ibmcloud ks worker-pool create vpc-gen2 \
  --cluster CLUSTER \
  --flavor FLAVOR \
  --name NAME \
  --size-per-zone SIZE

ibmcloud ks worker-pool get

Virtual Private Cloud Classic infrastructure Satellite

List the details of a worker pool.

ibmcloud ks worker-pool get --cluster CLUSTER --worker-pool POOL [--output OUTPUT] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--output
Prints the command output in the provided format. Accepted values: json
-p, --worker-pool
Specify a worker pool.
-q
Do not show the message of the day or update reminders.

Examples

List the details of a worker pool

ibmcloud ks worker-pool get --cluster CLUSTER --worker-pool POOL

ibmcloud ks worker-pool help

Show help

ibmcloud ks worker-pool help

Examples

Show help

ibmcloud ks worker-pool help

ibmcloud ks worker-pool label help

Show help

ibmcloud ks worker-pool label help

Examples

Show help

ibmcloud ks worker-pool label help

ibmcloud ks worker-pool label rm

Virtual Private Cloud Classic infrastructure Satellite

Remove all custom Kubernetes labels from all worker nodes in a worker pool.

ibmcloud ks worker-pool label rm --cluster CLUSTER --worker-pool POOL [-f] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-p, --worker-pool
Specify a worker pool.
-q
Do not show the message of the day or update reminders.

Examples

Remove all custom Kubernetes labels from all worker nodes in a worker pool

ibmcloud ks worker-pool label rm --cluster CLUSTER --worker-pool POOL

ibmcloud ks worker-pool label set

Virtual Private Cloud Classic infrastructure Satellite

Set custom Kubernetes labels for all worker nodes in a worker pool.

ibmcloud ks worker-pool label set --cluster CLUSTER --label LABEL [--label LABEL ...] --worker-pool POOL [-f] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-l, --label
Set custom Kubernetes labels in the format key=value for all the worker nodes in the worker pool. For multiple labels, repeat this flag. To keep any existing custom labels on the worker pool, include those labels with this flag.
-p, --worker-pool
Specify a worker pool.
-q
Do not show the message of the day or update reminders.

Examples

Set custom Kubernetes labels for all worker nodes in a worker pool

ibmcloud ks worker-pool label set --cluster CLUSTER --label LABEL --worker-pool POOL

ibmcloud ks worker-pool ls

Virtual Private Cloud Classic infrastructure Satellite

List all worker pools in a cluster.

ibmcloud ks worker-pool ls --cluster CLUSTER [--output OUTPUT] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.

Examples

List all worker pools in a cluster

ibmcloud ks worker-pool ls --cluster CLUSTER

ibmcloud ks worker-pool operating-system help

Show help

ibmcloud ks worker-pool operating-system help

Examples

Show help

ibmcloud ks worker-pool operating-system help

ibmcloud ks worker-pool operating-system set

Set the operating system. After you set the operating system, you must update your workers by running either ibmcloud ks worker update or ibmcloud ks worker replace.

ibmcloud ks worker-pool operating-system set --cluster CLUSTER --operating-system SYSTEM --worker-pool POOL [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--operating-system
Specify the name of the operating system.
-p, --worker-pool
Specify a worker pool.
-q
Do not show the message of the day or update reminders.

Examples

Set the operating system

ibmcloud ks worker-pool operating-system set \
  --cluster CLUSTER \
  --operating-system SYSTEM \
  --worker-pool POOL

ibmcloud ks worker-pool rebalance

Virtual Private Cloud Classic infrastructure Satellite

Rebalance a worker pool in a cluster. Rebalancing adds and removes worker nodes to match the worker pool's size per zone. Satellite worker pools might remove manually assigned nodes if they do not match the worker pool's host labels.

ibmcloud ks worker-pool rebalance --cluster CLUSTER --worker-pool POOL [-f] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-p, --worker-pool
Specify a worker pool.
-q
Do not show the message of the day or update reminders.

Examples

Rebalance a worker pool in a cluster

ibmcloud ks worker-pool rebalance --cluster CLUSTER --worker-pool POOL

ibmcloud ks worker-pool resize

Virtual Private Cloud Classic infrastructure Satellite

Resize the worker pool to the number of workers per zone that you specify.

ibmcloud ks worker-pool resize --cluster CLUSTER --size-per-zone SIZE --worker-pool POOL [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-p, --worker-pool
Specify a worker pool.
-q
Do not show the message of the day or update reminders.
--size-per-zone
Specify the desired number of workers per zone in this worker pool.

Examples

Resize the worker pool to the number of workers per zone that you specify

ibmcloud ks worker-pool resize --cluster CLUSTER --size-per-zone SIZE --worker-pool POOL

ibmcloud ks worker-pool rm

Virtual Private Cloud Classic infrastructure Satellite

Remove a worker pool from a cluster.

ibmcloud ks worker-pool rm --cluster CLUSTER --worker-pool POOL [-f] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-p, --worker-pool
Specify a worker pool.
-q
Do not show the message of the day or update reminders.

Examples

Remove a worker pool from a cluster

ibmcloud ks worker-pool rm --cluster CLUSTER --worker-pool POOL

ibmcloud ks worker-pool taint help

Show help

ibmcloud ks worker-pool taint help

Examples

Show help

ibmcloud ks worker-pool taint help

ibmcloud ks worker-pool taint rm

Virtual Private Cloud Classic infrastructure Satellite

Remove all Kubernetes taints from all worker nodes in a worker pool.

ibmcloud ks worker-pool taint rm --cluster CLUSTER --worker-pool POOL [-f] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-p, --worker-pool
Specify a worker pool.
-q
Do not show the message of the day or update reminders.

Examples

Remove all Kubernetes taints from all worker nodes in a worker pool

ibmcloud ks worker-pool taint rm --cluster CLUSTER --worker-pool POOL

ibmcloud ks worker-pool taint set

Virtual Private Cloud Classic infrastructure Satellite

Set Kubernetes taints for all worker nodes in a worker pool. Taints prevent pods without matching tolerations from running on the worker nodes.

ibmcloud ks worker-pool taint set --cluster CLUSTER --taint TAINT [--taint TAINT ...] --worker-pool POOL [-f] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-p, --worker-pool
Specify a worker pool.
-q
Do not show the message of the day or update reminders.
--taint
Sets taints on all the workers in the worker pool. Specify the Kubernetes taint in the format key=value:effect. The key=value is a pair such as env=prod that you use to manage the worker node taint and matching pod tolerations. The effect is a Kubernetes taint effect such as NoSchedule that describes how the taint works.

Examples

Set Kubernetes taints for all worker nodes in a worker pool

ibmcloud ks worker-pool taint set --cluster CLUSTER --taint TAINT --worker-pool POOL

ibmcloud ks worker-pool zones

Virtual Private Cloud Classic infrastructure Satellite

View the zones attached to a worker pool.

ibmcloud ks worker-pool zones --cluster CLUSTER --worker-pool POOL [--output OUTPUT] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--output
Prints the command output in the provided format. Accepted values: json
-p, --worker-pool
Specify a worker pool.
-q
Do not show the message of the day or update reminders.

Examples

View the zones attached to a worker pool

ibmcloud ks worker-pool zones --cluster CLUSTER --worker-pool POOL

Zone commands

List availability zones and modify the zones attached to a worker pool.

ibmcloud ks zone add classic

Classic infrastructure

Add a zone to one or more worker pools in a classic cluster.

ibmcloud ks zone add classic --cluster CLUSTER --worker-pool POOL [--worker-pool POOL ...] --zone ZONE [--output OUTPUT] [--private-vlan VLAN] [-q] (--private-only | --public-vlan VLAN)

Command options

-c, --cluster
Specify the cluster name or ID.
--output
Prints the command output in the provided format. Accepted values: json
-p, --worker-pool
The name of the worker pool to modify. To specify multiple worker pools, use multiple flags, such as -p pool1 -p pool2.
--private-only
Use this flag to prevent a public VLAN from being created. Required only when you specify the --private-vlan flag without specifying the --public-vlan flag.
--private-vlan
Specify the ID of the private VLAN. To see available VLANs, run '. When you specify a private VLAN, you must also specify either the --public-vlan flag or the '--private-only' flag.
--public-vlan
Specify the ID of the public VLAN. To see available VLANs, run '.
-q
Do not show the message of the day or update reminders.
--zone
Specify the zone for the worker pool in a multizone cluster. To list available zones, run ibmcloud ks zone ls.

Examples

Add a zone to one or more worker pools in a classic cluster

ibmcloud ks zone add classic --cluster CLUSTER --worker-pool POOL --zone ZONE --private-only

ibmcloud ks zone add help

Show help

ibmcloud ks zone add help

Examples

Show help

ibmcloud ks zone add help

ibmcloud ks zone add satellite

Add a zone to one or more worker pools in a Satellite cluster.

ibmcloud ks zone add satellite --cluster CLUSTER --worker-pool POOL [--worker-pool POOL ...] --zone ZONE [--output OUTPUT] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--output
Prints the command output in the provided format. Accepted values: json
-p, --worker-pool
The name of the worker pool to modify. To specify multiple worker pools, use multiple flags, such as -p pool1 -p pool2.
-q
Do not show the message of the day or update reminders.
--zone
Specify the zone for the worker pool in a multizone cluster. To list available zones, run ibmcloud ks zone ls.

Examples

Add a zone to one or more worker pools in a Satellite cluster

ibmcloud ks zone add satellite --cluster CLUSTER --worker-pool POOL --zone ZONE

ibmcloud ks zone add vpc-classic

Add a zone to one or more worker pools in a VPC Gen 1 cluster.

ibmcloud ks zone add vpc-classic --cluster CLUSTER --subnet-id ID --worker-pool POOL --zone ZONE [--output OUTPUT] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.
--subnet-id
The VPC subnet to assign the cluster. To list available subnets, run ibmcloud ks subnets --provider vpc-classic --vpc-id <vpc-id> --zone <vpc-zone>.
--worker-pool
Specify a worker pool.
--zone
Specify the zone for the worker pool in a multizone cluster. To list available zones, run ibmcloud ks zone ls.

Examples

Add a zone to one or more worker pools in a VPC Gen 1 cluster

ibmcloud ks zone add vpc-classic --cluster CLUSTER --subnet-id ID --worker-pool POOL --zone ZONE

ibmcloud ks zone add vpc-gen2

Virtual Private Cloud

Add a zone to one or more worker pools in a VPC Gen 2 cluster.

ibmcloud ks zone add vpc-gen2 --cluster CLUSTER --subnet-id ID --worker-pool POOL --zone ZONE [--output OUTPUT] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
--output
Prints the command output in the provided format. Accepted values: json
-q
Do not show the message of the day or update reminders.
--subnet-id
The VPC subnet to assign the cluster. To list available subnets, run ibmcloud ks subnets --provider vpc-gen2 --vpc-id <vpc-id> --zone <vpc-zone>.
--worker-pool
Specify a worker pool.
--zone
Specify the zone for the worker pool in a multizone cluster. To list available zones, run ibmcloud ks zone ls.

Examples

Add a zone to one or more worker pools in a VPC Gen 2 cluster

ibmcloud ks zone add vpc-gen2 --cluster CLUSTER --subnet-id ID --worker-pool POOL --zone ZONE

ibmcloud ks zone help

Show help

ibmcloud ks zone help

Examples

Show help

ibmcloud ks zone help

ibmcloud ks zone ls

Virtual Private Cloud Classic infrastructure Satellite

List all availability zones in a region.

ibmcloud ks zone ls --provider PROVIDER [-l LOCATION ...] [--output OUTPUT] [-q] [--region-only] [--show-flavors]

Command options

-l, --location
A location to filter for. To list available locations, run ibmcloud ks locations.
--output
Prints the command output in the provided format. Accepted values: json
--provider
Filter the list for a specific infrastructure provider. Available options: classic, vpc-classic, vpc-gen2, satellite
-q
Do not show the message of the day or update reminders.
--region-only
Show only regional data centers.
--show-flavors
Show the available worker node flavors in the zone for VPC.

Examples

List all availability zones in a region

ibmcloud ks zone ls --provider PROVIDER

ibmcloud ks zone network-set

Classic infrastructure

Set the network metadata in a specific zone for the given worker pools in a classic cluster.

ibmcloud ks zone network-set --cluster CLUSTER --private-vlan VLAN --worker-pool POOL [--worker-pool POOL ...] --zone ZONE [-f] [-q] (--private-only | --public-vlan VLAN)

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-p, --worker-pool
The name of the worker pool to modify. To specify multiple worker pools, use multiple flags, such as -p pool1 -p pool2.
--private-only
Unset the public VLAN so that the workers in this zone are connected to a private VLAN only.
--private-vlan
Specify the ID of the private VLAN. To see available VLANs, run '.
--public-vlan
Specify the ID of the public VLAN. To see available VLANs, run '.
-q
Do not show the message of the day or update reminders.
--zone
Specify the zone for the worker pool in a multizone cluster. To list available zones, run ibmcloud ks zone ls.

Examples

Set the network metadata in a specific zone for the given worker pools in a classic cluster

ibmcloud ks zone network-set \
  --cluster CLUSTER \
  --private-vlan VLAN \
  --worker-pool POOL \
  --zone ZONE \
  --private-only

ibmcloud ks zone rm

Virtual Private Cloud Classic infrastructure Satellite

Remove a zone from one or more worker pools in a cluster.

ibmcloud ks zone rm --cluster CLUSTER --worker-pool POOL [--worker-pool POOL ...] --zone ZONE [-f] [-q]

Command options

-c, --cluster
Specify the cluster name or ID.
-f
Force the command to run without user prompts.
-p, --worker-pool
The name of the worker pool to modify. To specify multiple worker pools, use multiple flags, such as -p pool1 -p pool2.
-q
Do not show the message of the day or update reminders.
--zone
Specify the zone for the worker pool in a multizone cluster. To list available zones, run ibmcloud ks zone ls.

Examples

Remove a zone from one or more worker pools in a cluster

ibmcloud ks zone rm --cluster CLUSTER --worker-pool POOL --zone ZONE