-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdeploy.yaml
54 lines (54 loc) · 1.04 KB
/
deploy.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: tech-talk
labels:
app: tech-talk-web
spec:
replicas: 3
selector:
matchLabels:
app: tech-talk-web
template:
metadata:
labels:
app: tech-talk-web
spec:
containers:
- name: tech-talk-web
image: 243060292047.dkr.ecr.eu-west-1.amazonaws.com/tech-talk:$IMAGE_TAG
imagePullPolicy: IfNotPresent
---
apiVersion: v1
kind: Service
metadata:
name: tech-talk
labels:
app: tech-talk-web
spec:
selector:
app: tech-talk-web
ports:
- protocol: TCP
port: 80
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /$1
nginx.org/proxy-connect-timeout: 30s
nginx.org/proxy-read-timeout: 20s
labels:
app: tech-talk-web
name: tech-talk
spec:
rules:
- host: tech-talk.sandbox.grid2.maf.ae
http:
paths:
- backend:
serviceName: tech-talk
servicePort: 80
path: /(.*)
pathType: ImplementationSpecific