Skip to content

Commit

Permalink
Add service port name to help istio detect protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
Bobgy committed Apr 26, 2020
1 parent 5076763 commit faf437d
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 8 deletions.
3 changes: 2 additions & 1 deletion pipeline/minio/base/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ metadata:
name: minio-service
spec:
ports:
- port: 9000
- name: http
port: 9000
protocol: TCP
targetPort: 9000
selector:
Expand Down
5 changes: 4 additions & 1 deletion pipeline/mysql/base/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ metadata:
name: mysql
spec:
ports:
- port: 3306
- name: mysql
port: 3306
protocol: TCP
targetPort: 3306
8 changes: 6 additions & 2 deletions pipeline/pipelines-ui/base/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ metadata:
app: ml-pipeline-ui
spec:
ports:
- port: 80
- name: http
protocol: TCP
port: 80
targetPort: 3000
selector:
app: ml-pipeline-ui
Expand All @@ -20,7 +22,9 @@ metadata:
app: ml-pipeline-tensorboard-ui
spec:
ports:
- port: 80
- name: http
protocol: TCP
port: 80
targetPort: 3000
selector:
app: ml-pipeline-tensorboard-ui
9 changes: 6 additions & 3 deletions pipeline/profile-controller/base/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,12 @@ data:
"labels": { "app": "ml-pipeline-ui-artifact" }
},
"spec": {
"ports": [
{ "port": 80, "targetPort": 3000 }
],
"ports": [{
"name": "http", # name is required to let istio understand request protocol
"port": 80,
"protocol": "TCP",
"targetPort": 3000
}],
"selector": { "app": "ml-pipeline-ui-artifact" }
}
},
Expand Down
5 changes: 4 additions & 1 deletion pipeline/profile-controller/base/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ metadata:
name: profile-controller
spec:
ports:
- port: 80
- name: http
port: 80
protocol: TCP
targetPort: 80

0 comments on commit faf437d

Please sign in to comment.