@@ -37,6 +37,23 @@ to others, please don't hesitate to file an issue or submit a PR.
37
37
38
38
- Put object descriptions in annotations, to allow better introspection.
39
39
40
+ {{< note >}}
41
+ There is a breaking change introduced in the [ YAML 1.2] ( https://yaml.org/spec/1.2.0/#id2602744 )
42
+ boolean values specification with respect to [ YAML 1.1] ( https://yaml.org/spec/1.1/#id864510 ) .
43
+ This is a known [ issue] ( https://github.com/kubernetes/kubernetes/issues/34146 ) in Kubernetes.
44
+ YAML 1.2 only recognizes ** true** and ** false** as valid booleans, while YAML 1.1 also accepts
45
+ ** yes** , ** no** , ** on** , and ** off** as booleans. However, Kubernetes uses YAML
46
+ [ parsers] ( https://github.com/kubernetes/kubernetes/issues/34146#issuecomment-252692024 ) that are
47
+ mostly compatible with YAML 1.1, which means that using ** yes** or ** no** instead of ** true** or
48
+ ** false** in a YAML manifest may cause unexpected errors or behaviors. To avoid this issue, it is
49
+ recommended to always use ** true** or ** false** for boolean values in YAML manifests, and to quote
50
+ any strings that may be confused with booleans, such as ** "yes"** or ** "no"** .
51
+
52
+ Besides booleans, there are additional specifications changes between YAML versions. Please refer
53
+ to the [ YAML Specification Changes] ( https://spec.yaml.io/main/spec/1.2.2/ext/changes ) documentation
54
+ for a comprehensive list.
55
+ {{< /note >}}
56
+
40
57
## "Naked" Pods versus ReplicaSets, Deployments, and Jobs {#naked-pods-vs-replicasets-deployments-and-jobs}
41
58
42
59
- Don't use naked Pods (that is, Pods not bound to a [ ReplicaSet] ( /docs/concepts/workloads/controllers/replicaset/ ) or
@@ -135,4 +152,3 @@ to others, please don't hesitate to file an issue or submit a PR.
135
152
Deployments and Services.
136
153
See [ Use a Service to Access an Application in a Cluster] ( /docs/tasks/access-application-cluster/service-access-application-cluster/ )
137
154
for an example.
138
-
0 commit comments