-
Notifications
You must be signed in to change notification settings - Fork 1
/
chat-front.yaml
93 lines (88 loc) · 1.61 KB
/
chat-front.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: chat-front
name: chat-front
namespace: default
spec:
replicas: 1
selector:
matchLabels:
app: chat-front
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
labels:
app: chat-front
spec:
containers:
- image: gcr.io/cloud-native-madison/chat-front:0.1.1
imagePullPolicy: IfNotPresent
name: chat-front
ports:
- containerPort: 80
name: http
protocol: TCP
dnsPolicy: ClusterFirst
restartPolicy: Always
terminationGracePeriodSeconds: 30
---
apiVersion: v1
kind: Service
metadata:
name: chat-front
labels:
app: chat-front
spec:
ports:
- port: 80
name: http
protocol: TCP
targetPort: 80
selector:
app: chat-front
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: chat-front
namespace: default
labels:
app: chat-front
spec:
gateways:
- chat-gateway
hosts:
- chat-front
- chat.kurtspace.com
http:
- match:
- uri:
prefix: /
route:
- destination:
host: chat-front
port:
number: 80
corsPolicy:
allowOrigin:
- '*'
allowCredentials: true
allowHeaders:
- content-type
- keep-alive
- user-agent
- cache-control
- content-type
- content-transfer-encoding
- x-accept-content-transfer-encoding
- x-accept-response-streaming
- x-user-agent
allowMethods:
- GET
- OPTIONS