-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhttpbin.yaml
77 lines (77 loc) · 1.34 KB
/
httpbin.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
apiVersion: v1
kind: Namespace
metadata:
labels:
dgp-origin: pekewashere
istio-injection: enabled
name: httpbin
---
apiVersion: v1
kind: Service
metadata:
name: httpbin-v1
namespace: httpbin
labels:
app: httpbin-v1
version: v1
annotations:
networking.istio.io/exportTo: "*"
spec:
ports:
- name: http
port: 80
targetPort: 80
selector:
app: httpbin-v1
version: v1
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: httpbin-v1
namespace: httpbin
labels:
app: httpbin-v1
version: v1
spec:
replicas: 1
selector:
matchLabels:
app: httpbin-v1
version: v1
template:
metadata:
annotations:
sidecar.istio.io/inject: "true"
labels:
app: httpbin-v1
version: v1
spec:
containers:
- name: httpbin
image: kennethreitz/httpbin
imagePullPolicy: IfNotPresent
ports:
- containerPort: 80
---
# kind: ServiceEntry
# apiVersion: networking.istio.io/v1beta1
# metadata:
# name: httpbin-v1
# namespace: httpbin
# spec:
# hosts:
# - httpbin.v1
# ports:
# - name: http
# number: 80
# protocol: HTTP
# location: MESH_INTERNAL
# resolution: DNS
# endpoints:
# - address: httpbin-v1.httpbin.svc.cluster.local
# ports:
# http: 80
# exportTo:
# - '*'
# ---