The ingress-nginx
container image I’ve been using was v0.25, and that’s more than 1 year old. The recent release is v0.44 but it’s a big leap from 25 to 44 and I’ve found some major differences between the 2 versions.
Version 0.25 implemented API version of networking.k8s.io/v1beta1
while version 0.44 has networking.k8s.io/v1
. Here are samples for both versions:
# v1beta1 apiVersion: networking.k8s.io/v1beta1 kind: Ingress metadata: name: wordpress annotations: kubernetes.io/ingress.class: prod spec: rules: - host: raynix.info http: paths: - path: / backend: serviceName: wordpress servicePort: 8080
# v1 apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: wordpress spec: ingressClassName: prod rules: - host: raynix.info http: paths: - path: / pathType: Prefix backend: service: name: wordpress port: number: 8080
For more info on networking.k8s.io/v1 please see this page
🙂