forked from surroundaustralia/VocPrez-theme-cgi
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdeployment.yaml
58 lines (58 loc) · 1.14 KB
/
deployment.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
apiVersion: apps/v1
kind: Deployment
metadata:
name: cgi-vocprez-deployment
labels:
app: cgi
spec:
replicas: 1
selector:
matchLabels:
app: cgi
template:
metadata:
labels:
app: cgi
spec:
containers:
- name: cgi-vocprez
image: 680471986828.dkr.ecr.ap-southeast-2.amazonaws.com/cgi/vocprez:latest
imagePullPolicy: Always
resources:
requests:
memory: "64Mi"
cpu: "100m"
limits:
memory: "512Mi"
cpu: "250m"
ports:
- containerPort: 5000
---
apiVersion: v1
kind: Service
metadata:
name: cgi-vocprez-service
spec:
selector:
app: cgi
type: ClusterIP
ports:
- protocol: TCP
port: 80
targetPort: 5000
---
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: cgi-vocprez-ingress
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/proxy-buffer-size: 8k
spec:
rules:
- host: cgi.surroundaustralia.com
http:
paths:
- backend:
serviceName: cgi-vocprez-service
servicePort: 80