-
Notifications
You must be signed in to change notification settings - Fork 1
/
test.yaml
51 lines (48 loc) · 847 Bytes
/
test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
apiVersion: v1
kind: Endpoints
metadata:
name: baidu-com
namespace: default
subsets:
- addresses:
- ip: 36.152.44.96
ports:
- port: 80
protocol: TCP
---
apiVersion: v1
kind: Service
metadata:
labels:
app: baidu-com
name: baidu-com
namespace: default
spec:
ports:
- port: 80
protocol: TCP
targetPort: 80
sessionAffinity: None
type: ClusterIP
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
yarp.ingress.kubernetes.io/backend-protocol: 'http'
name: baidu-com
namespace: default
spec:
ingressClassName: theabc
rules:
- host: localhost
http:
paths:
- backend:
service:
name: baidu-com
port:
number: 80
path: /
pathType: ImplementationSpecific
tls: []