Skip to content

Commit 1cc4cb7

Browse files
committed
feat: deployment supports hostPort
1 parent 4fcc11e commit 1cc4cb7

File tree

2 files changed

+56
-16
lines changed

2 files changed

+56
-16
lines changed

config/crd/bases/gateway.nginx.org_nginxproxies.yaml

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -341,17 +341,19 @@ spec:
341341
description: |-
342342
List of ports to expose on the host.
343343
items:
344-
port:
345-
description: |-
346-
Number of port to expose on the host.
347-
type: integer
348-
containerPort:
349-
description: |-
350-
ContainerPort is the port on the nginx container to map to the HostPort.
351-
type: integer
344+
properties:
345+
port:
346+
description: |-
347+
Number of port to expose on the host.
348+
type: integer
349+
containerPort:
350+
description: |-
351+
ContainerPort is the port on the nginx container to map to the HostPort.
352+
type: integer
352353
required:
353354
- port
354355
- containerPort
356+
type: object
355357
type: array
356358
resources:
357359
description: Resources describes the compute resource
@@ -3739,6 +3741,24 @@ spec:
37393741
StopSignal can only be set for Pods with a non-empty .spec.os.name
37403742
type: string
37413743
type: object
3744+
hostPorts:
3745+
description: |-
3746+
List of ports to expose on the host.
3747+
items:
3748+
properties:
3749+
port:
3750+
description: |-
3751+
Number of port to expose on the host.
3752+
type: integer
3753+
containerPort:
3754+
description: |-
3755+
ContainerPort is the port on the nginx container to map to the HostPort.
3756+
type: integer
3757+
required:
3758+
- port
3759+
- containerPort
3760+
type: object
3761+
type: array
37423762
resources:
37433763
description: Resources describes the compute resource
37443764
requirements.

deploy/crds.yaml

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -926,17 +926,19 @@ spec:
926926
description: |-
927927
List of ports to expose on the host.
928928
items:
929-
port:
930-
description: |-
931-
Number of port to expose on the host.
932-
type: integer
933-
containerPort:
934-
description: |-
935-
ContainerPort is the port on the nginx container to map to the HostPort.
936-
type: integer
929+
properties:
930+
port:
931+
description: |-
932+
Number of port to expose on the host.
933+
type: integer
934+
containerPort:
935+
description: |-
936+
ContainerPort is the port on the nginx container to map to the HostPort.
937+
type: integer
937938
required:
938939
- port
939940
- containerPort
941+
type: object
940942
type: array
941943
resources:
942944
description: Resources describes the compute resource
@@ -4324,6 +4326,24 @@ spec:
43244326
StopSignal can only be set for Pods with a non-empty .spec.os.name
43254327
type: string
43264328
type: object
4329+
hostPorts:
4330+
description: |-
4331+
List of ports to expose on the host.
4332+
items:
4333+
properties:
4334+
port:
4335+
description: |-
4336+
Number of port to expose on the host.
4337+
type: integer
4338+
containerPort:
4339+
description: |-
4340+
ContainerPort is the port on the nginx container to map to the HostPort.
4341+
type: integer
4342+
required:
4343+
- port
4344+
- containerPort
4345+
type: object
4346+
type: array
43274347
resources:
43284348
description: Resources describes the compute resource
43294349
requirements.

0 commit comments

Comments
 (0)