This repository has been archived by the owner on Jun 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make HNC container runasnonroot for security
Make HNC container runasnonroot for security and usability on more Kubernetes distributions (e.g. Openshift only allows non-root containers). Add port flag to change the container port to a port number not reserved for root (below 1024). Add securityContext to manager pod to run as non root. Tested on a GKE cluster. The webhooks worked fine.
- Loading branch information
1 parent
c34afd6
commit 4ee9810
Showing
4 changed files
with
10 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,6 @@ metadata: | |
spec: | ||
ports: | ||
- port: 443 | ||
targetPort: 443 | ||
targetPort: 9443 | ||
selector: | ||
control-plane: controller-manager |