blob: 748a46be7b02ea094f8e70015ec56ad485257e9d (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
|
apiVersion: apps/v1
kind: Deployment
metadata:
name: pinnwand
namespace: web
spec:
replicas: 1
selector:
matchLabels:
app: pinnwand
template:
metadata:
labels:
app: pinnwand
spec:
initContainers:
- name: init-service
image: busybox:latest
command: ["wget", "https://raw.githubusercontent.com/python-discord/branding/main/logos/logo_discord/logo_discord_256.png", "-O", "/tmp/logo.png"]
volumeMounts:
- name: pinnwand-logo
mountPath: /tmp/
containers:
- name: pinnwand
image: ghcr.io/python-discord/pinnwand:latest-psql
command: ["venv/bin/python3", "-m", "pinnwand", "-vvvvvvvv", "--configuration-path", "/config/config.toml", "http"]
imagePullPolicy: Always
resources:
requests:
cpu: 5m
memory: 100Mi
limits:
cpu: 100m
memory: 200Mi
ports:
- containerPort: 8000
envFrom:
- secretRef:
name: pinnwand-postgres-connection
securityContext:
readOnlyRootFilesystem: true
volumeMounts:
- name: pinnwand-config
mountPath: /config/
- name: pinnwand-logo
mountPath: /usr/app/pinnwand/static/logo.png
subPath: logo.png
volumes:
- name: pinnwand-logo
emptyDir: {}
- name: pinnwand-config
configMap:
name: pinnwand-config
securityContext:
fsGroup: 2000
runAsUser: 1000
runAsNonRoot: true
|