-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeployment.yaml
More file actions
71 lines (71 loc) · 1.77 KB
/
deployment.yaml
File metadata and controls
71 lines (71 loc) · 1.77 KB
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: attic
namespace: attic
labels:
app.kubernetes.io/name: attic
app.kubernetes.io/component: server
spec:
replicas: 1
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 0
maxSurge: 1
selector:
matchLabels:
app.kubernetes.io/name: attic
app.kubernetes.io/component: server
template:
metadata:
labels:
app.kubernetes.io/name: attic
app.kubernetes.io/component: server
annotations:
# Force rollout on config change
checksum/config: "REPLACE_WITH_HASH_OR_USE_FLEET_ANNOTATION"
spec:
containers:
- name: atticd
# Use the official Attic image or build your own via Nix
image: ghcr.io/zhaofengli/attic:latest
args:
- "--config"
- "/etc/attic/server.toml"
- "--mode"
- "api-server"
ports:
- name: http
containerPort: 8080
protocol: TCP
envFrom:
- secretRef:
name: attic-secrets
volumeMounts:
- name: config
mountPath: /etc/attic
readOnly: true
resources:
requests:
cpu: 100m
memory: 256Mi
limits:
cpu: "1"
memory: 1Gi
readinessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 5
periodSeconds: 10
livenessProbe:
httpGet:
path: /
port: http
initialDelaySeconds: 15
periodSeconds: 30
volumes:
- name: config
configMap:
name: attic-config