Skip to content

Commit 926a036

Browse files
committed
Some older APIs updated.
1 parent a2abbd6 commit 926a036

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

ingress/ingresses.yaml

+12-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: extensions/v1beta1
1+
apiVersion: networking.k8s.io/v1
22
kind: Ingress
33
metadata:
44
name: nginx-ingress
@@ -10,12 +10,15 @@ spec:
1010
http:
1111
paths:
1212
- path: /nginx #<-- path this rule applies to
13+
pathType: Prefix
1314
backend:
14-
serviceName: nginx #<-- Service that serves the requests
15-
servicePort: 80
15+
service:
16+
name: nginx #<-- Service that serves the requests
17+
port:
18+
number: 80
1619

1720
---
18-
apiVersion: extensions/v1beta1
21+
apiVersion: networking.k8s.io/v1
1922
kind: Ingress
2023
metadata:
2124
name: httpd-ingress # <-- the same as above only for another service
@@ -27,7 +30,10 @@ spec:
2730
http:
2831
paths:
2932
- path: /httpd
33+
pathType: Prefix
3034
backend:
31-
serviceName: httpd
32-
servicePort: 80
35+
service:
36+
name: httpd #<-- Service that serves the requests
37+
port:
38+
number: 80
3339

jobs/cron_job.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: batch/v1beta1
1+
apiVersion: batch/v1
22
kind: CronJob
33
metadata:
44
name: sleeper

0 commit comments

Comments
 (0)