Skip to content

Commit

Permalink
Use ingressClassName due to annotation deprecation (#107)
Browse files Browse the repository at this point in the history
* Use `ingressClassName` instead due to deprecation

* Fix indendation in `ingress.yaml`
  • Loading branch information
alvarobartt authored Oct 7, 2024
1 parent 9ae5e7d commit 70b8282
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 44 deletions.
19 changes: 9 additions & 10 deletions examples/gke/tei-deployment/cpu-config/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@ apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: tei-ingress
annotations:
kubernetes.io/ingress.class: "gce"
spec:
ingressClassName: "gce"
rules:
- http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: tei-service
port:
number: 8080
paths:
- path: /
pathType: Prefix
backend:
service:
name: tei-service
port:
number: 8080
19 changes: 9 additions & 10 deletions examples/gke/tei-deployment/gpu-config/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@ apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: tei-ingress
annotations:
kubernetes.io/ingress.class: "gce"
spec:
ingressClassName: "gce"
rules:
- http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: tei-service
port:
number: 8080
paths:
- path: /
pathType: Prefix
backend:
service:
name: tei-service
port:
number: 8080
19 changes: 9 additions & 10 deletions examples/gke/tei-from-gcs-deployment/cpu-config/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,15 @@ kind: Ingress
metadata:
name: tei-ingress
namespace: hf-gke-namespace
annotations:
kubernetes.io/ingress.class: "gce"
spec:
ingressClassName: "gce"
rules:
- http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: tei-service
port:
number: 8080
paths:
- path: /
pathType: Prefix
backend:
service:
name: tei-service
port:
number: 8080
19 changes: 9 additions & 10 deletions examples/gke/tei-from-gcs-deployment/gpu-config/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,15 @@ kind: Ingress
metadata:
name: tei-ingress
namespace: hf-gke-namespace
annotations:
kubernetes.io/ingress.class: "gce"
spec:
ingressClassName: "gce"
rules:
- http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: tei-service
port:
number: 8080
paths:
- path: /
pathType: Prefix
backend:
service:
name: tei-service
port:
number: 8080
3 changes: 1 addition & 2 deletions examples/gke/tgi-deployment/config/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: tgi-ingress
annotations:
kubernetes.io/ingress.class: "gce"
spec:
ingressClassName: "gce"
rules:
- http:
paths:
Expand Down
3 changes: 1 addition & 2 deletions examples/gke/tgi-from-gcs-deployment/config/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ kind: Ingress
metadata:
name: tgi-ingress
namespace: hf-gke-namespace
annotations:
kubernetes.io/ingress.class: "gce"
spec:
ingressClassName: "gce"
rules:
- http:
paths:
Expand Down

0 comments on commit 70b8282

Please sign in to comment.