This repository has been archived by the owner on Mar 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 50
/
deployment.yaml
63 lines (62 loc) · 1.6 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
59
60
61
62
63
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: ice
spec:
selector:
matchLabels:
app: ice
replicas: 1
strategy:
type: Recreate
template:
metadata:
labels:
app: ice
spec:
volumes:
- name: nginx-vol
configMap:
name: ice-nginx
- name: ice-vol
configMap:
name: ice
terminationGracePeriodSeconds: 10
containers:
- name: nginx
image: nginx:1.13.3-alpine
ports:
- containerPort: 80
imagePullPolicy: IfNotPresent
resources:
limits:
memory: "256Mi"
cpu: "150m"
volumeMounts:
- mountPath: /etc/nginx/conf.d/
name: nginx-vol
- name: ice
image: jonbrouse/ice:latest
ports:
- containerPort: 8080
imagePullPolicy: IfNotPresent
env:
- GRAILS_OPTS=-server -Xmx2G -Xms1G -Dfile.encoding=UTF-8
command:
- /opt/ice/grailsw
- -Djava.net.preferIPv4Stack=true
- -Djava.net.preferIPv4Addresses
- -Duser.timezone=<Your Timezone ie America/New_York>
- -Dice.s3AccessKeyId=<s3AccessKeyId>
- -Dice.s3SecretKey=<s3SecretKeyId>
- run-app
resources:
limits:
memory: "2048Mi"
cpu: "500m"
volumeMounts:
- mountPath: /opt/ice/src/java/ice.properties
subPath: ice.properties
name: ice-vol
restartPolicy: Always