mirror of
https://github.com/outbackdingo/kubernetes.git
synced 2026-01-27 10:19:35 +00:00
Merge pull request #131458 from BenTheElder/hostnetwork-docs
document hostnetwork <> port implications
This commit is contained in:
2
api/openapi-spec/swagger.json
generated
2
api/openapi-spec/swagger.json
generated
@@ -9361,7 +9361,7 @@
|
||||
"type": "boolean"
|
||||
},
|
||||
"hostNetwork": {
|
||||
"description": "Host networking requested for this pod. Use the host's network namespace. Default to false.",
|
||||
"description": "Host networking requested for this pod. Use the host's network namespace. When using HostNetwork you should specify ports so the scheduler is aware. When `hostNetwork` is true, specified `hostPort` fields in port definitions must match `containerPort`, and unspecified `hostPort` fields in port definitions are defaulted to match `containerPort`. Default to false.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"hostPID": {
|
||||
|
||||
2
api/openapi-spec/v3/api__v1_openapi.json
generated
2
api/openapi-spec/v3/api__v1_openapi.json
generated
@@ -5591,7 +5591,7 @@
|
||||
"type": "boolean"
|
||||
},
|
||||
"hostNetwork": {
|
||||
"description": "Host networking requested for this pod. Use the host's network namespace. Default to false.",
|
||||
"description": "Host networking requested for this pod. Use the host's network namespace. When using HostNetwork you should specify ports so the scheduler is aware. When `hostNetwork` is true, specified `hostPort` fields in port definitions must match `containerPort`, and unspecified `hostPort` fields in port definitions are defaulted to match `containerPort`. Default to false.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"hostPID": {
|
||||
|
||||
2
api/openapi-spec/v3/apis__apps__v1_openapi.json
generated
2
api/openapi-spec/v3/apis__apps__v1_openapi.json
generated
@@ -3819,7 +3819,7 @@
|
||||
"type": "boolean"
|
||||
},
|
||||
"hostNetwork": {
|
||||
"description": "Host networking requested for this pod. Use the host's network namespace. Default to false.",
|
||||
"description": "Host networking requested for this pod. Use the host's network namespace. When using HostNetwork you should specify ports so the scheduler is aware. When `hostNetwork` is true, specified `hostPort` fields in port definitions must match `containerPort`, and unspecified `hostPort` fields in port definitions are defaulted to match `containerPort`. Default to false.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"hostPID": {
|
||||
|
||||
2
api/openapi-spec/v3/apis__batch__v1_openapi.json
generated
2
api/openapi-spec/v3/apis__batch__v1_openapi.json
generated
@@ -3011,7 +3011,7 @@
|
||||
"type": "boolean"
|
||||
},
|
||||
"hostNetwork": {
|
||||
"description": "Host networking requested for this pod. Use the host's network namespace. Default to false.",
|
||||
"description": "Host networking requested for this pod. Use the host's network namespace. When using HostNetwork you should specify ports so the scheduler is aware. When `hostNetwork` is true, specified `hostPort` fields in port definitions must match `containerPort`, and unspecified `hostPort` fields in port definitions are defaulted to match `containerPort`. Default to false.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"hostPID": {
|
||||
|
||||
2
pkg/generated/openapi/zz_generated.openapi.go
generated
2
pkg/generated/openapi/zz_generated.openapi.go
generated
@@ -28704,7 +28704,7 @@ func schema_k8sio_api_core_v1_PodSpec(ref common.ReferenceCallback) common.OpenA
|
||||
},
|
||||
"hostNetwork": {
|
||||
SchemaProps: spec.SchemaProps{
|
||||
Description: "Host networking requested for this pod. Use the host's network namespace. Default to false.",
|
||||
Description: "Host networking requested for this pod. Use the host's network namespace. When using HostNetwork you should specify ports so the scheduler is aware. When `hostNetwork` is true, specified `hostPort` fields in port definitions must match `containerPort`, and unspecified `hostPort` fields in port definitions are defaulted to match `containerPort`. Default to false.",
|
||||
Type: []string{"boolean"},
|
||||
Format: "",
|
||||
},
|
||||
|
||||
@@ -4270,6 +4270,9 @@ message PodSpec {
|
||||
optional string nodeName = 10;
|
||||
|
||||
// Host networking requested for this pod. Use the host's network namespace.
|
||||
// When using HostNetwork you should specify ports so the scheduler is aware.
|
||||
// When `hostNetwork` is true, specified `hostPort` fields in port definitions must match `containerPort`,
|
||||
// and unspecified `hostPort` fields in port definitions are defaulted to match `containerPort`.
|
||||
// Default to false.
|
||||
// +k8s:conversion-gen=false
|
||||
// +optional
|
||||
|
||||
@@ -3981,6 +3981,9 @@ type PodSpec struct {
|
||||
// +optional
|
||||
NodeName string `json:"nodeName,omitempty" protobuf:"bytes,10,opt,name=nodeName"`
|
||||
// Host networking requested for this pod. Use the host's network namespace.
|
||||
// When using HostNetwork you should specify ports so the scheduler is aware.
|
||||
// When `hostNetwork` is true, specified `hostPort` fields in port definitions must match `containerPort`,
|
||||
// and unspecified `hostPort` fields in port definitions are defaulted to match `containerPort`.
|
||||
// Default to false.
|
||||
// +k8s:conversion-gen=false
|
||||
// +optional
|
||||
|
||||
@@ -1824,7 +1824,7 @@ var map_PodSpec = map[string]string{
|
||||
"serviceAccount": "DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead.",
|
||||
"automountServiceAccountToken": "AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.",
|
||||
"nodeName": "NodeName indicates in which node this pod is scheduled. If empty, this pod is a candidate for scheduling by the scheduler defined in schedulerName. Once this field is set, the kubelet for this node becomes responsible for the lifecycle of this pod. This field should not be used to express a desire for the pod to be scheduled on a specific node. https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodename",
|
||||
"hostNetwork": "Host networking requested for this pod. Use the host's network namespace. Default to false.",
|
||||
"hostNetwork": "Host networking requested for this pod. Use the host's network namespace. When using HostNetwork you should specify ports so the scheduler is aware. When `hostNetwork` is true, specified `hostPort` fields in port definitions must match `containerPort`, and unspecified `hostPort` fields in port definitions are defaulted to match `containerPort`. Default to false.",
|
||||
"hostPID": "Use the host's pid namespace. Optional: Default to false.",
|
||||
"hostIPC": "Use the host's ipc namespace. Optional: Default to false.",
|
||||
"shareProcessNamespace": "Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false.",
|
||||
|
||||
Reference in New Issue
Block a user