diff --git a/api/openapi-spec/swagger.json b/api/openapi-spec/swagger.json index ea32bb968a4..0b96471dd29 100644 --- a/api/openapi-spec/swagger.json +++ b/api/openapi-spec/swagger.json @@ -38859,6 +38859,22 @@ } } }, + "io.k8s.kubernetes.pkg.api.v1.HostAlias": { + "description": "HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file.", + "properties": { + "hostnames": { + "description": "Hostnames for the the above IP address.", + "type": "array", + "items": { + "type": "string" + } + }, + "ip": { + "description": "IP address of the host file entry.", + "type": "string" + } + } + }, "io.k8s.kubernetes.pkg.api.v1.HostPathVolumeSource": { "description": "Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling.", "required": [ @@ -40187,6 +40203,15 @@ "description": "Use the host's ipc namespace. Optional: Default to false.", "type": "boolean" }, + "hostMappings": { + "description": "HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods.", + "type": "array", + "items": { + "$ref": "#/definitions/io.k8s.kubernetes.pkg.api.v1.HostAlias" + }, + "x-kubernetes-patch-merge-key": "IP", + "x-kubernetes-patch-strategy": "merge" + }, "hostNetwork": { "description": "Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false.", "type": "boolean" diff --git a/api/swagger-spec/apps_v1beta1.json b/api/swagger-spec/apps_v1beta1.json index bde462bcf15..877022e1dd5 100644 --- a/api/swagger-spec/apps_v1beta1.json +++ b/api/swagger-spec/apps_v1beta1.json @@ -2609,6 +2609,13 @@ "$ref": "v1.Toleration" }, "description": "If specified, the pod's tolerations." + }, + "hostMappings": { + "type": "array", + "items": { + "$ref": "v1.HostAlias" + }, + "description": "HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods." } } }, @@ -4359,6 +4366,23 @@ } } }, + "v1.HostAlias": { + "id": "v1.HostAlias", + "description": "HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file.", + "properties": { + "ip": { + "type": "string", + "description": "IP address of the host file entry." + }, + "hostnames": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Hostnames for the the above IP address." + } + } + }, "v1beta1.DeploymentStrategy": { "id": "v1beta1.DeploymentStrategy", "description": "DeploymentStrategy describes how to replace existing pods with new ones.", diff --git a/api/swagger-spec/batch_v1.json b/api/swagger-spec/batch_v1.json index f76a80c0acc..af4e1b3302a 100644 --- a/api/swagger-spec/batch_v1.json +++ b/api/swagger-spec/batch_v1.json @@ -1392,6 +1392,13 @@ "$ref": "v1.Toleration" }, "description": "If specified, the pod's tolerations." + }, + "hostMappings": { + "type": "array", + "items": { + "$ref": "v1.HostAlias" + }, + "description": "HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods." } } }, @@ -3142,6 +3149,23 @@ } } }, + "v1.HostAlias": { + "id": "v1.HostAlias", + "description": "HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file.", + "properties": { + "ip": { + "type": "string", + "description": "IP address of the host file entry." + }, + "hostnames": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Hostnames for the the above IP address." + } + } + }, "v1.JobStatus": { "id": "v1.JobStatus", "description": "JobStatus represents the current state of a Job.", diff --git a/api/swagger-spec/batch_v2alpha1.json b/api/swagger-spec/batch_v2alpha1.json index 38ca7fe0189..5c774ba08b7 100644 --- a/api/swagger-spec/batch_v2alpha1.json +++ b/api/swagger-spec/batch_v2alpha1.json @@ -2425,6 +2425,13 @@ "$ref": "v1.Toleration" }, "description": "If specified, the pod's tolerations." + }, + "hostMappings": { + "type": "array", + "items": { + "$ref": "v1.HostAlias" + }, + "description": "HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods." } } }, @@ -4175,6 +4182,23 @@ } } }, + "v1.HostAlias": { + "id": "v1.HostAlias", + "description": "HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file.", + "properties": { + "ip": { + "type": "string", + "description": "IP address of the host file entry." + }, + "hostnames": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Hostnames for the the above IP address." + } + } + }, "v2alpha1.CronJobStatus": { "id": "v2alpha1.CronJobStatus", "description": "CronJobStatus represents the current state of a cron job.", diff --git a/api/swagger-spec/extensions_v1beta1.json b/api/swagger-spec/extensions_v1beta1.json index 21ccba5043e..2e76836bf6f 100644 --- a/api/swagger-spec/extensions_v1beta1.json +++ b/api/swagger-spec/extensions_v1beta1.json @@ -6856,6 +6856,13 @@ "$ref": "v1.Toleration" }, "description": "If specified, the pod's tolerations." + }, + "hostMappings": { + "type": "array", + "items": { + "$ref": "v1.HostAlias" + }, + "description": "HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods." } } }, @@ -8606,6 +8613,23 @@ } } }, + "v1.HostAlias": { + "id": "v1.HostAlias", + "description": "HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file.", + "properties": { + "ip": { + "type": "string", + "description": "IP address of the host file entry." + }, + "hostnames": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Hostnames for the the above IP address." + } + } + }, "v1beta1.DaemonSetUpdateStrategy": { "id": "v1beta1.DaemonSetUpdateStrategy", "properties": { diff --git a/api/swagger-spec/v1.json b/api/swagger-spec/v1.json index 1e8e8e3849c..8d93722c10d 100644 --- a/api/swagger-spec/v1.json +++ b/api/swagger-spec/v1.json @@ -18998,6 +18998,13 @@ "$ref": "v1.Toleration" }, "description": "If specified, the pod's tolerations." + }, + "hostMappings": { + "type": "array", + "items": { + "$ref": "v1.HostAlias" + }, + "description": "HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods." } } }, @@ -20193,6 +20200,23 @@ } } }, + "v1.HostAlias": { + "id": "v1.HostAlias", + "description": "HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file.", + "properties": { + "ip": { + "type": "string", + "description": "IP address of the host file entry." + }, + "hostnames": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Hostnames for the the above IP address." + } + } + }, "v1.PodStatus": { "id": "v1.PodStatus", "description": "PodStatus represents information about the status of a pod. Status may trail the actual state of a system.", diff --git a/docs/api-reference/apps/v1beta1/definitions.html b/docs/api-reference/apps/v1beta1/definitions.html index 50fe65734cf..fb3826dedd5 100755 --- a/docs/api-reference/apps/v1beta1/definitions.html +++ b/docs/api-reference/apps/v1beta1/definitions.html @@ -3644,6 +3644,13 @@ The StatefulSet guarantees that a given network identity will always map to the
v1.Toleration array
hostMappings
HostAliases is an optional list of hosts and IPs that will be injected into the pod’s hosts file if specified. This is only valid for non-hostNetwork pods.
false
v1.HostAlias array
HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod’s hosts file.
+Name | +Description | +Required | +Schema | +Default | +
---|---|---|---|---|
ip |
+IP address of the host file entry. |
+false |
+string |
++ |
hostnames |
+Hostnames for the the above IP address. |
+false |
+string array |
++ |