- NAME
-
- gcloud container bare-metal clusters update - update an Anthos cluster on bare metal
- SYNOPSIS
-
-
gcloud container bare-metal clusters update
(CLUSTER
:--location
=LOCATION
) [--admin-users
=ADMIN_USERS
] [--allow-missing
] [--async
] [--binauthz-evaluation-mode
=BINAUTHZ_EVALUATION_MODE
] [--description
=DESCRIPTION
] [--enable-application-logs
] [--login-user
=LOGIN_USER
] [--maintenance-address-cidr-blocks
=[MAINTENANCE_ADDRESS_CIDR_BLOCKS
,…]] [--validate-only
] [--version
=VERSION
] [--add-annotations
=[KEY1
=VALUE1
,KEY2
=VALUE2
,…] |--remove-annotations
=[KEY1
,KEY2
,…]] [--api-server-args
=[KEY
=VALUE
,…]--control-plane-node-configs
=[labels
=LABELS
],[node-ip
=NODE-IP
]--control-plane-node-labels
=[KEY
=VALUE
,…]--control-plane-node-taints
=[KEY
=VALUE
:EFFECT
,…]--control-plane-registry-burst
=CONTROL_PLANE_REGISTRY_BURST
--control-plane-registry-pull-qps
=CONTROL_PLANE_REGISTRY_PULL_QPS
--disable-control-plane-serialize-image-pulls
|--enable-control-plane-serialize-image-pulls
] [--bgp-address-pools
=[addresses
=ADDRESSES
],[avoid-buggy-ips
=AVOID-BUGGY-IPS
],[manual-assign
=MANUAL-ASSIGN
],[pool
=POOL
]--bgp-asn
=BGP_ASN
--bgp-peer-configs
=[asn
=ASN
,ip
=IP
,control-plane-nodes
=NODE_IP_1
;NODE_IP_2
,…]--bgp-load-balancer-node-configs
=[node-ip
=IP
,labels
=KEY1
=VALUE1
;KEY2
=VALUE2
,…]--bgp-load-balancer-node-labels
=[KEY
=VALUE
,…]--bgp-load-balancer-node-taints
=[KEY
=VALUE
:EFFECT
,…]--bgp-load-balancer-registry-burst
=BGP_LOAD_BALANCER_REGISTRY_BURST
--bgp-load-balancer-registry-pull-qps
=BGP_LOAD_BALANCER_REGISTRY_PULL_QPS
--disable-bgp-load-balancer-serialize-image-pulls
|--enable-bgp-load-balancer-serialize-image-pulls
|--metal-lb-address-pools
=[addresses
=ADDRESSES
],[avoid-buggy-ips
=AVOID-BUGGY-IPS
],[manual-assign
=MANUAL-ASSIGN
],[pool
=POOL
]--metal-lb-load-balancer-node-configs
=[labels
=LABELS
],[node-ip
=NODE-IP
]--metal-lb-load-balancer-node-labels
=[KEY
=VALUE
,…]--metal-lb-load-balancer-node-taints
=[KEY
=VALUE
:EFFECT
,…]--metal-lb-load-balancer-registry-burst
=METAL_LB_LOAD_BALANCER_REGISTRY_BURST
--metal-lb-load-balancer-registry-pull-qps
=METAL_LB_LOAD_BALANCER_REGISTRY_PULL_QPS
--disable-metal-lb-load-balancer-serialize-image-pulls
|--enable-metal-lb-load-balancer-serialize-image-pulls
] [--island-mode-service-address-cidr-blocks
=SERVICE_ADDRESS
,[…]--disable-sr-iov-config
|--enable-sr-iov-config
] [GCLOUD_WIDE_FLAG …
]
-
- DESCRIPTION
- Update an Anthos cluster on bare metal.
- EXAMPLES
-
To update a cluster named
managed in locationmy-cluster
, run:us-west1
gcloud container bare-metal clusters update my-cluster --location=us-west1
- POSITIONAL ARGUMENTS
-
-
Cluster resource - cluster to update The arguments in this group can be used to
specify the attributes of this resource. (NOTE) Some attributes are not given
arguments in this group but can be set in other ways.
To set the
project
attribute:-
provide the argument
cluster
on the command line with a fully specified name; -
provide the argument
--project
on the command line; -
set the property
core/project
.
This must be specified.
CLUSTER
-
ID of the cluster or fully qualified identifier for the cluster.
To set the
cluster
attribute:-
provide the argument
cluster
on the command line.
This positional argument must be specified if any of the other arguments in this group are specified.
-
provide the argument
--location
=LOCATION
-
Google Cloud location for the cluster.
To set the
location
attribute:-
provide the argument
cluster
on the command line with a fully specified name; -
provide the argument
--location
on the command line; -
set the property
container_bare_metal/location
.
-
provide the argument
-
provide the argument
-
Cluster resource - cluster to update The arguments in this group can be used to
specify the attributes of this resource. (NOTE) Some attributes are not given
arguments in this group but can be set in other ways.
- FLAGS
-
-
Anthos on bare metal cluster security configuration.
-
User cluster authorization configurations to bootstrap onto the admin cluster
--admin-users
=ADMIN_USERS
- Users that will be granted the cluster-admin role on the cluster, providing full access to the cluster.
-
User cluster authorization configurations to bootstrap onto the admin cluster
--allow-missing
- If set, and the Anthos cluster on bare metal is not found, the update request will try to create a new cluster with the provided configuration.
--async
- Return immediately, without waiting for the operation in progress to complete.
--binauthz-evaluation-mode
=BINAUTHZ_EVALUATION_MODE
-
Set Binary Authorization evaluation mode for this cluster.
BINAUTHZ_EVALUATION_MODE
must be one of:DISABLED
,PROJECT_SINGLETON_POLICY_ENFORCE
. --description
=DESCRIPTION
- Description for the resource.
-
Anthos on bare metal cluster operations configuration.
--enable-application-logs
- Whether collection of application logs/metrics should be enabled (in addition to system logs/metrics).
-
Anthos on bare metal node access related settings for the user cluster.
--login-user
=LOGIN_USER
- User name used to access node machines.
-
Anthos on bare metal cluster maintenance configuration.
--maintenance-address-cidr-blocks
=[MAINTENANCE_ADDRESS_CIDR_BLOCKS
,…]- IPv4 addresses to be placed into maintenance mode.
--validate-only
- If set, only validate the request, but do not actually perform the operation.
--version
=VERSION
- Anthos cluster on bare metal version for the user cluster resource.
-
At most one of these can be specified:
--add-annotations
=[KEY1
=VALUE1
,KEY2
=VALUE2
,…]- Add the given key-value pairs to the current annotations, or update its value if the key already exists.
--remove-annotations
=[KEY1
,KEY2
,…]- Remove annotations of the given keys.
-
Anthos on bare metal cluster control plane configuration.
--api-server-args
=[KEY
=VALUE
,…]- API Server argument configuration.
-
Anthos on bare metal cluster control plane node pool configuration.
-
Anthos on bare metal node pool configuration for control plane nodes.
-
Anthos on bare metal node configuration for control plane nodes.
-
Populate control plane node config.
At most one of these can be specified:
--control-plane-node-configs
=[labels
=LABELS
],[node-ip
=NODE-IP
]- Control plane node configuration.
--control-plane-node-labels
=[KEY
=VALUE
,…]- Labels assigned to nodes of a node pool.
--control-plane-node-taints
=[KEY
=VALUE
:EFFECT
,…]- Node taint applied to every Kubernetes node in a node pool.
-
Modifiable kubelet configurations for bare metal machines.
--control-plane-registry-burst
=CONTROL_PLANE_REGISTRY_BURST
- Maximum size of bursty pulls, temporarily allow pulls to burst to this number, while still not exceeding registry_pull_qps.
--control-plane-registry-pull-qps
=CONTROL_PLANE_REGISTRY_PULL_QPS
- Limit of registry pulls per second.
-
At most one of these can be specified:
--disable-control-plane-serialize-image-pulls
- If set, prevent the Kubelet from pulling multiple images at a time.
--enable-control-plane-serialize-image-pulls
- If set, enable the Kubelet to pull multiple images at a time.
-
Populate control plane node config.
-
Anthos on bare metal node configuration for control plane nodes.
-
Anthos on bare metal node pool configuration for control plane nodes.
-
Anthos on bare metal cluster load balancer configuration.
-
Populate one of the load balancers.
At most one of these can be specified:
-
BGP load balancer configuration.
--bgp-address-pools
=[addresses
=ADDRESSES
],[avoid-buggy-ips
=AVOID-BUGGY-IPS
],[manual-assign
=MANUAL-ASSIGN
],[pool
=POOL
]-
BGP load balancer address pools configurations.
Examples:
To specify configurations for two address pools
pool1
andpool2
,gcloud container bare-metal clusters update example_cluster
--bgp-address-pools 'pool=pool1,avoid-buggy-ips=True,manual-assign=True,addresses=192.168.1.1/32;192.168.1.2-192.168.1.3' --bgp-address-pools 'pool=pool2,avoid-buggy-ips=False,manual-assign=False,addresses=192.168.2.1/32;192.168.2.2-192.168.2.3'Use quote around the flag value to escape semicolon in the terminal.
--bgp-asn
=BGP_ASN
- BGP autonomous system number (ASN) of the cluster.
--bgp-peer-configs
=[asn
=ASN
,ip
=IP
,control-plane-nodes
=NODE_IP_1
;NODE_IP_2
,…]-
List of BGP peers that the cluster will connect to. At least one peer must be
configured for each control plane node.
Examples:
To specify configurations for two peers of BGP autonomous system number (ASN) 10000 and 20000,
gcloud container bare-metal clusters update example_cluster
--bgp-peer-configs 'asn=10000,ip=192.168.1.1,control-plane-nodes=192.168.1.2;192.168.1.3' --bgp-peer-configs 'asn=20000,ip=192.168.2.1,control-plane-nodes=192.168.2.2;192.168.2.3'Use quote around the flag value to escape semicolon in the terminal.
--bgp-load-balancer-node-configs
=[node-ip
=IP
,labels
=KEY1
=VALUE1
;KEY2
=VALUE2
,…]-
BGP load balancer data plane node configurations.
Examples:
To specify configurations for two nodes of IP
192.168.0.1
and192.168.1.1
,gcloud container bare-metal clusters update example_cluster
--bgp-load-balancer-node-configs 'node-ip=192.168.0.1,labels=KEY1=VALUE1;KEY2=VALUE2' --bgp-load-balancer-node-configs 'node-ip=192.168.1.1,labels=KEY3=VALUE3'Use quote around the flag value to escape semicolon in the terminal.
--bgp-load-balancer-node-labels
=[KEY
=VALUE
,…]- Labels assigned to nodes of a BGP node pool.
--bgp-load-balancer-node-taints
=[KEY
=VALUE
:EFFECT
,…]- Node taint applied to every Kubernetes node in a node pool.
-
Modifiable kubelet configurations for bare metal machines.
--bgp-load-balancer-registry-burst
=BGP_LOAD_BALANCER_REGISTRY_BURST
- Maximum size of bursty pulls, temporarily allow pulls to burst to this number, while still not exceeding registry_pull_qps.
--bgp-load-balancer-registry-pull-qps
=BGP_LOAD_BALANCER_REGISTRY_PULL_QPS
- Limit of registry pulls per second.
-
At most one of these can be specified:
--disable-bgp-load-balancer-serialize-image-pulls
- If set, prevent the Kubelet from pulling multiple images at a time.
--enable-bgp-load-balancer-serialize-image-pulls
- If set, enable the Kubelet to pull multiple images at a time.
-
MetalLB load balancer configuration.
-
MetalLB address pools configuration.
At most one of these can be specified:
--metal-lb-address-pools
=[addresses
=ADDRESSES
],[avoid-buggy-ips
=AVOID-BUGGY-IPS
],[manual-assign
=MANUAL-ASSIGN
],[pool
=POOL
]-
MetalLB load balancer configurations.
Examples:
To specify MetalLB load balancer configurations for two address pools
pool1
andpool2
,gcloud container bare-metal clusters update example_cluster
--metal-lb-address-pools 'pool=pool1,avoid-buggy-ips=True,manual-assign=True,addresses=192.168.1.1/32;192.168.1.2-192.168.1.3' --metal-lb-address-pools 'pool=pool2,avoid-buggy-ips=False,manual-assign=False,addresses=192.168.2.1/32;192.168.2.2-192.168.2.3'Use quote around the flag value to escape semicolon in the terminal.
-
Anthos on bare metal node pool configuration for MetalLB load balancer nodes.
-
MetalLB Node Pool configuration.
-
Populate MetalLB load balancer node config.
At most one of these can be specified:
--metal-lb-load-balancer-node-configs
=[labels
=LABELS
],[node-ip
=NODE-IP
]- MetalLB load balancer node configuration.
--metal-lb-load-balancer-node-labels
=[KEY
=VALUE
,…]- Labels assigned to nodes of a MetalLB node pool.
--metal-lb-load-balancer-node-taints
=[KEY
=VALUE
:EFFECT
,…]- Node taint applied to every node in a MetalLB node pool.
-
Modifiable kubelet configurations for bare metal machines.
--metal-lb-load-balancer-registry-burst
=METAL_LB_LOAD_BALANCER_REGISTRY_BURST
- Maximum size of bursty pulls, temporarily allow pulls to burst to this number, while still not exceeding registry_pull_qps.
--metal-lb-load-balancer-registry-pull-qps
=METAL_LB_LOAD_BALANCER_REGISTRY_PULL_QPS
- Limit of registry pulls per second.
-
At most one of these can be specified:
--disable-metal-lb-load-balancer-serialize-image-pulls
- If set, prevent the Kubelet from pulling multiple images at a time.
--enable-metal-lb-load-balancer-serialize-image-pulls
- If set, enable the Kubelet to pull multiple images at a time.
-
Populate MetalLB load balancer node config.
-
MetalLB Node Pool configuration.
-
MetalLB address pools configuration.
-
BGP load balancer configuration.
-
Populate one of the load balancers.
-
Anthos on bare metal cluster network configurations.
-
Populate one of the network configs.
-
Island mode CIDR network configuration.
--island-mode-service-address-cidr-blocks
=SERVICE_ADDRESS
,[…]- IPv4 address range for all services in the cluster.
-
Island mode CIDR network configuration.
-
SR-IOV networking operator configurations.
-
At most one of these can be specified:
--disable-sr-iov-config
- If set, the SR-IOV operator won't be installed.
--enable-sr-iov-config
- If set, install the SR-IOV operator.
-
At most one of these can be specified:
-
Populate one of the network configs.
-
Anthos on bare metal cluster security configuration.
- GCLOUD WIDE FLAGS
-
These flags are available to all commands:
--access-token-file
,--account
,--billing-project
,--configuration
,--flags-file
,--flatten
,--format
,--help
,--impersonate-service-account
,--log-http
,--project
,--quiet
,--trace-token
,--user-output-enabled
,--verbosity
.Run
$ gcloud help
for details. - NOTES
-
These variants are also available:
gcloud alpha container bare-metal clusters update
gcloud beta container bare-metal clusters update
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-02-06 UTC.