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
Copy file name to clipboardExpand all lines: content/en/docs/concepts/services-networking/dns-pod-service.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -213,7 +213,7 @@ When you set `setHostnameAsFQDN: true` in the Pod spec, the kubelet writes the P
213
213
{{< note >}}
214
214
In Linux, the hostname field of the kernel (the `nodename` field of `struct utsname`) is limited to 64 characters.
215
215
216
-
If a Pod enables this feature and its FQDN is longer than 64 character, it will fail to start. The Pod will remain in `Pending` status (`ContainerCreating` as seen by `kubectl`) generating error events, such as Failed to construct FQDN from Pod hostname and cluster domain, FQDN `long-FQDN` is too long (64 characters is the max, 70 characters requested). One way of improving user experience for this scenario is to create an [admission webhook controller](/docs/reference/access-authn-authz/extensible-admission-controllers/#admission-webhooks) to control FQDN size when users create top level objects, for example, Deployment.
216
+
If a Pod enables this feature and its FQDN is longer than 64 character, it will fail to start. The Pod will remain in `Pending` status (`ContainerCreating` as seen by `kubectl`) generating error events, such as Failed to construct FQDN from Pod hostname and cluster domain, FQDN `long-FQDN` is too long (64 characters is the max, 70 characters requested). One way of improving user experience for this scenario is to create an [admission webhook controller](/docs/reference/access-authn-authz/extensible-admission-controllers/#what-are-admission-webhooks) to control FQDN size when users create top level objects, for example, Deployment.
Copy file name to clipboardExpand all lines: content/en/docs/reference/command-line-tools-reference/feature-gates/default-host-network-ports-in-pod-templates.md
+8-5Lines changed: 8 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,9 +10,12 @@ stages:
10
10
defaultValue: false
11
11
fromVersion: "1.28"
12
12
---
13
-
Changes when the default value of
14
-
`PodSpec.containers[*].ports[*].hostPort`
15
-
is assigned. The default is to only set a default value in Pods.
13
+
This feature gate controls the point at which a default value for
14
+
`.spec.containers[*].ports[*].hostPort`
15
+
is assigned, for Pods using `hostNetwork: true`. The default since Kubernetes v1.28 is to only set a default
16
+
value in Pods.
16
17
17
-
Enabling this means a default will be assigned even to embedded
18
-
PodSpecs (e.g. in a Deployment), which is the historical default.
18
+
Enabling this means a default will be assigned even to the `.spec` of an embedded
19
+
[PodTemplate](/docs/concepts/workloads/pods/#pod-templates) (for example, in a Deployment),
20
+
which is the way that older releases of Kubernetes worked.
21
+
You should migrate your code so that it does not rely on the legacy behavior.
|[Standard functions](https://github.com/google/cel-spec/blob/master/doc/langdef.md#list-of-standard-definitions)| See [official list of standard definitions](https://github.com/google/cel-spec/blob/master/doc/langdef.md#list-of-standard-definitions)| All Kubernetes versions |
72
+
|[Homogeneous Aggregate Literals](https://pkg.go.dev/github.com/google/[email protected]/cel#HomogeneousAggregateLiterals)|| All Kubernetes versions |
73
+
|[Default UTC Time Zone](https://pkg.go.dev/github.com/google/[email protected]/cel#DefaultUTCTimeZone)|| All Kubernetes versions |
74
+
|[Eagerly Validate Declarations](https://pkg.go.dev/github.com/google/[email protected]/cel#EagerlyValidateDeclarations)|| All Kubernetes versions |
75
+
|[extended strings library](https://pkg.go.dev/github.com/google/cel-go/ext#Strings), Version 1 |`charAt`, `indexOf`, `lastIndexOf`, `lowerAscii`, `upperAscii`, `replace`, `split`, `join`, `substring`, `trim`| All Kubernetes versions |
76
+
| Kubernetes list library | See [Kubernetes list library](#kubernetes-list-library)| All Kubernetes versions |
77
+
| Kubernetes regex library | See [Kubernetes regex library](#kubernetes-regex-library)| All Kubernetes versions |
78
+
| Kubernetes URL library | See [Kubernetes URL library](#kubernetes-url-library)| All Kubernetes versions |
79
+
| Kubernetes authorizer library | See [Kubernetes authorizer library](#kubernetes-authorizer-library)| All Kubernetes versions |
|`isInteger()`| bool | returns true if and only if asInteger is safe to call without an error |
220
+
|`asInteger()`| int | returns a representation of the current value as an int64 if possible or results in an error if conversion would result in overflow or loss of precision. |
221
+
|`asApproximateFloat()`| float | returns a float64 representation of the quantity which may lose precision. If the value of the quantity is outside the range of a float64 +Inf/-Inf will be returned. |
222
+
|`sign()`| int | Returns `1` if the quantity is positive, `-1` if it is negative. `0` if it is zero |
223
+
|`add(<Quantity>)`| Quantity | Returns sum of two quantities |
224
+
|`add(<int>)`| Quantity | Returns sum of quantity and an integer |
225
+
|`sub(<Quantity>)`| Quantity | Returns difference between two quantities |
226
+
|`sub(<int>)`| Quantity | Returns difference between a quantity and an integer |
227
+
|`isLessThan(<Quantity>)`| bool | Returns true if and only if the receiver is less than the operand |
228
+
|`isGreaterThan(<Quantity>)`| bool | Returns true if and only if the receiver is greater than the operand |
229
+
|`compareTo(<Quantity>)`| int | Compares receiver to operand and returns 0 if they are equal, 1 if the receiver is greater, or -1 if the receiver is less than the operand |
230
+
{{< /table >}}
231
+
232
+
Examples:
233
+
234
+
{{< table caption="Examples of CEL expressions using URL library functions" >}}
0 commit comments