Difference between revisions of "Spec.IngressClassName"

From wikieduonline
Jump to navigation Jump to search
 
(4 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
  [[ingressClassName: alb]]
 
  [[ingressClassName: alb]]
 
  [[ingressClassName: ""]]
 
  [[ingressClassName: ""]]
 +
ingressClassName: [[webapprouting.kubernetes.azure.com]]
  
 +
 +
[[helm install grafana]]: [[ingress]].ingressClassName 
  
 
== Single rule ==
 
== Single rule ==
Line 52: Line 55:
 
== Related ==
 
== Related ==
 
* [[Kubernetes: Ingress controllers]]
 
* [[Kubernetes: Ingress controllers]]
* [[kubectl describe ingressclass]]
+
* <code>[[kubectl describe ingressclass]]</code>
* [[kubectl get ingressclass]]
+
* <code>[[kubectl get ingressclass]]</code>
 
* <code>[[helm install grafana]]</code>
 
* <code>[[helm install grafana]]</code>
  

Latest revision as of 06:30, 23 July 2024

ingressClassName: nginx
ingressClassName: alb
ingressClassName: ""
ingressClassName: webapprouting.kubernetes.azure.com


helm install grafana: ingress.ingressClassName  

Single rule[edit]

spec:
  ingressClassName: nginx
  rules:
    - host: yourhost.com
      http:
        paths:
          - path: /
            pathType: Prefix
            backend:
              service:
                name: yourservicename
                port:
                  number: 80

Multiple rules[edit]

spec:
 ingressClassName: nginx
 rules:
   - host: chart-example.local
     http:
       paths:
         - path: /
           pathType: Prefix
           backend:
             service:
               name: grafana
               port:
                 number: 80
   - host: prometheus.chart-example.local
     http:
       paths:
         - path: /
           pathType: Prefix
           backend:
             service:
               name: prometheus-server
               port:
                 number: 80


Changes[edit]

  • Ingresses can specify the class they are associated with by using a new ingressClassName field on Ingresses

Related[edit]

See also[edit]

Advertising: