ComputeHealthCheck
| Property | Value | 
|---|---|
| Google Cloud Service Name | Compute Engine | 
| Google Cloud Service Documentation | /compute/docs/ | 
| Google Cloud REST Resource Name | v1.healthChecks v1.regionHealthChecks | 
| Google Cloud REST Resource Documentation | /compute/docs/reference/rest/v1/healthChecks /compute/docs/reference/rest/v1/regionHealthChecks | 
| Config Connector Resource Short Names | gcpcomputehealthcheck gcpcomputehealthchecks computehealthcheck | 
| Config Connector Service Name | compute.googleapis.com | 
| Config Connector Resource Fully Qualified Name | computehealthchecks.compute.cnrm.cloud.google.com | 
| Can Be Referenced by IAMPolicy/IAMPolicyMember | No | 
| Config Connector Default Average Reconcile Interval In Seconds | 600 | 
ComputeHealthCheck can manage both global and regional health checks. To manage a global ComputeHealthCheck use a value of global in the spec.location field. To manage a regional ComputeHealthCheck, use a region name in the spec.location field.
Custom Resource Definition Properties
Annotations
| Fields | |
|---|---|
| cnrm.cloud.google.com/project-id | |
Spec
Schema
checkIntervalSec: integer description: string grpcHealthCheck:  grpcServiceName: string  port: integer  portName: string  portSpecification: string healthyThreshold: integer http2HealthCheck:  host: string  port: integer  portName: string  portSpecification: string  proxyHeader: string  requestPath: string  response: string httpHealthCheck:  host: string  port: integer  portName: string  portSpecification: string  proxyHeader: string  requestPath: string  response: string httpsHealthCheck:  host: string  port: integer  portName: string  portSpecification: string  proxyHeader: string  requestPath: string  response: string location: string logConfig:  enable: boolean resourceID: string sslHealthCheck:  port: integer  portName: string  portSpecification: string  proxyHeader: string  request: string  response: string tcpHealthCheck:  port: integer  portName: string  portSpecification: string  proxyHeader: string  request: string  response: string timeoutSec: integer unhealthyThreshold: integer | Fields | |
|---|---|
| 
 Optional | 
 How often (in seconds) to send a health check. The default value is 5 seconds. | 
| 
 Optional | 
 An optional description of this resource. Provide this property when you create the resource. | 
| 
 Optional | 
 A nested object resource. | 
| 
 Optional | 
 The gRPC service name for the health check. The value of grpcServiceName has the following meanings by convention: - Empty serviceName means the overall status of all services at the backend. - Non-empty serviceName means the health of that gRPC service, as defined by the owner of the service. The grpcServiceName can only be ASCII. | 
| 
 Optional | 
 The port number for the health check request. Must be specified if portName and portSpecification are not set or if port_specification is USE_FIXED_PORT. Valid values are 1 through 65535. | 
| 
 Optional | 
 Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence. | 
| 
 Optional | 
 Specifies how port is selected for health checking, can be one of the following values: * 'USE_FIXED_PORT': The port number in 'port' is used for health checking. * 'USE_NAMED_PORT': The 'portName' is used for health checking. * 'USE_SERVING_PORT': For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking. If not specified, gRPC health check follows behavior specified in 'port' and 'portName' fields. Possible values: ["USE_FIXED_PORT", "USE_NAMED_PORT", "USE_SERVING_PORT"]. | 
| 
 Optional | 
 A so-far unhealthy instance will be marked healthy after this many consecutive successes. The default value is 2. | 
| 
 Optional | 
 A nested object resource. | 
| 
 Optional | 
 The value of the host header in the HTTP2 health check request. If left empty (default value), the public IP on behalf of which this health check is performed will be used. | 
| 
 Optional | 
 The TCP port number for the HTTP2 health check request. The default value is 443. | 
| 
 Optional | 
 Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence. | 
| 
 Optional | 
 Specifies how port is selected for health checking, can be one of the following values: * 'USE_FIXED_PORT': The port number in 'port' is used for health checking. * 'USE_NAMED_PORT': The 'portName' is used for health checking. * 'USE_SERVING_PORT': For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking. If not specified, HTTP2 health check follows behavior specified in 'port' and 'portName' fields. Possible values: ["USE_FIXED_PORT", "USE_NAMED_PORT", "USE_SERVING_PORT"]. | 
| 
 Optional | 
 Specifies the type of proxy header to append before sending data to the backend. Default value: "NONE" Possible values: ["NONE", "PROXY_V1"]. | 
| 
 Optional | 
 The request path of the HTTP2 health check request. The default value is /. | 
| 
 Optional | 
 The bytes to match against the beginning of the response data. If left empty (the default value), any response will indicate health. The response data can only be ASCII. | 
| 
 Optional | 
 A nested object resource. | 
| 
 Optional | 
 The value of the host header in the HTTP health check request. If left empty (default value), the public IP on behalf of which this health check is performed will be used. | 
| 
 Optional | 
 The TCP port number for the HTTP health check request. The default value is 80. | 
| 
 Optional | 
 Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence. | 
| 
 Optional | 
 Specifies how port is selected for health checking, can be one of the following values: * 'USE_FIXED_PORT': The port number in 'port' is used for health checking. * 'USE_NAMED_PORT': The 'portName' is used for health checking. * 'USE_SERVING_PORT': For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking. If not specified, HTTP health check follows behavior specified in 'port' and 'portName' fields. Possible values: ["USE_FIXED_PORT", "USE_NAMED_PORT", "USE_SERVING_PORT"]. | 
| 
 Optional | 
 Specifies the type of proxy header to append before sending data to the backend. Default value: "NONE" Possible values: ["NONE", "PROXY_V1"]. | 
| 
 Optional | 
 The request path of the HTTP health check request. The default value is /. | 
| 
 Optional | 
 The bytes to match against the beginning of the response data. If left empty (the default value), any response will indicate health. The response data can only be ASCII. | 
| 
 Optional | 
 A nested object resource. | 
| 
 Optional | 
 The value of the host header in the HTTPS health check request. If left empty (default value), the public IP on behalf of which this health check is performed will be used. | 
| 
 Optional | 
 The TCP port number for the HTTPS health check request. The default value is 443. | 
| 
 Optional | 
 Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence. | 
| 
 Optional | 
 Specifies how port is selected for health checking, can be one of the following values: * 'USE_FIXED_PORT': The port number in 'port' is used for health checking. * 'USE_NAMED_PORT': The 'portName' is used for health checking. * 'USE_SERVING_PORT': For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking. If not specified, HTTPS health check follows behavior specified in 'port' and 'portName' fields. Possible values: ["USE_FIXED_PORT", "USE_NAMED_PORT", "USE_SERVING_PORT"]. | 
| 
 Optional | 
 Specifies the type of proxy header to append before sending data to the backend. Default value: "NONE" Possible values: ["NONE", "PROXY_V1"]. | 
| 
 Optional | 
 The request path of the HTTPS health check request. The default value is /. | 
| 
 Optional | 
 The bytes to match against the beginning of the response data. If left empty (the default value), any response will indicate health. The response data can only be ASCII. | 
| 
 Required | 
 Location represents the geographical location of the ComputeHealthCheck. Specify a region name or "global" for global resources. Reference: GCP definition of regions/zones (https://cloud.google.com/compute/docs/regions-zones/) | 
| 
 Optional | 
 Configure logging on this health check. | 
| 
 Optional | 
 Indicates whether or not to export logs. This is false by default, which means no health check logging will be done. | 
| 
 Optional | 
 Immutable. Optional. The name of the resource. Used for creation and acquisition. When unset, the value of `metadata.name` is used as the default. | 
| 
 Optional | 
 A nested object resource. | 
| 
 Optional | 
 The TCP port number for the SSL health check request. The default value is 443. | 
| 
 Optional | 
 Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence. | 
| 
 Optional | 
 Specifies how port is selected for health checking, can be one of the following values: * 'USE_FIXED_PORT': The port number in 'port' is used for health checking. * 'USE_NAMED_PORT': The 'portName' is used for health checking. * 'USE_SERVING_PORT': For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking. If not specified, SSL health check follows behavior specified in 'port' and 'portName' fields. Possible values: ["USE_FIXED_PORT", "USE_NAMED_PORT", "USE_SERVING_PORT"]. | 
| 
 Optional | 
 Specifies the type of proxy header to append before sending data to the backend. Default value: "NONE" Possible values: ["NONE", "PROXY_V1"]. | 
| 
 Optional | 
 The application data to send once the SSL connection has been established (default value is empty). If both request and response are empty, the connection establishment alone will indicate health. The request data can only be ASCII. | 
| 
 Optional | 
 The bytes to match against the beginning of the response data. If left empty (the default value), any response will indicate health. The response data can only be ASCII. | 
| 
 Optional | 
 A nested object resource. | 
| 
 Optional | 
 The TCP port number for the TCP health check request. The default value is 443. | 
| 
 Optional | 
 Port name as defined in InstanceGroup#NamedPort#name. If both port and port_name are defined, port takes precedence. | 
| 
 Optional | 
 Specifies how port is selected for health checking, can be one of the following values: * 'USE_FIXED_PORT': The port number in 'port' is used for health checking. * 'USE_NAMED_PORT': The 'portName' is used for health checking. * 'USE_SERVING_PORT': For NetworkEndpointGroup, the port specified for each network endpoint is used for health checking. For other backends, the port or named port specified in the Backend Service is used for health checking. If not specified, TCP health check follows behavior specified in 'port' and 'portName' fields. Possible values: ["USE_FIXED_PORT", "USE_NAMED_PORT", "USE_SERVING_PORT"]. | 
| 
 Optional | 
 Specifies the type of proxy header to append before sending data to the backend. Default value: "NONE" Possible values: ["NONE", "PROXY_V1"]. | 
| 
 Optional | 
 The application data to send once the TCP connection has been established (default value is empty). If both request and response are empty, the connection establishment alone will indicate health. The request data can only be ASCII. | 
| 
 Optional | 
 The bytes to match against the beginning of the response data. If left empty (the default value), any response will indicate health. The response data can only be ASCII. | 
| 
 Optional | 
 How long (in seconds) to wait before claiming failure. The default value is 5 seconds. It is invalid for timeoutSec to have greater value than checkIntervalSec. | 
| 
 Optional | 
 A so-far healthy instance will be marked unhealthy after this many consecutive failures. The default value is 2. | 
Status
Schema
conditions: - lastTransitionTime: string  message: string  reason: string  status: string  type: string creationTimestamp: string observedGeneration: integer selfLink: string type: string | Fields | |
|---|---|
| conditions | 
 Conditions represent the latest available observation of the resource's current state. | 
| conditions[] | 
 | 
| conditions[].lastTransitionTime | 
 Last time the condition transitioned from one status to another. | 
| conditions[].message | 
 Human-readable message indicating details about last transition. | 
| conditions[].reason | 
 Unique, one-word, CamelCase reason for the condition's last transition. | 
| conditions[].status | 
 Status is the status of the condition. Can be True, False, Unknown. | 
| conditions[].type | 
 Type is the type of the condition. | 
| creationTimestamp | 
 Creation timestamp in RFC3339 text format. | 
| observedGeneration | 
 ObservedGeneration is the generation of the resource that was most recently observed by the Config Connector controller. If this is equal to metadata.generation, then that means that the current reported status reflects the most recent desired state of the resource. | 
| selfLink | 
 | 
| type | 
 The type of the health check. One of HTTP, HTTPS, TCP, or SSL. | 
Sample YAML(s)
Global Health Check
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. apiVersion: compute.cnrm.cloud.google.com/v1beta1 kind: ComputeHealthCheck metadata:  name: computehealthcheck-sample-global spec:  checkIntervalSec: 10  httpHealthCheck:  port: 80  location: global Regional Health Check
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. apiVersion: compute.cnrm.cloud.google.com/v1beta1 kind: ComputeHealthCheck metadata:  name: computehealthcheck-sample-regional spec:  checkIntervalSec: 10  httpHealthCheck:  port: 80  location: us-central1