Skip to content

Commit

Permalink
fixing beta deprecated versions (#5)
Browse files Browse the repository at this point in the history
Co-authored-by: David Duarte <[email protected]>
  • Loading branch information
davidandradeduarte and David Duarte authored Feb 16, 2021
1 parent a1294ee commit af133c8
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 18 deletions.
21 changes: 11 additions & 10 deletions 03-ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
apiVersion: networking.k8s.io/v1beta1
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: hello
namespace: demo
spec:
rules:
- host: echo.com
http:
paths:
- path: /
backend:
serviceName: hello
servicePort: 8000


- host: echo.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: hello
port:
number: 80
11 changes: 6 additions & 5 deletions 12-ingress-ds.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: networking.k8s.io/v1beta1
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: hello-ds
Expand All @@ -9,8 +9,9 @@ spec:
http:
paths:
- path: /
pathType: Prefix
backend:
serviceName: hello-ds
servicePort: 8000


service:
name: hello-ds
port:
number: 8000
9 changes: 6 additions & 3 deletions 13-deployment-sidecar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ spec:
app: hello-sidecar
type: ClusterIP
---
apiVersion: networking.k8s.io/v1beta1
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: hello-sidecar
Expand All @@ -115,6 +115,9 @@ spec:
http:
paths:
- path: /
pathType: Prefix
backend:
serviceName: hello-sidecar
servicePort: 8000
service:
name: hello-sidecar
port:
number: 8000

0 comments on commit af133c8

Please sign in to comment.