Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

"One Ingress Controller for multiple namespaces"→ ingress1 & ingress2 #2

Open
jerzy-wachowiak opened this issue May 19, 2023 · 0 comments

Comments

@jerzy-wachowiak
Copy link

https://github.com/vplauzon/aks/tree/master/ingress-multiple-ns

Article is very helpfull as the ad­di­ti­o­nal information to https://learn.microsoft.com/en-us/azure/aks/ingress-basic ! :-) but the field naming in k8s manifest and apiVersion changed in the last two years. This worked for me:

ingress1.yaml

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: ingress-hello-world-1
  namespace: hello1
  annotations:
    kubernetes.io/ingress.class: nginx
    nginx.ingress.kubernetes.io/ssl-redirect: "false"
    nginx.ingress.kubernetes.io/rewrite-target: /
spec:
  rules:
  - http:
      paths:
        - path: /hello-world-one
          pathType: Prefix
          backend:
            service:
              name: aks-helloworld-one
              port:
                number: 80

ingress2.yaml

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: ingress-hello-world-2
  namespace: hello2
  annotations:
    kubernetes.io/ingress.class: nginx
    nginx.ingress.kubernetes.io/ssl-redirect: "false"
    nginx.ingress.kubernetes.io/rewrite-target: /
spec:
  rules:
  - http:
      paths:
        - path: /hello-world-two
          pathType: Prefix
          backend:
            service:
              name: aks-helloworld-two
              port:
                number: 80
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant