You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/blog/_posts/2020-04-02-Improvements-to-the-Ingress-API-in-Kubernetes-1.18.md
+17-17Lines changed: 17 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,17 +24,17 @@ The new concept of a path type allows you to specify how a path should be matche
24
24
The Ingress resource was designed with simplicity in mind, providing a simple set of fields that would be applicable in all use cases. Over time, as use cases evolved, implementations began to rely on a long list of custom annotations for further configuration. The new `IngressClass` resource provides a way to replace some of those annotations.
25
25
26
26
Each `IngressClass` specifies which controller should implement Ingresses of the class and can reference a custom resource with additional parameters.
27
-
```
28
-
apiVersion: networking.k8s.io/v1beta1
29
-
kind: IngressClass
27
+
```yaml
28
+
apiVersion: "networking.k8s.io/v1beta1"
29
+
kind: "IngressClass"
30
30
metadata:
31
-
name: external-lb
31
+
name: "external-lb"
32
32
spec:
33
-
controller: example.com/ingress-controller
33
+
controller: "example.com/ingress-controller"
34
34
parameters:
35
-
apiGroup: k8s.example.com/v1alpha
36
-
kind: IngressParameters
37
-
name: external-lb
35
+
apiGroup: "k8s.example.com/v1alpha"
36
+
kind: "IngressParameters"
37
+
name: "external-lb"
38
38
```
39
39
40
40
### Specifying the Class of an Ingress
@@ -60,21 +60,21 @@ Many Ingress providers have supported wildcard hostname matching like `*.foo.com
60
60
### Putting it All Together
61
61
These new Ingress features allow for much more configurability. Here’s an example of an Ingress that makes use of pathType, `ingressClassName`, and a hostname wildcard:
0 commit comments