-
Notifications
You must be signed in to change notification settings - Fork 2
/
archived-publisher.yaml
84 lines (84 loc) · 2.33 KB
/
archived-publisher.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
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: archived-publisher
namespace: archived
labels:
app.kubernetes.io/name: archived-publisher
app.kubernetes.io/app: archived-publisher
spec:
replicas: 3
strategy:
type: RollingUpdate
revisionHistoryLimit: 10
selector:
matchLabels:
app.kubernetes.io/name: archived-publisher
app.kubernetes.io/app: archived-publisher
template:
metadata:
labels:
app.kubernetes.io/name: archived-publisher
app.kubernetes.io/app: archived-publisher
spec:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app.kubernetes.io/app
operator: In
values:
- archived-publisher
topologyKey: "kubernetes.io/node"
terminationGracePeriodSeconds: 30
automountServiceAccountToken: false
containers:
- name: publisher
image: ghcr.io/teran/archived/publisher:latest
imagePullPolicy: Always
envFrom:
- configMapRef:
name: s3-blob-repository
- secretRef:
name: s3-blob-repository
env:
- name: METADATA_DSN
valueFrom:
secretKeyRef:
name: metadata-database-ro
key: METADATA_DSN_RO
- name: LOG_LEVEL
value: "trace"
ports:
- name: http
containerPort: 8080
protocol: TCP
- name: metrics
containerPort: 8081
protocol: TCP
resources:
requests:
cpu: 10m
memory: 128Mi
limits:
memory: 1Gi
startupProbe:
httpGet:
path: /healthz/startup
port: metrics
timeoutSeconds: 1
readinessProbe:
httpGet:
path: /healthz/readiness
port: metrics
timeoutSeconds: 5
livenessProbe:
httpGet:
path: /healthz/liveness
port: metrics
timeoutSeconds: 5
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true