Skip to content

Commit

Permalink
Add K8s files, simplify .example files
Browse files Browse the repository at this point in the history
  • Loading branch information
MattsBos committed Sep 4, 2022
1 parent 5721cbd commit e4a8883
Show file tree
Hide file tree
Showing 7 changed files with 85 additions and 50 deletions.
4 changes: 2 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ AUTO_ROLES = Role1,Role2,etc

# Poll settings
# Enable or Disable Polls, true/false
POLL_ENABLE = false
# We are not allowed to redistribute fonts, please provide your own in the data folder. (TrueType/.ttf only!)
POLL_ENABLE = true
# We have supplied the Helvetica font, please provide your own in the data folder if you wish. (TrueType/.ttf only!)
# Font Regular (default = Helvetica.ttf)
POLL_FONT_REGULAR = Helvetica.ttf
# Font Bold (default = Helvetica-Bold-Font.ttf)
Expand Down
4 changes: 2 additions & 2 deletions clanbotjas/data/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ AUTO_ROLES = Role1,Role2,etc

# Poll settings
# Enable or Disable Polls, true/false
POLL_ENABLE = false
# We are not allowed to redistribute fonts, please provide your own in the data folder. (TrueType/.ttf only!)
POLL_ENABLE = true
# We have supplied the Helvetica font, please provide your own in the data folder if you wish. (TrueType/.ttf only!)
# Font Regular (default = Helvetica.ttf)
POLL_FONT_REGULAR = Helvetica.ttf
# Font Bold (default = Helvetica-Bold-Font.ttf)
Expand Down
52 changes: 6 additions & 46 deletions clanbotjas/data/menu.json.example
Original file line number Diff line number Diff line change
Expand Up @@ -9,63 +9,23 @@
{
"title": "pubg",
"role": "pubg"
},
{
"title": "rainbow-siege",
"role": "rainbowsiege"
},
{
"title": "fallguys",
"role": "fallguys"
},
{
"title": "cod4",
"role": "cod4"
}
]
},
{
"title": "Chatrooms",
"channels": [
{
"title": "mededelingen",
"role": "mededelingen"
},
{
"title": "clanbadjas",
"role": "clanbadjaschannel"
},
{
"title": "cbj-lan",
"role": "cbj-lan"
},
{
"title": "campzone",
"role": "campzone"
},
{
"title": "technische-dienst",
"role": "technische-dienst"
},
{
"title": "tinkering",
"role": "tinkering"
},
{
"title": "marktplaats",
"role": "marktplaats"
},
{
"title": "formule1",
"role": "formule1"
"title": "announcements",
"role": "announcements"
},
{
"title": "barbecue",
"role": "barbecue"
"title": "general",
"role": "general"
},
{
"title": "jukebox",
"role": "jukebox"
"title": "offtopic",
"role": "offtopic"
}
]
}
Expand Down
29 changes: 29 additions & 0 deletions kubernetes/clanbotjas-deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: clanbotjas
name: clanbotjas
spec:
replicas: 1
selector:
matchLabels:
app: clanbotjas
template:
metadata:
labels:
app: clanbotjas
spec:
containers:
- name: clanbotjas
image: clanbadjas/clanbotjas:latest
envFrom:
- configMapRef:
name: clanbotjas-env
volumeMounts:
- name: clanbotjas-storage
mountPath: /clanbotjas/data
volumes:
- name: clanbotjas-storage
persistentVolumeClaim:
claimName: clanbotjas-pvc
21 changes: 21 additions & 0 deletions kubernetes/clanbotjas-env.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
name: clanbotjas-env
data:
BOT_TOKEN: <token-here>
GUILD_ID: "<guild-id-here>"
LOG_CHANNEL: "<log-channel-id-here>"
COMMAND_PERMISSION_ROLE: "<role-id-here>"
VOICE_SCALER_ENABLE: "true"
VOICE_CHANNEL_CATEGORY: "<catergory-id-here>"
VOICE_CHANNEL_DEFAULT_NAME: "Voice Channel"
ROLEBOT_ENABLE: "true"
ROLEBOT_SETTINGS_CHANNEL: "<settings-channel-id-here>"
AUTO_ROLE_ENABLE: "true"
AUTO_ROLES: Role1,role-2,test3
POLL_ENABLE: "true"
POLL_FONT_REGULAR: Helvetica.ttf
POLL_FONT_BOLD: Helvetica-Bold-Font.ttf
POLL_FONT_SCALE: "10"
14 changes: 14 additions & 0 deletions kubernetes/clanbotjas-pv.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: clanbotjas-pv
spec:
accessModes:
- ReadWriteMany
capacity:
storage: 10Mi
nfs:
path: /mnt/path/to/clanbotjas
server: "<nfs-server-ip-here>"
persistentVolumeReclaimPolicy: Retain
11 changes: 11 additions & 0 deletions kubernetes/clanbotjas-pvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: clanbotjas-pvc
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 10Mi

0 comments on commit e4a8883

Please sign in to comment.