Skip to content

Commit

Permalink
use containerPort to avoid this error (Pod "badpod01-new" is invalid:…
Browse files Browse the repository at this point in the history
… spec.initContainers[0].ports[0].containerPort: Required value) in disallow-host-ports

Signed-off-by: Chandan-DK <[email protected]>
  • Loading branch information
Chandan-DK committed Aug 24, 2024
1 parent 2a12958 commit 7f05483
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ spec:
image: busybox:1.35
ports:
- hostPort: 8090
containerPort: 8081
containers:
- name: busybox
image: busybox:1.35
Expand Down

0 comments on commit 7f05483

Please sign in to comment.