Skip to content

Commit

Permalink
update missed and rename service port's name
Browse files Browse the repository at this point in the history
  • Loading branch information
iamejboy committed Sep 1, 2019
1 parent 2b72e37 commit aac0669
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion config/400-activator-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
protocol: TCP
port: 81
targetPort: 8013
- name: metrics
- name: http-metrics
protocol: TCP
port: 9090
targetPort: 9090
Expand Down
2 changes: 1 addition & 1 deletion config/400-controller-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ metadata:
namespace: knative-serving
spec:
ports:
- name: metrics
- name: http-metrics
port: 9090
protocol: TCP
targetPort: 9090
Expand Down
2 changes: 1 addition & 1 deletion config/autoscaler-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ spec:
port: 8080
protocol: TCP
targetPort: 8080
- name: metrics
- name: http-metrics
port: 9090
protocol: TCP
targetPort: 9090
Expand Down
4 changes: 2 additions & 2 deletions pkg/apis/serving/v1alpha1/revision_lifecycle.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ const (

// UserQueueMetricsPortName specifies the port name to use for metrics
// emitted by queue-proxy for end user.
UserQueueMetricsPortName = "tcp-usermetrics"
UserQueueMetricsPortName = "http-usermetric"

// ServiceQueueMetricsPortName is the name of the port that serves metrics
// on the Kubernetes service.
ServiceQueueMetricsPortName = "tcp-metrics"
ServiceQueueMetricsPortName = "http-metrics"
)

var revCondSet = apis.NewLivingConditionSet(
Expand Down
2 changes: 1 addition & 1 deletion pkg/reconciler/autoscaling/resources/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func TestMakeService(t *testing.T) {
},
Spec: corev1.ServiceSpec{
Ports: []corev1.ServicePort{{
Name: "metrics",
Name: "http-metrics",
Protocol: corev1.ProtocolTCP,
Port: 9090,
TargetPort: intstr.FromString("queue-metrics"),
Expand Down

0 comments on commit aac0669

Please sign in to comment.