blob: 34e7b50303709fcf7e0b22f72c5362fe42d19f2c (
plain) (
blame)
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
|
apiVersion: apps/v1
kind: Deployment
metadata:
name: pixels
spec:
replicas: 1
selector:
matchLabels:
app: pixels
template:
metadata:
labels:
app: pixels
spec:
containers:
- name: pixels
image: ghcr.io/python-discord/pixels:latest
imagePullPolicy: Always
ports:
- containerPort: 8000
envFrom:
- secretRef:
name: pixels-env
- configMapRef:
name: pixels-config-env
startupProbe:
httpGet:
path: /health
port: 8000
httpHeaders:
- name: Host
value: pixels.pythondiscord.com
failureThreshold: 15
periodSeconds: 2
timeoutSeconds: 5
initialDelaySeconds: 10
securityContext:
readOnlyRootFilesystem: true
imagePullSecrets:
- name: ghcr-pull-secret
securityContext:
fsGroup: 2000
runAsUser: 1000
runAsNonRoot: true
|