Skip to content

Commit

Permalink
changed metrics port
Browse files Browse the repository at this point in the history
  • Loading branch information
cheina97 committed Nov 18, 2024
1 parent 5201cd5 commit 4e7ec9c
Show file tree
Hide file tree
Showing 18 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion cmd/liqo-controller-manager/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func main() {

// Manager flags
webhookPort := pflag.Uint("webhook-port", 9443, "The port the webhook server binds to")
metricsAddr := pflag.String("metrics-address", ":8080", "The address the metric endpoint binds to")
metricsAddr := pflag.String("metrics-address", ":8082", "The address the metric endpoint binds to")
probeAddr := pflag.String("health-probe-address", ":8081", "The address the health probe endpoint binds to")
leaderElection := pflag.Bool("enable-leader-election", false, "Enable leader election for controller manager")

Expand Down
2 changes: 1 addition & 1 deletion cmd/virtual-kubelet/root/flag.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func InstallFlags(flags *pflag.FlagSet, o *Opts) {
flags.StringVar(&o.RemoteRealLoadBalancerClassName, "remote-real-load-balancer-class-name", "",
"Name of the real load balancer class to use for the actual load balancer")
flags.BoolVar(&o.EnableMetrics, "metrics-enabled", false, "Enable the metrics server")
flags.StringVar(&o.MetricsAddress, "metrics-address", ":8080", "The address to listen to for metrics requests")
flags.StringVar(&o.MetricsAddress, "metrics-address", ":8082", "The address to listen to for metrics requests")
flags.StringVar(&o.HomeAPIServerHost, "home-api-server-host", "",
"Home cluster API server HOST, this parameter is optional and required only to override the default values")
flags.StringVar(&o.HomeAPIServerPort, "home-api-server-port", "",
Expand Down
2 changes: 1 addition & 1 deletion cmd/webhook/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func init() {
func main() {
// Manager flags
webhookPort := pflag.Uint("webhook-port", 9443, "The port the webhook server binds to")
metricsAddr := pflag.String("metrics-address", ":8080", "The address the metric endpoint binds to")
metricsAddr := pflag.String("metrics-address", ":8082", "The address the metric endpoint binds to")
probeAddr := pflag.String("health-probe-address", ":8081", "The address the health probe endpoint binds to")
leaderElection := pflag.Bool("enable-leader-election", false, "Enable leader election for the webhook pod")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ spec:
- --container-name=gateway
- --concurrent-containers-names=wireguard,geneve
{{- if .Values.metrics.enabled }}
- --metrics-address=:8080
- --metrics-address=:8082
{{- end }}
- --health-probe-bind-address=:8081
- --ping-enabled=true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ spec:
- --container-name=gateway
- --concurrent-containers-names=wireguard,geneve
{{- if .Values.metrics.enabled }}
- --metrics-address=:8080
- --metrics-address=:8082
{{- end }}
- --health-probe-bind-address=:8081
- --ping-enabled=true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ spec:
- --container-name=gateway
- --concurrent-containers-names=wireguard,geneve
{{- if .Values.metrics.enabled }}
- --metrics-address=:8080
- --metrics-address=:8082
{{- end }}
- --health-probe-bind-address=:8081
- --ping-enabled=true
Expand Down
2 changes: 1 addition & 1 deletion examples/networking/wireguard-client-default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ spec:
- --remote-cluster-id={{ .ClusterID }}
- --gateway-uid={{ .GatewayUID }}
- --mode=client
- --metrics-address=:8080
- --metrics-address=:8082
- --health-probe-bind-address=:8081
- --ping-enabled=true
- --ping-loss-threshold=5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ spec:
- --remote-cluster-id={{ .ClusterID }}
- --gateway-uid={{ .GatewayUID }}
- --mode=client
- --metrics-address=:8080
- --metrics-address=:8082
- --health-probe-bind-address=:8081
- --ping-enabled=true
- --ping-loss-threshold=5
Expand Down
2 changes: 1 addition & 1 deletion examples/networking/wireguard-client-pingdisabled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ spec:
- --remote-cluster-id={{ .ClusterID }}
- --gateway-uid={{ .GatewayUID }}
- --mode=client
- --metrics-address=:8080
- --metrics-address=:8082
- --health-probe-bind-address=:8081
- --ping-enabled=false
image: ghcr.io/liqotech/gateway:<VERSION>
Expand Down
2 changes: 1 addition & 1 deletion examples/networking/wireguard-client-selector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ spec:
- --remote-cluster-id={{ .ClusterID }}
- --gateway-uid={{ .GatewayUID }}
- --mode=client
- --metrics-address=:8080
- --metrics-address=:8082
- --health-probe-bind-address=:8081
- --ping-enabled=true
- --ping-loss-threshold=5
Expand Down
2 changes: 1 addition & 1 deletion examples/networking/wireguard-server-default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ spec:
- --remote-cluster-id={{ .ClusterID }}
- --gateway-uid={{ .GatewayUID }}
- --mode=server
- --metrics-address=:8080
- --metrics-address=:8082
- --health-probe-bind-address=:8081
- --ping-enabled=true
- --ping-loss-threshold=5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ spec:
- --remote-cluster-id={{ .ClusterID }}
- --gateway-uid={{ .GatewayUID }}
- --mode=server
- --metrics-address=:8080
- --metrics-address=:8082
- --health-probe-bind-address=:8081
- --ping-enabled=true
- --ping-loss-threshold=5
Expand Down
2 changes: 1 addition & 1 deletion examples/networking/wireguard-server-nat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ spec:
- --remote-cluster-id={{ .ClusterID }}
- --gateway-uid={{ .GatewayUID }}
- --mode=server
- --metrics-address=:8080
- --metrics-address=:8082
- --health-probe-bind-address=:8081
- --ping-enabled=true
- --ping-loss-threshold=5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ spec:
- --remote-cluster-id={{ .ClusterID }}
- --gateway-uid={{ .GatewayUID }}
- --mode=server
- --metrics-address=:8080
- --metrics-address=:8082
- --health-probe-bind-address=:8081
- --ping-enabled=true
- --ping-loss-threshold=5
Expand Down
2 changes: 1 addition & 1 deletion examples/networking/wireguard-server-pingdisabled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ spec:
- --remote-cluster-id={{ .ClusterID }}
- --gateway-uid={{ .GatewayUID }}
- --mode=server
- --metrics-address=:8080
- --metrics-address=:8082
- --health-probe-bind-address=:8081
- --ping-enabled=false
image: ghcr.io/liqotech/gateway:<VERSION>
Expand Down
2 changes: 1 addition & 1 deletion examples/networking/wireguard-server-selector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ spec:
- --remote-cluster-id={{ .ClusterID }}
- --gateway-uid={{ .GatewayUID }}
- --mode=server
- --metrics-address=:8080
- --metrics-address=:8082
- --health-probe-bind-address=:8081
- --ping-enabled=true
- --ping-loss-threshold=5
Expand Down
2 changes: 1 addition & 1 deletion pkg/fabric/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func InitFlags(flagset *pflag.FlagSet, opts *Options) {
flagset.StringVar(&opts.NodeName, FlagNameNodeName.String(), "", "Name of the node where the pod is scheduled")
flagset.StringVar(&opts.PodName, "podname", "", "Name of the pod")

flagset.StringVar(&opts.MetricsAddress, FlagNameMetricsAddress.String(), ":8080", "Address for the metrics endpoint")
flagset.StringVar(&opts.MetricsAddress, FlagNameMetricsAddress.String(), ":8082", "Address for the metrics endpoint")
flagset.StringVar(&opts.ProbeAddr, FlagNameProbeAddr.String(), ":8081", "Address for the health probe endpoint")

flagset.BoolVar(&opts.DisableARP, FlagNameDisableARP.String(), false, "Disable ARP")
Expand Down
2 changes: 1 addition & 1 deletion pkg/vkMachinery/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ var ClusterRoleBindingLabels = map[string]string{
}

// MetricsAddress is the default address used to expose metrics.
const MetricsAddress = ":8080"
const MetricsAddress = ":8082"

0 comments on commit 4e7ec9c

Please sign in to comment.