blob: 23bb420a06c6b283e5249bcf021e2e5f2cc50549 (
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-lovelace
namespace: web
spec:
replicas: 1
selector:
matchLabels:
app: pinnwand-lovelace
template:
metadata:
labels:
app: pinnwand-lovelace
spec:
initContainers:
- name: init-service
image: busybox:latest
command: ["wget", "https://raw.githubusercontent.com/python-discord/branding/main/logos/badge/badge_512x172.png", "-O", "/tmp/logo.png"]
volumeMounts:
- name: pinnwand-lovelace-logo
mountPath: /tmp/
containers:
- name: pinnwand-lovelace
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-lovelace-postgres-connection
securityContext:
readOnlyRootFilesystem: true
volumeMounts:
- name: pinnwand-lovelace-config
mountPath: /config/
- name: pinnwand-lovelace-logo
mountPath: /usr/app/pinnwand/static/logo.png
subPath: logo.png
volumes:
- name: pinnwand-lovelace-logo
emptyDir: {}
- name: pinnwand-lovelace-config
configMap:
name: pinnwand-lovelace-config
securityContext:
fsGroup: 2000
runAsUser: 1000
runAsNonRoot: true
|