Skip to content

Commit 08d96b4

Browse files
committed
changed metrics port
1 parent f8312ec commit 08d96b4

18 files changed

+18
-18
lines changed

cmd/liqo-controller-manager/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ func main() {
100100

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

cmd/virtual-kubelet/root/flag.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func InstallFlags(flags *pflag.FlagSet, o *Opts) {
7272
flags.StringVar(&o.RemoteRealLoadBalancerClassName, "remote-real-load-balancer-class-name", "",
7373
"Name of the real load balancer class to use for the actual load balancer")
7474
flags.BoolVar(&o.EnableMetrics, "metrics-enabled", false, "Enable the metrics server")
75-
flags.StringVar(&o.MetricsAddress, "metrics-address", ":8080", "The address to listen to for metrics requests")
75+
flags.StringVar(&o.MetricsAddress, "metrics-address", ":8082", "The address to listen to for metrics requests")
7676
flags.StringVar(&o.HomeAPIServerHost, "home-api-server-host", "",
7777
"Home cluster API server HOST, this parameter is optional and required only to override the default values")
7878
flags.StringVar(&o.HomeAPIServerPort, "home-api-server-port", "",

cmd/webhook/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func init() {
7373
func main() {
7474
// Manager flags
7575
webhookPort := pflag.Uint("webhook-port", 9443, "The port the webhook server binds to")
76-
metricsAddr := pflag.String("metrics-address", ":8080", "The address the metric endpoint binds to")
76+
metricsAddr := pflag.String("metrics-address", ":8082", "The address the metric endpoint binds to")
7777
probeAddr := pflag.String("health-probe-address", ":8081", "The address the health probe endpoint binds to")
7878
leaderElection := pflag.Bool("enable-leader-election", false, "Enable leader election for the webhook pod")
7979

deployments/liqo/templates/liqo-wireguard-gateway-client-template.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ spec:
5252
- --container-name=gateway
5353
- --concurrent-containers-names=wireguard,geneve
5454
{{- if .Values.metrics.enabled }}
55-
- --metrics-address=:8080
55+
- --metrics-address=:8082
5656
{{- end }}
5757
- --health-probe-bind-address=:8081
5858
- --ping-enabled=true

deployments/liqo/templates/liqo-wireguard-gateway-server-template-eks.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ spec:
7979
- --container-name=gateway
8080
- --concurrent-containers-names=wireguard,geneve
8181
{{- if .Values.metrics.enabled }}
82-
- --metrics-address=:8080
82+
- --metrics-address=:8082
8383
{{- end }}
8484
- --health-probe-bind-address=:8081
8585
- --ping-enabled=true

deployments/liqo/templates/liqo-wireguard-gateway-server-template.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ spec:
7070
- --container-name=gateway
7171
- --concurrent-containers-names=wireguard,geneve
7272
{{- if .Values.metrics.enabled }}
73-
- --metrics-address=:8080
73+
- --metrics-address=:8082
7474
{{- end }}
7575
- --health-probe-bind-address=:8081
7676
- --ping-enabled=true

examples/networking/wireguard-client-default.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ spec:
4141
- --remote-cluster-id={{ .ClusterID }}
4242
- --gateway-uid={{ .GatewayUID }}
4343
- --mode=client
44-
- --metrics-address=:8080
44+
- --metrics-address=:8082
4545
- --health-probe-bind-address=:8081
4646
- --ping-enabled=true
4747
- --ping-loss-threshold=5

examples/networking/wireguard-client-high-availability.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ spec:
4949
- --remote-cluster-id={{ .ClusterID }}
5050
- --gateway-uid={{ .GatewayUID }}
5151
- --mode=client
52-
- --metrics-address=:8080
52+
- --metrics-address=:8082
5353
- --health-probe-bind-address=:8081
5454
- --ping-enabled=true
5555
- --ping-loss-threshold=5

examples/networking/wireguard-client-pingdisabled.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ spec:
4141
- --remote-cluster-id={{ .ClusterID }}
4242
- --gateway-uid={{ .GatewayUID }}
4343
- --mode=client
44-
- --metrics-address=:8080
44+
- --metrics-address=:8082
4545
- --health-probe-bind-address=:8081
4646
- --ping-enabled=false
4747
image: ghcr.io/liqotech/gateway:<VERSION>

examples/networking/wireguard-client-selector.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ spec:
5050
- --remote-cluster-id={{ .ClusterID }}
5151
- --gateway-uid={{ .GatewayUID }}
5252
- --mode=client
53-
- --metrics-address=:8080
53+
- --metrics-address=:8082
5454
- --health-probe-bind-address=:8081
5555
- --ping-enabled=true
5656
- --ping-loss-threshold=5

examples/networking/wireguard-server-default.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ spec:
4141
- --remote-cluster-id={{ .ClusterID }}
4242
- --gateway-uid={{ .GatewayUID }}
4343
- --mode=server
44-
- --metrics-address=:8080
44+
- --metrics-address=:8082
4545
- --health-probe-bind-address=:8081
4646
- --ping-enabled=true
4747
- --ping-loss-threshold=5

examples/networking/wireguard-server-high-availability.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ spec:
4949
- --remote-cluster-id={{ .ClusterID }}
5050
- --gateway-uid={{ .GatewayUID }}
5151
- --mode=server
52-
- --metrics-address=:8080
52+
- --metrics-address=:8082
5353
- --health-probe-bind-address=:8081
5454
- --ping-enabled=true
5555
- --ping-loss-threshold=5

examples/networking/wireguard-server-nat.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ spec:
4141
- --remote-cluster-id={{ .ClusterID }}
4242
- --gateway-uid={{ .GatewayUID }}
4343
- --mode=server
44-
- --metrics-address=:8080
44+
- --metrics-address=:8082
4545
- --health-probe-bind-address=:8081
4646
- --ping-enabled=true
4747
- --ping-loss-threshold=5

examples/networking/wireguard-server-overridetargetport.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ spec:
4141
- --remote-cluster-id={{ .ClusterID }}
4242
- --gateway-uid={{ .GatewayUID }}
4343
- --mode=server
44-
- --metrics-address=:8080
44+
- --metrics-address=:8082
4545
- --health-probe-bind-address=:8081
4646
- --ping-enabled=true
4747
- --ping-loss-threshold=5

examples/networking/wireguard-server-pingdisabled.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ spec:
4141
- --remote-cluster-id={{ .ClusterID }}
4242
- --gateway-uid={{ .GatewayUID }}
4343
- --mode=server
44-
- --metrics-address=:8080
44+
- --metrics-address=:8082
4545
- --health-probe-bind-address=:8081
4646
- --ping-enabled=false
4747
image: ghcr.io/liqotech/gateway:<VERSION>

examples/networking/wireguard-server-selector.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ spec:
5050
- --remote-cluster-id={{ .ClusterID }}
5151
- --gateway-uid={{ .GatewayUID }}
5252
- --mode=server
53-
- --metrics-address=:8080
53+
- --metrics-address=:8082
5454
- --health-probe-bind-address=:8081
5555
- --ping-enabled=true
5656
- --ping-loss-threshold=5

pkg/fabric/flags.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func InitFlags(flagset *pflag.FlagSet, opts *Options) {
5959
flagset.StringVar(&opts.NodeName, FlagNameNodeName.String(), "", "Name of the node where the pod is scheduled")
6060
flagset.StringVar(&opts.PodName, "podname", "", "Name of the pod")
6161

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

6565
flagset.BoolVar(&opts.DisableARP, FlagNameDisableARP.String(), false, "Disable ARP")

pkg/vkMachinery/const.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ var ClusterRoleBindingLabels = map[string]string{
4343
}
4444

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

0 commit comments

Comments
 (0)