Skip to content

Commit

Permalink
Update webhook configuration to listen on 9443 rather than 443
Browse files Browse the repository at this point in the history
This enables running the operator in clusters that don't allow pods to
bind ports below 1024 (like OpenShift with SCC on).
  • Loading branch information
babbageclunk committed Aug 5, 2020
1 parent 3789f2a commit 95b1bde
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/default/manager_webhook_patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
containers:
- name: manager
ports:
- containerPort: 443
- containerPort: 9443
name: webhook-server
protocol: TCP
- containerPort: 8081
Expand Down
4 changes: 2 additions & 2 deletions config/webhook/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
namespace: system
spec:
ports:
- port: 443
targetPort: 443
- port: 9443
targetPort: 9443
selector:
control-plane: controller-manager
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ func main() {
MetricsBindAddress: metricsAddr,
LeaderElection: enableLeaderElection,
LivenessEndpointName: "/healthz",
Port: 9443,
})

if err != nil {
Expand Down

0 comments on commit 95b1bde

Please sign in to comment.