-
Notifications
You must be signed in to change notification settings - Fork 336
Adds fields for PassiveHealthCheck on IngressGateway #2796
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
c0dce33
0610f33
d11b634
42e4b7d
8a228c9
b9a8f85
37379ec
60c9285
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| ```release-note:bug | ||
| ingress-gateway: Adds missing PassiveHealthCheck to IngressGateways CRD and updates missing fields on ServiceDefaults CRD | ||
| ``` |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,6 @@ | ||
| # Copyright (c) HashiCorp, Inc. | ||
| # SPDX-License-Identifier: MPL-2.0 | ||
|
|
||
| apiVersion: batch/v1 | ||
| kind: Job | ||
| metadata: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,6 @@ | ||
| # Copyright (c) HashiCorp, Inc. | ||
| # SPDX-License-Identifier: MPL-2.0 | ||
|
|
||
| apiVersion: v1 | ||
| kind: Service | ||
| metadata: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,6 @@ | ||
| # Copyright (c) HashiCorp, Inc. | ||
| # SPDX-License-Identifier: MPL-2.0 | ||
|
|
||
|
|
||
| resources: | ||
| - ../../../bases/job-client | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,6 @@ | ||
| # Copyright (c) HashiCorp, Inc. | ||
| # SPDX-License-Identifier: MPL-2.0 | ||
|
|
||
| apiVersion: batch/v1 | ||
| kind: Job | ||
| metadata: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,6 @@ | ||
| # Copyright (c) HashiCorp, Inc. | ||
| # SPDX-License-Identifier: MPL-2.0 | ||
|
|
||
|
|
||
| resources: | ||
| - ../../../bases/job-client | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,6 @@ | ||
| # Copyright (c) HashiCorp, Inc. | ||
| # SPDX-License-Identifier: MPL-2.0 | ||
|
|
||
| apiVersion: batch/v1 | ||
| kind: Job | ||
| metadata: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,6 @@ | ||
| # Copyright (c) HashiCorp, Inc. | ||
| # SPDX-License-Identifier: MPL-2.0 | ||
|
|
||
| apiVersion: batch/v1 | ||
| kind: Job | ||
| metadata: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -81,6 +81,43 @@ spec: | |
| while waiting for a connection to be established. | ||
| format: int32 | ||
| type: integer | ||
| passiveHealthCheck: | ||
| description: PassiveHealthCheck configuration determines how upstream | ||
| proxy instances will be monitored for removal from the load | ||
| balancing pool. | ||
| properties: | ||
| baseEjectionTime: | ||
| description: The base time that a host is ejected for. The | ||
| real time is equal to the base time multiplied by the number | ||
| of times the host has been ejected and is capped by max_ejection_time | ||
| (Default 300s). Defaults to 30s. | ||
| type: string | ||
| enforcingConsecutive5xx: | ||
| description: EnforcingConsecutive5xx is the % chance that | ||
| a host will be actually ejected when an outlier status is | ||
| detected through consecutive 5xx. This setting can be used | ||
| to disable ejection or to ramp it up slowly. Ex. Setting | ||
| this to 10 will make it a 10% chance that the host will | ||
| be ejected. | ||
| format: int32 | ||
| type: integer | ||
| interval: | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How is this string to be formatted?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure what would actually apply here: https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#format
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For this, I would add an example. I think the answer is something like "10s" as the way the input should be formatted.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||
| description: Interval between health check analysis sweeps. | ||
| Each sweep may remove hosts or return hosts to the pool. | ||
| Ex. setting this to "10s" will set the interval to 10 seconds. | ||
| type: string | ||
| maxEjectionPercent: | ||
| description: The maximum % of an upstream cluster that can | ||
| be ejected due to outlier detection. Defaults to 10% but | ||
| will eject at least one host regardless of the value. | ||
| format: int32 | ||
| type: integer | ||
| maxFailures: | ||
| description: MaxFailures is the count of consecutive failures | ||
| that results in a host being removed from the pool. | ||
| format: int32 | ||
| type: integer | ||
| type: object | ||
| type: object | ||
| listeners: | ||
| description: Listeners declares what ports the ingress gateway should | ||
|
|
@@ -160,6 +197,47 @@ spec: | |
| service is located. Partitioning is a Consul Enterprise | ||
| feature. | ||
| type: string | ||
| passiveHealthCheck: | ||
| description: PassiveHealthCheck configuration determines | ||
| how upstream proxy instances will be monitored for removal | ||
| from the load balancing pool. | ||
| properties: | ||
| baseEjectionTime: | ||
| description: The base time that a host is ejected | ||
| for. The real time is equal to the base time multiplied | ||
| by the number of times the host has been ejected | ||
| and is capped by max_ejection_time (Default 300s). | ||
| Defaults to 30s. | ||
| type: string | ||
| enforcingConsecutive5xx: | ||
| description: EnforcingConsecutive5xx is the % chance | ||
| that a host will be actually ejected when an outlier | ||
| status is detected through consecutive 5xx. This | ||
| setting can be used to disable ejection or to ramp | ||
| it up slowly. Ex. Setting this to 10 will make it | ||
| a 10% chance that the host will be ejected. | ||
| format: int32 | ||
| type: integer | ||
| interval: | ||
| description: Interval between health check analysis | ||
| sweeps. Each sweep may remove hosts or return hosts | ||
| to the pool. Ex. setting this to "10s" will set | ||
| the interval to 10 seconds. | ||
| type: string | ||
| maxEjectionPercent: | ||
| description: The maximum % of an upstream cluster | ||
| that can be ejected due to outlier detection. Defaults | ||
| to 10% but will eject at least one host regardless | ||
| of the value. | ||
| format: int32 | ||
| type: integer | ||
| maxFailures: | ||
| description: MaxFailures is the count of consecutive | ||
| failures that results in a host being removed from | ||
| the pool. | ||
| format: int32 | ||
| type: integer | ||
| type: object | ||
| requestHeaders: | ||
| description: Allow HTTP header manipulation to be configured. | ||
| properties: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -163,15 +163,6 @@ spec: | |
| type: string | ||
| type: array | ||
| type: object | ||
| prioritizeByLocality: | ||
| description: PrioritizeByLocality contains the configuration for | ||
| locality aware routing. | ||
| properties: | ||
| mode: | ||
| description: Mode specifies the behavior of PrioritizeByLocality | ||
| routing. Valid values are "", "none", and "failover". | ||
| type: string | ||
| type: object | ||
| meshGateway: | ||
| description: MeshGateway controls the default mesh gateway configuration | ||
| for this service. | ||
|
|
@@ -204,6 +195,16 @@ spec: | |
| your services secure, we recommend using "strict" mode whenever | ||
| possible and enabling "permissive" mode only when necessary.' | ||
| type: string | ||
| prioritizeByLocality: | ||
| description: PrioritizeByLocality controls whether the locality of | ||
| services within the local partition will be used to prioritize connectivity. | ||
| properties: | ||
| mode: | ||
| description: 'Mode specifies the type of prioritization that will | ||
| be performed when selecting nodes in the local partition. Valid | ||
| values are: "" (default "none"), "none", and "failover".' | ||
| type: string | ||
| type: object | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just wanted to add that this should be fine; I didn’t understand how to properly generate changes to this CRD in my first PR updating it and was going to circle back to fix this. |
||
| transparentProxy: | ||
| description: 'TransparentProxy controls configuration specific to | ||
| proxies in transparent mode. Note: This cannot be set using the | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.