Skip to content

Commit

Permalink
Merge pull request #832 from hzxuzhonghu/webhook
Browse files Browse the repository at this point in the history
Allow specifying admission webhook port, by default 8443
  • Loading branch information
volcano-sh-bot authored May 26, 2020
2 parents a997909 + 2c3cefe commit db8a51f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cmd/webhook-manager/app/options/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (c *Config) AddFlags(fs *pflag.FlagSet) {
"File containing the default x509 Certificate for HTTPS. (CA cert, if any, concatenated "+
"after server cert).")
fs.StringVar(&c.KeyFile, "tls-private-key-file", c.KeyFile, "File containing the default x509 private key matching --tls-cert-file.")
fs.IntVar(&c.Port, "port", 443, "the port used by admission-controller-server.")
fs.IntVar(&c.Port, "port", 8443, "the port used by admission-controller-server.")
fs.BoolVar(&c.PrintVersion, "version", false, "Show version and quit")
fs.Float32Var(&c.KubeClientOptions.QPS, "kube-api-qps", defaultQPS, "QPS to use while talking with kubernetes apiserver")
fs.IntVar(&c.KubeClientOptions.Burst, "kube-api-burst", defaultBurst, "Burst to use while talking with kubernetes apiserver")
Expand Down
4 changes: 2 additions & 2 deletions installer/helm/chart/volcano/templates/admission.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ spec:
- --webhook-namespace={{ .Release.Namespace }}
- --webhook-service-name={{ .Release.Name }}-admission-service
- --logtostderr
- --port=443
- --port={{.Values.basic.admission_port}}
- -v=4
- 2>&1
image: {{.Values.basic.admission_image_name}}:{{.Values.basic.image_tag_version}}
Expand Down Expand Up @@ -108,7 +108,7 @@ spec:
ports:
- port: 443
protocol: TCP
targetPort: 443
targetPort: {{.Values.basic.admission_port}}
selector:
app: volcano-admission
sessionAffinity: None
Expand Down
1 change: 1 addition & 0 deletions installer/helm/chart/volcano/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ basic:
admission_secret_name: "volcano-admission-secret"
scheduler_config_file: "config/volcano-scheduler.conf"
image_pull_secret: ""
admission_port: 8443
4 changes: 2 additions & 2 deletions installer/volcano-development.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ spec:
- --webhook-namespace=volcano-system
- --webhook-service-name=volcano-admission-service
- --logtostderr
- --port=443
- --port=8443
- -v=4
- 2>&1
image: volcanosh/vc-webhook-manager:latest
Expand Down Expand Up @@ -245,7 +245,7 @@ spec:
ports:
- port: 443
protocol: TCP
targetPort: 443
targetPort: 8443
selector:
app: volcano-admission
sessionAffinity: None
Expand Down

0 comments on commit db8a51f

Please sign in to comment.