blob: 323bebc25a6a15c59c7026cad78894aa635cc27c (
plain)
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
|
apiVersion: apps/v1
kind: Deployment
metadata:
name: within-website
labels:
app.kubernetes.io/name: within-website
annotations:
keel.sh/policy: all
keel.sh/trigger: poll
keel.sh/pollSchedule: "@hourly"
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: within-website
template:
metadata:
labels:
app.kubernetes.io/name: within-website
spec:
securityContext:
fsGroup: 1000
volumes:
- name: tyson
configMap:
name: within-website
containers:
- name: main
image: ghcr.io/xe/x/within-website:latest
imagePullPolicy: "Always"
resources:
limits:
cpu: "500m"
memory: "256Mi"
requests:
cpu: "250m"
memory: "128Mi"
securityContext:
runAsUser: 1000
runAsGroup: 1000
runAsNonRoot: true
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
seccompProfile:
type: RuntimeDefault
livenessProbe:
httpGet:
path: /
port: 8080
httpHeaders:
- name: X-Kubernetes
value: "is kinda okay"
initialDelaySeconds: 3
periodSeconds: 3
env:
- name: TYSON_CONFIG
value: "/etc/within.website/config.ts"
- name: PORT
value: "8080"
- name: SLOG_LEVEL
value: DEBUG
volumeMounts:
- name: tyson
mountPath: /etc/within.website
readOnly: true
|