-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkubernetes.tpl.yml
More file actions
92 lines (89 loc) · 1.53 KB
/
kubernetes.tpl.yml
File metadata and controls
92 lines (89 loc) · 1.53 KB
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
---
apiVersion: getambassador.io/v2
kind: Mapping
metadata:
name: _APP_NAME_FRONT
spec:
prefix: /
host: _APP_NAME_FRONT.caruso.cf
service: _APP_NAME_FRONT
---
kind: Service
apiVersion: v1
metadata:
name: _APP_NAME_FRONT
spec:
selector:
app: _APP_NAME_FRONT
ports:
- protocol: TCP
port: 80
targetPort: 80
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: _APP_NAME_FRONT
labels:
app: _APP_NAME_FRONT
spec:
replicas: 1
selector:
matchLabels:
app: _APP_NAME_FRONT
template:
metadata:
labels:
app: _APP_NAME_FRONT
spec:
containers:
- name: test
image: _DOCKER_IMAGE_NAME_FRONT
imagePullPolicy: Always
ports:
- containerPort: 80
---
apiVersion: getambassador.io/v2
kind: Mapping
metadata:
name: _APP_NAME_BACK
spec:
prefix: /api/
host: _APP_NAME_FRONT.caruso.cf
service: _APP_NAME_BACK
use_websocket: true
---
kind: Service
apiVersion: v1
metadata:
name: _APP_NAME_BACK
spec:
selector:
app: _APP_NAME_BACK
ports:
- protocol: TCP
port: 80
targetPort: 8080
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: _APP_NAME_BACK
labels:
app: _APP_NAME_BACK
spec:
replicas: 1
selector:
matchLabels:
app: _APP_NAME_BACK
template:
metadata:
labels:
app: _APP_NAME_BACK
spec:
containers:
- name: test
image: _DOCKER_IMAGE_NAME_BACK
imagePullPolicy: Always
ports:
- containerPort: 80