You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a new optional attribute `grpc` to `pod.spec.container.liveness_probe`, `pod.spec.container.readiness_probe`, and `pod.spec.container.startup_probe`. That affects all resources and data sources that use mentioned `pod.spec.container` probes directly or as a template.
Description: "GRPC specifies an action involving a GRPC port.",
667
+
Elem: &schema.Resource{
668
+
Schema: map[string]*schema.Schema{
669
+
"port": {
670
+
Type: schema.TypeInt,
671
+
Required: true,
672
+
ValidateFunc: validatePortNum,
673
+
Description: "Number of the port to access on the container. Number must be in the range 1 to 65535.",
674
+
},
675
+
"service": {
676
+
Type: schema.TypeString,
677
+
Optional: true,
678
+
Description: "Name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this is not specified, the default behavior is defined by gRPC.",
Copy file name to clipboardExpand all lines: website/docs/d/pod.html.markdown
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -180,6 +180,13 @@ The `option` block supports the following:
180
180
181
181
*`command` - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
182
182
183
+
### `grpc`
184
+
185
+
#### Arguments
186
+
187
+
*`port` - Number of the port to access on the container. Number must be in the range 1 to 65535.
188
+
*`service` - Name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this is not specified, the default behavior is defined by gRPC.
189
+
183
190
### `image_pull_secrets`
184
191
185
192
#### Attributes
@@ -207,6 +214,7 @@ The `option` block supports the following:
207
214
*`exec` - exec specifies the action to take.
208
215
*`failure_threshold` - Minimum consecutive failures for the probe to be considered failed after having succeeded.
209
216
*`http_get` - Specifies the http request to perform.
217
+
*`grpc` - GRPC specifies an action involving a GRPC port.
210
218
*`initial_delay_seconds` - Number of seconds after the container has started before liveness probes are initiated. For more info see [Kubernetes reference](http://kubernetes.io/docs/user-guide/pod-states#container-probes)
211
219
*`period_seconds` - How often (in seconds) to perform the probe
212
220
*`success_threshold` - Minimum consecutive successes for the probe to be considered successful after having failed.
@@ -290,6 +298,7 @@ The `option` block supports the following:
290
298
291
299
*`exec` - exec specifies the action to take.
292
300
*`failure_threshold` - Minimum consecutive failures for the probe to be considered failed after having succeeded.
301
+
*`grpc` - GRPC specifies an action involving a GRPC port.
293
302
*`http_get` - Specifies the http request to perform.
294
303
*`initial_delay_seconds` - Number of seconds after the container has started before readiness probes are initiated. For more info see [Kubernetes reference](http://kubernetes.io/docs/user-guide/pod-states#container-probes)
295
304
*`period_seconds` - How often (in seconds) to perform the probe
Copy file name to clipboardExpand all lines: website/docs/d/pod_v1.html.markdown
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -180,6 +180,13 @@ The `option` block supports the following:
180
180
181
181
*`command` - Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.
182
182
183
+
### `grpc`
184
+
185
+
#### Arguments
186
+
187
+
*`port` - Number of the port to access on the container. Number must be in the range 1 to 65535.
188
+
*`service` - Name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this is not specified, the default behavior is defined by gRPC.
189
+
183
190
### `image_pull_secrets`
184
191
185
192
#### Attributes
@@ -206,6 +213,7 @@ The `option` block supports the following:
206
213
207
214
*`exec` - exec specifies the action to take.
208
215
*`failure_threshold` - Minimum consecutive failures for the probe to be considered failed after having succeeded.
216
+
*`grpc` - GRPC specifies an action involving a GRPC port.
209
217
*`http_get` - Specifies the http request to perform.
210
218
*`initial_delay_seconds` - Number of seconds after the container has started before liveness probes are initiated. For more info see [Kubernetes reference](http://kubernetes.io/docs/user-guide/pod-states#container-probes)
211
219
*`period_seconds` - How often (in seconds) to perform the probe
@@ -290,6 +298,7 @@ The `option` block supports the following:
290
298
291
299
*`exec` - exec specifies the action to take.
292
300
*`failure_threshold` - Minimum consecutive failures for the probe to be considered failed after having succeeded.
301
+
*`grpc` - GRPC specifies an action involving a GRPC port.
293
302
*`http_get` - Specifies the http request to perform.
294
303
*`initial_delay_seconds` - Number of seconds after the container has started before readiness probes are initiated. For more info see [Kubernetes reference](http://kubernetes.io/docs/user-guide/pod-states#container-probes)
295
304
*`period_seconds` - How often (in seconds) to perform the probe
Copy file name to clipboardExpand all lines: website/docs/r/daemon_set_v1.html.markdown
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -474,6 +474,13 @@ The `option` block supports the following:
474
474
*`path` - (Required) The Glusterfs volume path. For more info see https://github.com/kubernetes/examples/tree/master/volumes/glusterfs#create-a-pod.
475
475
*`read_only` - (Optional) Whether to force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. For more info see https://github.com/kubernetes/examples/tree/master/volumes/glusterfs#create-a-pod.
476
476
477
+
### `grpc`
478
+
479
+
#### Arguments
480
+
481
+
*`port` - (Required) Number of the port to access on the container. Number must be in the range 1 to 65535.
482
+
*`service` - (Optional) Name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this is not specified, the default behavior is defined by gRPC.
483
+
477
484
### `host_aliases`
478
485
479
486
#### Arguments
@@ -543,6 +550,7 @@ The `option` block supports the following:
543
550
544
551
*`exec` - (Optional) exec specifies the action to take.
545
552
*`failure_threshold` - (Optional) Minimum consecutive failures for the probe to be considered failed after having succeeded.
553
+
*`grpc` - (Optional) GRPC specifies an action involving a GRPC port. **NOTE: This field is behind a [feature gate](https://kubernetes.io/docs/reference/command-line-tools-reference/feature-gates/) prior to v1.24**
546
554
*`http_get` - (Optional) Specifies the http request to perform.
547
555
*`initial_delay_seconds` - (Optional) Number of seconds after the container has started before liveness probes are initiated. For more info see [Kubernetes reference](http://kubernetes.io/docs/user-guide/pod-states#container-probes)
548
556
*`period_seconds` - (Optional) How often (in seconds) to perform the probe
@@ -627,6 +635,7 @@ The `option` block supports the following:
627
635
628
636
*`exec` - (Optional) exec specifies the action to take.
629
637
*`failure_threshold` - (Optional) Minimum consecutive failures for the probe to be considered failed after having succeeded.
638
+
*`grpc` - (Optional) GRPC specifies an action involving a GRPC port. **NOTE: This field is behind a [feature gate](https://kubernetes.io/docs/reference/command-line-tools-reference/feature-gates/) prior to v1.24**
630
639
*`http_get` - (Optional) Specifies the http request to perform.
631
640
*`initial_delay_seconds` - (Optional) Number of seconds after the container has started before readiness probes are initiated. For more info see [Kubernetes reference](http://kubernetes.io/docs/user-guide/pod-states#container-probes)
632
641
*`period_seconds` - (Optional) How often (in seconds) to perform the probe
Copy file name to clipboardExpand all lines: website/docs/r/daemonset.html.markdown
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -484,6 +484,13 @@ The `option` block supports the following:
484
484
*`path` - (Required) The Glusterfs volume path. For more info see https://github.com/kubernetes/examples/tree/master/volumes/glusterfs#create-a-pod.
485
485
*`read_only` - (Optional) Whether to force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. For more info see https://github.com/kubernetes/examples/tree/master/volumes/glusterfs#create-a-pod.
486
486
487
+
### `grpc`
488
+
489
+
#### Arguments
490
+
491
+
*`port` - (Required) Number of the port to access on the container. Number must be in the range 1 to 65535.
492
+
*`service` - (Optional) Name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this is not specified, the default behavior is defined by gRPC.
493
+
487
494
### `host_aliases`
488
495
489
496
#### Arguments
@@ -553,6 +560,7 @@ The `option` block supports the following:
553
560
554
561
*`exec` - (Optional) exec specifies the action to take.
555
562
*`failure_threshold` - (Optional) Minimum consecutive failures for the probe to be considered failed after having succeeded.
563
+
*`grpc` - (Optional) GRPC specifies an action involving a GRPC port. **NOTE: This field is behind a [feature gate](https://kubernetes.io/docs/reference/command-line-tools-reference/feature-gates/) prior to v1.24**
556
564
*`http_get` - (Optional) Specifies the http request to perform.
557
565
*`initial_delay_seconds` - (Optional) Number of seconds after the container has started before liveness probes are initiated. For more info see [Kubernetes reference](http://kubernetes.io/docs/user-guide/pod-states#container-probes)
558
566
*`period_seconds` - (Optional) How often (in seconds) to perform the probe
@@ -637,6 +645,7 @@ The `option` block supports the following:
637
645
638
646
*`exec` - (Optional) exec specifies the action to take.
639
647
*`failure_threshold` - (Optional) Minimum consecutive failures for the probe to be considered failed after having succeeded.
648
+
*`grpc` - (Optional) GRPC specifies an action involving a GRPC port. **NOTE: This field is behind a [feature gate](https://kubernetes.io/docs/reference/command-line-tools-reference/feature-gates/) prior to v1.24**
640
649
*`http_get` - (Optional) Specifies the http request to perform.
641
650
*`initial_delay_seconds` - (Optional) Number of seconds after the container has started before readiness probes are initiated. For more info see [Kubernetes reference](http://kubernetes.io/docs/user-guide/pod-states#container-probes)
642
651
*`period_seconds` - (Optional) How often (in seconds) to perform the probe
Copy file name to clipboardExpand all lines: website/docs/r/deployment.html.markdown
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -495,6 +495,13 @@ The `option` block supports the following:
495
495
*`path` - (Required) The Glusterfs volume path. For more info see https://github.com/kubernetes/examples/tree/master/volumes/glusterfs#create-a-pod.
496
496
*`read_only` - (Optional) Whether to force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. For more info see https://github.com/kubernetes/examples/tree/master/volumes/glusterfs#create-a-pod.
497
497
498
+
### `grpc`
499
+
500
+
#### Arguments
501
+
502
+
*`port` - (Required) Number of the port to access on the container. Number must be in the range 1 to 65535.
503
+
*`service` - (Optional) Name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this is not specified, the default behavior is defined by gRPC.
504
+
498
505
### `host_aliases`
499
506
500
507
#### Arguments
@@ -564,6 +571,7 @@ The `option` block supports the following:
564
571
565
572
*`exec` - (Optional) exec specifies the action to take.
566
573
*`failure_threshold` - (Optional) Minimum consecutive failures for the probe to be considered failed after having succeeded.
574
+
*`grpc` - (Optional) GRPC specifies an action involving a GRPC port. **NOTE: This field is behind a [feature gate](https://kubernetes.io/docs/reference/command-line-tools-reference/feature-gates/) prior to v1.24**
567
575
*`http_get` - (Optional) Specifies the http request to perform.
568
576
*`initial_delay_seconds` - (Optional) Number of seconds after the container has started before liveness probes are initiated. For more info see [Kubernetes reference](http://kubernetes.io/docs/user-guide/pod-states#container-probes)
569
577
*`period_seconds` - (Optional) How often (in seconds) to perform the probe
@@ -648,6 +656,7 @@ The `option` block supports the following:
648
656
649
657
*`exec` - (Optional) exec specifies the action to take.
650
658
*`failure_threshold` - (Optional) Minimum consecutive failures for the probe to be considered failed after having succeeded.
659
+
*`grpc` - (Optional) GRPC specifies an action involving a GRPC port. **NOTE: This field is behind a [feature gate](https://kubernetes.io/docs/reference/command-line-tools-reference/feature-gates/) prior to v1.24**
651
660
*`http_get` - (Optional) Specifies the http request to perform.
652
661
*`initial_delay_seconds` - (Optional) Number of seconds after the container has started before readiness probes are initiated. For more info see [Kubernetes reference](http://kubernetes.io/docs/user-guide/pod-states#container-probes)
653
662
*`period_seconds` - (Optional) How often (in seconds) to perform the probe
Copy file name to clipboardExpand all lines: website/docs/r/deployment_v1.html.markdown
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -485,6 +485,13 @@ The `option` block supports the following:
485
485
*`path` - (Required) The Glusterfs volume path. For more info see https://github.com/kubernetes/examples/tree/master/volumes/glusterfs#create-a-pod.
486
486
*`read_only` - (Optional) Whether to force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. For more info see https://github.com/kubernetes/examples/tree/master/volumes/glusterfs#create-a-pod.
487
487
488
+
### `grpc`
489
+
490
+
#### Arguments
491
+
492
+
*`port` - (Required) Number of the port to access on the container. Number must be in the range 1 to 65535.
493
+
*`service` - (Optional) Name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this is not specified, the default behavior is defined by gRPC.
494
+
488
495
### `host_aliases`
489
496
490
497
#### Arguments
@@ -554,6 +561,7 @@ The `option` block supports the following:
554
561
555
562
*`exec` - (Optional) exec specifies the action to take.
556
563
*`failure_threshold` - (Optional) Minimum consecutive failures for the probe to be considered failed after having succeeded.
564
+
*`grpc` - (Optional) GRPC specifies an action involving a GRPC port. **NOTE: This field is behind a [feature gate](https://kubernetes.io/docs/reference/command-line-tools-reference/feature-gates/) prior to v1.24**
557
565
*`http_get` - (Optional) Specifies the http request to perform.
558
566
*`initial_delay_seconds` - (Optional) Number of seconds after the container has started before liveness probes are initiated. For more info see [Kubernetes reference](http://kubernetes.io/docs/user-guide/pod-states#container-probes)
559
567
*`period_seconds` - (Optional) How often (in seconds) to perform the probe
@@ -638,6 +646,7 @@ The `option` block supports the following:
638
646
639
647
*`exec` - (Optional) exec specifies the action to take.
640
648
*`failure_threshold` - (Optional) Minimum consecutive failures for the probe to be considered failed after having succeeded.
649
+
*`grpc` - (Optional) GRPC specifies an action involving a GRPC port. **NOTE: This field is behind a [feature gate](https://kubernetes.io/docs/reference/command-line-tools-reference/feature-gates/) prior to v1.24**
641
650
*`http_get` - (Optional) Specifies the http request to perform.
642
651
*`initial_delay_seconds` - (Optional) Number of seconds after the container has started before readiness probes are initiated. For more info see [Kubernetes reference](http://kubernetes.io/docs/user-guide/pod-states#container-probes)
643
652
*`period_seconds` - (Optional) How often (in seconds) to perform the probe
0 commit comments