-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathiris.yaml
93 lines (93 loc) · 2.2 KB
/
iris.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:
creationTimestamp: null
generation: 1
labels:
app: iris
owner: badboyd
tier: backend
name: iris
spec:
minReadySeconds: 30
progressDeadlineSeconds: 2147483647
replicas: 5
selector:
matchLabels:
app: iris
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
annotations:
prometheus.io/port: "9090"
prometheus.io/scrape: "true"
creationTimestamp: null
labels:
app: iris
namespace: default
spec:
containers:
- env:
- name: ONE_IMAGE__CONCURRENCY
value: "200"
- name: GOOGLE_APPLICATION_CREDENTIALS
value: "/etc/iris/chotot-photo-gcs.json"
- name: IMGPROXY_PROMETHEUS_BIND
value: ":9000"
- name: LOG_LEVEL
value: INFO
- name: RUN_ENV
value: DEV
- name: STORAGE__GCS__BASE_URL
value: https://cdn.chotot.org
- name: ONEIMAGE__SALT_KEY
valueFrom:
secretKeyRef:
name: iris
key: salt
- name: ONEIMAGE__SECRET_KEY
valueFrom:
secretKeyRef:
name: iris
key: key
image: docker.chotot.org/iris:0.0.9
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 3
httpGet:
path: /health
port: http
scheme: HTTP
initialDelaySeconds: 30
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
name: iris
ports:
- containerPort: 9090
name: http
protocol: TCP
resources:
limits:
cpu: "2"
memory: 2Gi
requests:
cpu: "0.1"
memory: 128Mi
volumeMounts:
- mountPath: /etc/iris/
name: iris-volume
readOnly: true
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
volumes:
- name: iris-volume
secret:
secretName: iris