Giter Site home page Giter Site logo

Comments (4)

vfarcic avatar vfarcic commented on August 27, 2024

I don't think I ever used both in k3d (in "real" clusters yes). When working locally, and when I do need Istio, I tend to redirect all the traffic through the Gateway. So I do not have ready-to-go instructions for doing that in k3d. But, the general Gist is that you'd need to change the Service ports of one of the two (e.g., nginx) to use different NodePort ports.

In "real" clusters, that is not a problem since those services are of LoadBalancer type. They get external LBs with different IPs so there is no port collision.

Short advice: check, for example, Helm values of NGINX ingress and see which ones should be modified to use different ports.

Longer advice: I can create a demo but I cannot guarantee when.

from argo-combined-demo.

gsfd2000 avatar gsfd2000 commented on August 27, 2024

thx a lot for the fast response. If I understand right, the nginx controller has per node servicelbs deployed on 80/443 mapped to a nodeport and the istio-ingressgateway tries to do the same. Problem is both are helm charts from the internet and it seems that their deployment logic is daemonsets, so both always try to deploy to all nodes. I wonder how to either reduce their number to 2 each (four node cluster) or to map the istio ingress gateway to another port (kustomize patch does not work as yamls in /production folder are not deployed via kustomize (that could be changed though). The app stack argocd, argo-workflows and argo-events seems to be controlled by nginx ingress and only the custom app via istio (?). If that is the case, I need to keep both ingress setups of to reach all or kill one and redirect all to the remainer, that may require more changes. Is there any EASY way to patch the istio-ingress to two deployments or to overwrite its ports? Thx
kube-system ingress-controller-nginx-ingress-nginx-controller LoadBalancer 10.43.115.249 172.18.0.2,172.18.0.5 80:31642/TCP,443:31673/TCP 4h22m
istio-system istio-ingressgateway LoadBalancer 10.43.106.173 172.18.0.3,172.18.0.4 15021:30640/TCP,80:32403/TCP,443:31628/TCP 154m

[user@ossystem installation]$ kubectl get ds -A
NAMESPACE NAME DESIRED CURRENT READY UP-TO-DATE AVAILABLE NODE SELECTOR AGE
monitoring prometheus-node-exporter 4 4 4 4 4 3d2h
kube-system svclb-ingress-controller-nginx-ingress-nginx-controller 4 4 2 4 2 5h12m
istio-system svclb-istio-ingressgateway 4 4 2 4 2 3h24m

from argo-combined-demo.

gsfd2000 avatar gsfd2000 commented on August 27, 2024

this is the nginx controller I deployed with k3d: https://github.com/gsfd2000/argo-combined-app/blob/master/cluster-setup/nginx/helm-ingress-nginx.yaml

from argo-combined-demo.

vfarcic avatar vfarcic commented on August 27, 2024

I think that the chart is in https://github.com/kubernetes/ingress-nginx/tree/main/charts/ingress-nginx (please double-check). If that is correct, you need to change https://github.com/kubernetes/ingress-nginx/blob/main/charts/ingress-nginx/values.yaml#L32

from argo-combined-demo.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.