Skip to content

Commit

Permalink
Change zuul-capacity port to 9100
Browse files Browse the repository at this point in the history
This would make it easier to collect from external prometheus

Change-Id: Idf2a757db1e701a44cc8ce48f4830d27d3617fff
  • Loading branch information
TristanCacqueray authored and morucci committed Dec 3, 2024
1 parent 66cdb31 commit 4d0b8f7
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
5 changes: 3 additions & 2 deletions controllers/capacity.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ import (

func MkZuulCapacityContainer() apiv1.Container {
container := base.MkContainer("zuul-capacity", "ghcr.io/softwarefactory-project/zuul-capacity:latest")
container.Args = []string{"--port", "9100"}
container.Env = []apiv1.EnvVar{
base.MkEnvVar("OS_CLIENT_CONFIG_FILE", "/.openstack/clouds.yaml"),
}
container.Ports = []apiv1.ContainerPort{
base.MkContainerPort(8080, "zuul-capacity"),
base.MkContainerPort(9100, "zuul-capacity"),
}
container.ReadinessProbe = base.MkReadinessHTTPProbe("/", 8080)
container.ReadinessProbe = base.MkReadinessHTTPProbe("/", 9100)
container.VolumeMounts = []apiv1.VolumeMount{
{
Name: "nodepool-config",
Expand Down
2 changes: 1 addition & 1 deletion controllers/nodepool.go
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ func (r *SFController) DeployNodepoolLauncher(statsdExporterVolume apiv1.Volume,
)

// Setup zuul-capacity service
zcSrv := base.MkService("zuul-capacity", r.ns, "nodepool-launcher", []int32{8080}, "zuul-capacity", r.cr.Spec.ExtraLabels)
zcSrv := base.MkService("zuul-capacity", r.ns, "nodepool-launcher", []int32{9100}, "zuul-capacity", r.cr.Spec.ExtraLabels)
r.GetOrCreate(&zcSrv)
}

Expand Down
2 changes: 1 addition & 1 deletion controllers/static/gateway/gateway.conf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
ProxyPassReverse /zuul http://zuul-web:9000/

# Handle zuul-capacity requests
ProxyPass "/zuul-capacity" "http://zuul-capacity:8080" retry=0
ProxyPass "/zuul-capacity" "http://zuul-capacity:9100" retry=0

# Handle Weeder requests
ProxyPass "/weeder" "http://zuul-weeder:9001" retry=0
Expand Down
7 changes: 7 additions & 0 deletions doc/reference/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ All notable changes to this project will be documented in this file.
### Removed
### Fixed

## [v0.0.49] - 2024-12-03

### Changed

- zuul-capacity default port is changed to 9100


## [v0.0.48] - 2024-11-26

### Added
Expand Down

0 comments on commit 4d0b8f7

Please sign in to comment.