-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdeploy.yml
69 lines (68 loc) · 1.71 KB
/
deploy.yml
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
# Copyright (c) 2017-present SIGHUP s.r.l All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: forecastle
labels:
app: forecastle
spec:
replicas: 1
revisionHistoryLimit: 2
selector:
matchLabels:
app: forecastle
template:
metadata:
labels:
app: forecastle
spec:
serviceAccountName: forecastle
containers:
- env:
- name: KUBERNETES_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
image: "stakater/forecastle:v1.0.145"
name: forecastle
livenessProbe:
httpGet:
path: /
port: http
readinessProbe:
httpGet:
path: /
port: http
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
privileged: false
runAsNonRoot: true
runAsGroup: 3000
runAsUser: 1000
capabilities:
drop:
- ALL
seccompProfile:
type: RuntimeDefault
ports:
- name: http
protocol: TCP
containerPort: 3000
volumeMounts:
- name: forecastle-config
mountPath: /etc/forecastle
resources:
requests:
cpu: 50m
memory: 50Mi
limits:
cpu: 100m
memory: 100Mi
volumes:
- name: forecastle-config
configMap:
name: forecastle-config