Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update apiVersion for ingress #33

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions ch15/hello-kiamol/ingress/hello.kiamol.local.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-kiamol
Expand All @@ -11,5 +11,7 @@ spec:
paths:
- path: /
backend:
serviceName: hello-kiamol
servicePort: 80
service:
name: hello-kiamol
port:
number: 80
17 changes: 10 additions & 7 deletions ch15/hello-kiamol/ingress/localhost.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
apiVersion: networking.k8s.io/v1beta1
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: hello-kiamol
labels:
kiamol: ch15
spec:
rules:
- http:
paths:
- path: /
backend:
serviceName: hello-kiamol
servicePort: 80
- http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: hello-kiamol
port:
number: 80
8 changes: 5 additions & 3 deletions ch15/lab/solution/ingress-api.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: apod-api
Expand All @@ -15,5 +15,7 @@ spec:
- pathType: Exact
path: /image
backend:
serviceName: apod-api
servicePort: 80
service:
name: apod-api
port:
number: 80
8 changes: 5 additions & 3 deletions ch15/lab/solution/ingress-web.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: apod-web
Expand All @@ -15,5 +15,7 @@ spec:
- pathType: Exact
path: /
backend:
serviceName: apod-web
servicePort: 80
service:
name: apod-web
port:
number: 80
4 changes: 2 additions & 2 deletions ch15/pi/ingress.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: pi
Expand All @@ -12,4 +12,4 @@ spec:
- path: /
backend:
serviceName: pi-web
servicePort: 80
servicePort: 80
8 changes: 5 additions & 3 deletions ch15/pi/update/ingress-with-cache.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: pi
Expand All @@ -16,5 +16,7 @@ spec:
paths:
- path: /
backend:
serviceName: pi-web
servicePort: 80
service:
name: pi-web
port:
number: 80
8 changes: 5 additions & 3 deletions ch15/todo-list/ingress.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: todo
Expand All @@ -11,5 +11,7 @@ spec:
paths:
- path: /
backend:
serviceName: todo-web
servicePort: 80
service:
name: todo-web
port:
number: 80
26 changes: 17 additions & 9 deletions ch15/todo-list/update/ingress-exact.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: todo
Expand All @@ -12,20 +12,28 @@ spec:
- pathType: Exact
path: /
backend:
serviceName: todo-web
servicePort: 80
service:
name: todo-web
port:
number: 80
- pathType: Exact
path: /list
backend:
serviceName: todo-web
servicePort: 80
service:
name: todo-web
port:
number: 80
- pathType: Exact
path: /new
backend:
serviceName: todo-web
servicePort: 80
service:
name: todo-web
port:
number: 80
- pathType: Prefix
path: /static
backend:
serviceName: todo-web
servicePort: 80
service:
name: todo-web
port:
number: 80
32 changes: 20 additions & 12 deletions ch15/todo-list/update/ingress-https.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: todo-new
Expand All @@ -14,12 +14,14 @@ spec:
- pathType: Exact
path: /new
backend:
serviceName: todo-web
servicePort: 80
service:
name: todo-web
port:
number: 80
tls:
- secretName: kiamol-cert
---
apiVersion: networking.k8s.io/v1beta1
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: todo-static
Expand All @@ -39,12 +41,14 @@ spec:
- pathType: Prefix
path: /static
backend:
serviceName: todo-web
servicePort: 80
service:
name: todo-web
port:
number: 80
tls:
- secretName: kiamol-cert
---
apiVersion: networking.k8s.io/v1beta1
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: todo
Expand All @@ -58,12 +62,16 @@ spec:
- pathType: Exact
path: /
backend:
serviceName: todo-web
servicePort: 80
service:
name: todo-web
port:
number: 80
- pathType: Exact
path: /list
backend:
serviceName: todo-web
servicePort: 80
service:
name: todo-web
port:
number: 80
tls:
- secretName: kiamol-cert
- secretName: kiamol-cert
30 changes: 19 additions & 11 deletions ch15/todo-list/update/ingress-sticky.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: todo-new
Expand All @@ -12,10 +12,12 @@ spec:
- pathType: Exact
path: /new
backend:
serviceName: todo-web
servicePort: 80
service:
name: todo-web
port:
number: 80
---
apiVersion: networking.k8s.io/v1beta1
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: todo-static
Expand All @@ -33,10 +35,12 @@ spec:
- pathType: Prefix
path: /static
backend:
serviceName: todo-web
servicePort: 80
service:
name: todo-web
port:
number: 80
---
apiVersion: networking.k8s.io/v1beta1
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: todo
Expand All @@ -48,10 +52,14 @@ spec:
- pathType: Exact
path: /
backend:
serviceName: todo-web
servicePort: 80
service:
name: todo-web
port:
number: 80
- pathType: Exact
path: /list
backend:
serviceName: todo-web
servicePort: 80
service:
name: todo-web
port:
number: 80
30 changes: 19 additions & 11 deletions ch15/todo-list/update/ingress-traefik-certResolver.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: todo2-new
Expand All @@ -16,10 +16,12 @@ spec:
paths:
- path: /new
backend:
serviceName: todo-web-sticky
servicePort: 80
service:
name: todo-web-sticky
port:
number: 80
---
apiVersion: networking.k8s.io/v1beta1
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: todo2-static
Expand All @@ -37,10 +39,12 @@ spec:
paths:
- path: /static
backend:
serviceName: todo-web
servicePort: 80
service:
name: todo-web
port:
number: 80
---
apiVersion: networking.k8s.io/v1beta1
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: todo2
Expand All @@ -58,9 +62,13 @@ spec:
paths:
- path: /
backend:
serviceName: todo-web
servicePort: 80
service:
name: todo-web
port:
number: 80
- path: /list
backend:
serviceName: todo-web
servicePort: 80
service:
name: todo-web
port:
number: 80
Loading