-
Notifications
You must be signed in to change notification settings - Fork 780
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Helm enable to config controller manager & audit port #1438
Changes from 10 commits
c6d2c89
16593c7
e3c1c7f
a937587
077d4e6
d4b5712
02fdf0b
e3d8559
e94896b
6a74339
738d905
b17b24d
a79e1f0
e7ecdb2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
kind: Deployment | ||
apiVersion: apps/v1 | ||
metadata: | ||
name: gatekeeper-controller-manager | ||
namespace: gatekeeper-system | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: manager | ||
ports: | ||
- containerPort: 8888 | ||
$patch: delete | ||
- containerPort: 8443 | ||
$patch: delete | ||
- containerPort: 9090 | ||
$patch: delete | ||
--- | ||
kind: Deployment | ||
apiVersion: apps/v1 | ||
metadata: | ||
name: gatekeeper-audit | ||
namespace: gatekeeper-system | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: manager | ||
ports: | ||
- containerPort: 8888 | ||
$patch: delete | ||
- containerPort: 9090 | ||
$patch: delete |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
|
||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
|
@@ -7,7 +6,7 @@ metadata: | |
spec: | ||
ports: | ||
- port: 443 | ||
targetPort: 8443 | ||
targetPort: webhook-server | ||
Comment on lines
-10
to
+9
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Realized I need to change the gatekeeper-webhook-service port. Thanks to this it will also simplify the GKE usage since they won't have to update the service since we are using the port name instead of the port number, I have updated the docs accordingly. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Perfect! |
||
selector: | ||
control-plane: controller-manager | ||
gatekeeper.sh/operation: webhook |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thoughts about calling this
metrics-port
? since the exporter can target more than PrometheusThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds reasonable, i will update PR when i get to work tomorrow or later tonight.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess the main reason why I used prometheusPort is due to that the flag is
--prometheus-port
but if you change this flag in the future to make it more generic we won't have to change the helm values at least :)I will just verify the change locally and then I will update the PR.