Add Portainer deployment files
All checks were successful
Build and Push Container / docker (push) Successful in 27m36s
All checks were successful
Build and Push Container / docker (push) Successful in 27m36s
This commit is contained in:
parent
3b0bf0866a
commit
7024630106
21
PORTAINER_DEPLOYMENT.md
Normal file
21
PORTAINER_DEPLOYMENT.md
Normal file
@ -0,0 +1,21 @@
|
||||
# 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: `prepbot`
|
||||
- Replicas: `1`
|
||||
- Rolling update: maxSurge `1`, maxUnavailable `1`
|
||||
- minReadySeconds: `120`
|
||||
- Labels/selectors: `app=prepbot`
|
||||
- Image pull secrets: `none required for Portainer stack`
|
||||
|
||||
## Containers
|
||||
|
||||
- `prepbot`: image `gitea.wayfinderak.com/wayfinderak/prepbot:latest`; env: DISCORD_TOKEN, LINK_CHANNEL, CHAT_CHANNEL; 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.
|
||||
3
portainer-app.env
Normal file
3
portainer-app.env
Normal file
@ -0,0 +1,3 @@
|
||||
DISCORD_TOKEN=Nzc2OTU2MjM0OTg0OTgwNTAw.X68a4Q.G-Wjgmq7fFk61Stq_lVPb73ULyU
|
||||
LINK_CHANNEL=784855106239332352
|
||||
CHAT_CHANNEL=777679317878177804
|
||||
9
portainer-stack.yml
Normal file
9
portainer-stack.yml
Normal file
@ -0,0 +1,9 @@
|
||||
services:
|
||||
prepbot:
|
||||
image: gitea.wayfinderak.com/wayfinderak/prepbot:latest
|
||||
container_name: prepbot
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- ./portainer-app.env
|
||||
mem_limit: 1g
|
||||
cpus: "2.0"
|
||||
Loading…
x
Reference in New Issue
Block a user