Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Add custom ports to istio-ingressgateway service


  • Export existing service definition
Code Block
languagebash
themeMidnight
titleAdd Custom ports
collapsetrue
1. Export existing service definition:
	kubectl -n istio-ingress get service istio-ingressgateway -o yaml > istio_ingressgateway.yaml
2. 
  • Check

...

  • existing

...

  • Nodeports

...

  • (The

...

  • range

...

  • of

...

  • valid

...

  • ports

...

  • is

...

  • 30000-32767) and choose 4 free ports (e.g. 30900, 30901,30902, 30910)
Code Block
languagebash
themeMidnight

	kubectl get svc -A |grep Load
	kubectl get svc -A |grep NodePort
3. Choose 4 free ports (e.g. 30900, 30901,30902, 30910)
4. Edit kubectl get svc -A |grep NodePort 
  • Edit istio_ingressgateway.yaml and add new ports
Code Block
languageyml
themeMidnight
  and add:
  - port: 9010
    nodePort: 30910
    targetPort: 9010
    name: kafka-bootstrap
    protocol: TCP
  - port: 9000
    nodePort: 30900
    targetPort: 9000
    name: kafka-0
    protocol: TCP
  - port: 9001
    nodePort: 30901
    targetPort: 9001
    name: kafka-1
    protocol: TCP
  - port: 9002
    nodePort: 30902
    targetPort: 9002
    name: kafka-2
    protocol: TCP
5. 
  • Apply

...

  • changes:
Code Block
languagebash
themeMidnight

     kubectl apply -f ./istio_ingressgateway.yaml 

Modify onap-strimzi-kafka pods and services to disable TLS and set advertizedHosts

...