Answer the question
In order to leave comments, you need to log in
Which port does OpenShift's route refer to in the targetPort field, a service port or a container port?
For example, there is a route that refers to 9081 targetPort,
then if this is the case in the service, it will transfer the container port to 8080:
- name: http-8081
protocol: TCP
port: 9081
targetPort: 8080
- name: http-8080
protocol: TCP
port: 9080
targetPort: 7081
- name: http-8081
protocol: TCP
port: 9081
targetPort: 8080
- name: http-8080
protocol: TCP
port: 9080
targetPort: 8081
- name: https-8443
protocol: TCP
port: 9443
targetPort: 9081
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question