Add Portainer deployment files
Some checks failed
Build and Push Container / build-and-push (push) Failing after 18m0s
Some checks failed
Build and Push Container / build-and-push (push) Failing after 18m0s
This commit is contained in:
parent
aa6b9433ba
commit
c41cf31af4
26
PORTAINER_DEPLOYMENT.md
Normal file
26
PORTAINER_DEPLOYMENT.md
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
# Portainer deployment notes
|
||||||
|
|
||||||
|
Generated from the current Kubernetes deployment in namespace `discord-bots`. Secret values are in the local `portainer-*.env` files.
|
||||||
|
|
||||||
|
## Kubernetes source
|
||||||
|
|
||||||
|
- Deployment: `geeksbot`
|
||||||
|
- Replicas: `1`
|
||||||
|
- Rolling update: maxSurge `1`, maxUnavailable `1`
|
||||||
|
- minReadySeconds: `120`
|
||||||
|
- Labels/selectors: `app=geeksbot`
|
||||||
|
- Image pull secrets: `none required for Portainer stack`
|
||||||
|
|
||||||
|
## Containers
|
||||||
|
|
||||||
|
- `pgbouncer`: image `timoha/pgbouncer:1.15.0`; env: DATABASE_URL, SERVER_TLS_SSLMODE, AUTH_TYPE; ports: 5432; requests: {'cpu': '500m', 'memory': '256Mi'}; limits: {'cpu': '1', 'memory': '512Mi'}
|
||||||
|
- `geeksbot`: image `gitea.wayfinderak.com/wayfinderak/geeksbot:latest`; env: DATABASE_URL, DISCORD_TOKEN; ports: none; requests: {'cpu': '1', 'memory': '512Mi'}; limits: {'cpu': '2', 'memory': '1Gi'}
|
||||||
|
|
||||||
|
## Portainer files
|
||||||
|
|
||||||
|
- `portainer-stack.yml` - Docker Compose stack to paste/use in Portainer.
|
||||||
|
- `portainer-app.env` - bot runtime secrets/env.
|
||||||
|
|
||||||
|
## Portainer database connection
|
||||||
|
|
||||||
|
This Portainer stack does not include pgbouncer. `DATABASE_URL` in `portainer-app.env` points directly at the external PostgreSQL service copied from the Kubernetes pgbouncer upstream URL.
|
||||||
3
portainer-app.env
Normal file
3
portainer-app.env
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
DATABASE_URL=postgresql://geeksbot:kW6JzIQhBi4r7rRcKi3l2ct4@10.0.0.202:5432/geeksbot
|
||||||
|
DISCORD_TOKEN=Mzk2NTg4OTk2NzA2MzA0MDEw.GybJWT.KYhcnh1Zn72splQaEW92A4GmM13Au9d40t4qtI
|
||||||
|
STEAM_API_KEY=A8309D7186F7E523E83972CA0A92C486
|
||||||
9
portainer-stack.yml
Normal file
9
portainer-stack.yml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
services:
|
||||||
|
geeksbot:
|
||||||
|
image: gitea.wayfinderak.com/wayfinderak/geeksbot:latest
|
||||||
|
container_name: geeksbot
|
||||||
|
restart: unless-stopped
|
||||||
|
env_file:
|
||||||
|
- ./portainer-app.env
|
||||||
|
mem_limit: 1g
|
||||||
|
cpus: "2.0"
|
||||||
Loading…
x
Reference in New Issue
Block a user