- NAME
-
- gcloud alpha compute health-checks create https - create a HTTPS health check to monitor load balanced instances
- SYNOPSIS
-
-
gcloud alpha compute health-checks create https
NAME
[--check-interval
=CHECK_INTERVAL
; default="5s"] [--description
=DESCRIPTION
] [--enable-logging
] [--healthy-threshold
=HEALTHY_THRESHOLD
; default=2] [--host
=HOST
] [--proxy-header
=PROXY_HEADER
; default="NONE"] [--request-path
=REQUEST_PATH
; default="/"] [--response
=RESPONSE
] [--source-regions
=REGION
,…,[…]] [--timeout
=TIMEOUT
; default="5s"] [--unhealthy-threshold
=UNHEALTHY_THRESHOLD
; default=2] [--weight-report-mode
=WEIGHT_REPORT_MODE
] [--global
|--region
=REGION
] [--port
=PORT
; default=80--port-name
=PORT_NAME
--use-serving-port
] [GCLOUD_WIDE_FLAG …
]
-
- DESCRIPTION
-
(ALPHA)
gcloud alpha compute health-checks create https
is used to create a non-legacy health check using the HTTPS protocol. You can use this health check for Google Cloud load balancers or for managed instance group autohealing. For more information, see the health checks overview at: https://cloud.google.com/load-balancing/docs/health-check-concepts - POSITIONAL ARGUMENTS
-
NAME
- Name of the HTTPS health check to create.
- FLAGS
-
--check-interval
=CHECK_INTERVAL
; default="5s"-
How often to perform a health check for an instance. For example, specifying
will run the check every 10 seconds. The default value is10s
. See $ gcloud topic datetimes for information on duration formats.5s
--description
=DESCRIPTION
- An optional string description for the HTTPS health check.
--enable-logging
-
Enable logging of health check probe results to Stackdriver. Logging is disabled
by default.
Use --no-enable-logging to disable logging.
--healthy-threshold
=HEALTHY_THRESHOLD
; default=2- The number of consecutive successful health checks before an unhealthy instance is marked as healthy. The default is 2.
--host
=HOST
- The value of the host header used for the health check. If unspecified, Google Cloud sets the host header to the IP address of the load balancer's forwarding rule.
--proxy-header
=PROXY_HEADER
; default="NONE"-
The type of proxy protocol header to be sent to the backend.
PROXY_HEADER
must be one of:NONE
- No proxy header is added.
PROXY_V1
- Adds the header "PROXY UNKNOWN\r\n".
--request-path
=REQUEST_PATH
; default="/"-
The request path that this health check monitors. For example,
. The default value is ``/´´./healthcheck
--response
=RESPONSE
- When empty, status code of the response determines health. When not empty, presence of specified string in first 1024 characters of response body determines health. Only ASCII characters allowed.
--source-regions
=REGION
,…,[…]-
Define the list of Google Cloud regions from which health checks are performed.
This option is supported only for global health checks that will be referenced
by DNS routing policies. If specified, the --check-interval field should be at
least 30 seconds. The --proxy-header and --request fields (for TCP health
checks) are not supported with this option.
If --source-regions is specified for a health check, then that health check cannot be used by a backend service or by a managed instance group (for autohealing).
--timeout
=TIMEOUT
; default="5s"-
If Google Compute Engine doesn't receive a healthy response from the instance by
the time specified by the value of this flag, the health check request is
considered a failure. For example, specifying
will cause the check to wait for 10 seconds before considering the request a failure. The default value is10s
. See $ gcloud topic datetimes for information on duration formats.5s
--unhealthy-threshold
=UNHEALTHY_THRESHOLD
; default=2- The number of consecutive health check failures before a healthy instance is marked as unhealthy. The default is 2.
--weight-report-mode
=WEIGHT_REPORT_MODE
-
Defines whether Weighted Load Balancing is enabled.
WEIGHT_REPORT_MODE
must be one of:ENABLE
,DISABLE
,DRY_RUN
. -
At most one of these can be specified:
--global
- If set, the HTTPS health check is global.
--region
=REGION
-
Region of the HTTPS health check to create. If not specified, you might be
prompted to select a region (interactive mode only).
To avoid prompting when this flag is omitted, you can set the
property:compute/region
gcloud config set compute/region REGION
A list of regions can be fetched by running:
gcloud compute regions list
To unset the property, run:
gcloud config unset compute/region
Alternatively, the region can be stored in the environment variable
.CLOUDSDK_COMPUTE_REGION
-
These flags configure the port that the health check monitors. If none is
specified, the default port of 80 is used. If both
--port
and--port-name
are specified,--port
takes precedence.--port
=PORT
; default=80- The TCP port number that this health check monitors.
--port-name
=PORT_NAME
- The port name that this health check monitors. By default, this is empty.
--use-serving-port
-
If given, use the "serving port" for health checks:
-
When health checking network endpoints in a Network Endpoint Group, use the port
specified with each endpoint.
--use-serving-port
must be used when using a Network Endpoint Group as a backend as this flag specifies theportSpecification
option for a Health Check object. - When health checking other backends, use the port or named port of the backend service.
-
When health checking network endpoints in a Network Endpoint Group, use the port
specified with each endpoint.
- 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
-
This command is currently in alpha and might change without notice. If this
command fails with API permission errors despite specifying the correct project,
you might be trying to access an API with an invitation-only early access
allowlist. These variants are also available:
gcloud compute health-checks create https
gcloud beta compute health-checks create https
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-08-06 UTC.