Open giner opened 5 years ago
Another problem related to the port definition is some role in scf have conflict port number with Istio component, which should be avoided. https://istio.io/docs/setup/kubernetes/additional-setup/requirements/#ports-used-by-istio
For e.g.,
ports:
- name: cc-up-listen
protocol: TCP
internal: 9091
- name: cc-up-dbg
protocol: TCP
internal: 17018
Which is conflicting with Istio Mixer
9090 | HTTP | Prometheus | Prometheus |
---|
9091 | HTTP | Mixer | Policy/Telemetry |
---|
@zhanggbj, exportTo
should help to avoid the conflict as I understand it now.
When Istio is in use on a Kubenrnetes cluster,
port
names of allServices
have to follow the naming convention required by Istio. This is also true when the components generated by fissile are not using Istio themselves. While this can be considered a design flaw and might be fixed in future we have to deal with it somehow in the meanwhile.Here are a couple of things that could be done to mitigate the issue:
networking.istio.io/exportTo= .
annotation to the Services generated by fissile which are not supposed to be accessed through Istio - helps to work around https://github.com/istio/istio/issues/9784 and https://github.com/istio/istio/issues/14520networking.istio.io/exportTo= .
, e.g. for port443
the name must always start fromhttps
- helps with https://github.com/istio/istio/issues/14520cc: @iandyh @viovanov
Update: