-
Notifications
You must be signed in to change notification settings - Fork 30
/
kubernetes_msb.yaml
106 lines (101 loc) · 2.28 KB
/
kubernetes_msb.yaml
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# Save the output of this file and use kubectl create -f to import
# it into Kubernetes.
#
# Created with podman-4.2.0
apiVersion: v1
kind: Pod
metadata:
creationTimestamp: "2022-12-09T17:58:22Z"
labels:
app: p-moe-sticker-bot
name: p-moe-sticker-bot
spec:
containers:
- args:
- nginx
- -g
- daemon off;
env:
- name: NGINX_PORT
value: "443"
- name: NGINX_CERT
value: /certs/live/YOUR_WEBSITE/fullchain.pem
- name: WEBAPP_ROOT
value: /webapp
- name: WEBAPP_ADDR
value: 127.0.0.1:3921/webapp
- name: NGINX_KEY
value: /certs/live/YOUR_WEBSITE/privkey.pem
image: ghcr.io/star-39/moe-sticker-bot:msb_nginx_aarch64
name: msbnginx
ports:
- containerPort: 443
hostPort: 443
resources: {}
securityContext:
capabilities:
drop:
- CAP_MKNOD
- CAP_AUDIT_WRITE
tty: true
volumeMounts:
- mountPath: /certs
name: etc-letsencrypt-host-0
- mountPath: /webapp/data
name: moe-sticker-bot-webapp-data-ed
- command:
- /moe-sticker-bot
- --bot_token=BOT_TOKEN
- --webapp
- --webapp_url
- https://example.com/
- --webapp_data_dir
- /webapp/data/
- --webapp_listen_addr
- 127.0.0.1:3921
- --use_db
- --db_addr
- 10.88.0.1:3306
- --db_user
- root
- --db_pass
- DB_ROOT_PASS
image: ghcr.io/star-39/moe-sticker-bot:aarch64
name: msb
resources: {}
securityContext:
capabilities:
drop:
- CAP_MKNOD
- CAP_AUDIT_WRITE
volumeMounts:
- mountPath: /webapp/data
name: moe-sticker-bot-webapp-data-ed
- args:
- mariadbd
env:
- name: MARIADB_ROOT_PASSWORD
value: DB_ROOT_PASS
image: docker.io/library/mariadb:10.6
name: msbmariadb
resources: {}
securityContext:
capabilities:
drop:
- CAP_MKNOD
- CAP_AUDIT_WRITE
volumeMounts:
- mountPath: /var/lib/mysql
name: moe-sticker-bot-db-pvc
hostname: p-moe-sticker-bot
volumes:
- hostPath:
path: /etc/letsencrypt
type: Directory
name: etc-letsencrypt-host-0
- name: moe-sticker-bot-webapp-data-ed
emptyDir: {}
- name: moe-sticker-bot-db-pvc
persistentVolumeClaim:
claimName: moe-sticker-bot-db-pvc
status: {}