Skip to content

Commit

Permalink
set hostnetwork and port for webhook
Browse files Browse the repository at this point in the history
Signed-off-by: weizhou.lan@daocloud.io <weizhou.lan@daocloud.io>
  • Loading branch information
weizhoublue committed Jul 12, 2024
1 parent b387232 commit 3090c80
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bindata/manifests/operator-webhook/001-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ metadata:
spec:
ports:
- port: 443
targetPort: 6443
targetPort: 5732
selector:
app: operator-webhook
3 changes: 2 additions & 1 deletion bindata/manifests/operator-webhook/server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ spec:
labels:
app: operator-webhook
spec:
hostNetwork: true
securityContext:
runAsNonRoot: true
serviceAccountName: operator-webhook-sa
Expand Down Expand Up @@ -67,7 +68,7 @@ spec:
- webhook
args:
- "start"
- "--port=6443"
- "--port=5732"
- "--tls-private-key-file=/etc/tls/tls.key"
- "--tls-cert-file=/etc/tls/tls.crt"
- "--alsologtostderr=true"
Expand Down
2 changes: 1 addition & 1 deletion bindata/manifests/webhook/001-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ metadata:
spec:
ports:
- port: 443
targetPort: 6443
targetPort: 5731
selector:
app: network-resources-injector
3 changes: 2 additions & 1 deletion bindata/manifests/webhook/server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ spec:
type: infra
openshift.io/component: network
spec:
hostNetwork: true
securityContext:
runAsNonRoot: true
serviceAccountName: network-resources-injector-sa
Expand Down Expand Up @@ -70,7 +71,7 @@ spec:
- webhook
args:
- -bind-address=0.0.0.0
- -port=6443
- -port=5731
- -tls-private-key-file=/etc/tls/tls.key
- -tls-cert-file=/etc/tls/tls.crt
- -insecure=true
Expand Down

0 comments on commit 3090c80

Please sign in to comment.