Compare commits
2 Commits
9bf0cabd8d
...
0ca2ab2401
| Author | SHA1 | Date | |
|---|---|---|---|
| 0ca2ab2401 | |||
| d24a905516 |
21
.gitea/workflows/minecraft.yml
Normal file
21
.gitea/workflows/minecraft.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
name: Apply Kuberentes Configs
|
||||
on: [workflow_dispatch]
|
||||
jobs:
|
||||
update-repo:
|
||||
uses: ./.gitea/workflows/update-repo.yml
|
||||
runs-on: home-server
|
||||
update-infrastructure:
|
||||
runs-on: home-server
|
||||
needs: update-repo-folder
|
||||
env:
|
||||
KUBECONFIG: /home/gitea-runner/.kube/config
|
||||
defaults:
|
||||
run:
|
||||
working-directory: /home/gitea-runner/infrastructure
|
||||
steps:
|
||||
- name: update home server containers
|
||||
run: |
|
||||
|
||||
for file in kubernetes/minecraft/*.yml; do
|
||||
cat "$file" | envsubst | kubectl apply -f -
|
||||
done
|
||||
@@ -66,6 +66,38 @@ spec:
|
||||
memory: "6Gi"
|
||||
limits:
|
||||
memory: "8Gi"
|
||||
- name: minecraft-cobblemon
|
||||
image: itzg/minecraft-server:java21
|
||||
stdin: true
|
||||
tty: true
|
||||
env:
|
||||
- name: EULA
|
||||
value: "true"
|
||||
- name: TYPE
|
||||
value: "AUTO_CURSEFORGE"
|
||||
- name: CF_SLUG
|
||||
value: "cobblemon-fabric"
|
||||
- name: CF_API_KEY
|
||||
value: "$CF_API_KEY"
|
||||
- name: MEMORY
|
||||
value: "4G"
|
||||
- name: SERVER_PORT
|
||||
value: "2222"
|
||||
- name: RCON_PORT
|
||||
value: "25576"
|
||||
- name: CF_OVERRIDES_EXCLUSIONS
|
||||
value: |
|
||||
# Not applicable for server side
|
||||
shaderpacks/**
|
||||
resourcepacks/**
|
||||
volumeMounts:
|
||||
- name: cobblemon-data
|
||||
mountPath: /data
|
||||
resources:
|
||||
requests:
|
||||
memory: "4Gi"
|
||||
limits:
|
||||
memory: "6Gi"
|
||||
volumes:
|
||||
- name: minecraft-data
|
||||
hostPath:
|
||||
@@ -83,18 +115,7 @@ spec:
|
||||
hostPath:
|
||||
path: /dev/net/tun
|
||||
type: CharDevice
|
||||
---
|
||||
# apiVersion: v1
|
||||
# kind: Service
|
||||
# metadata:
|
||||
# name: minecraft
|
||||
# namespace: minecraft
|
||||
# spec:
|
||||
# selector:
|
||||
# app: minecraft
|
||||
# ports:
|
||||
# - name: minecraft
|
||||
# protocol: TCP
|
||||
# port: 25565
|
||||
# targetPort: 25565
|
||||
# type: ClusterIP
|
||||
- name: cobblemon-data
|
||||
hostPath:
|
||||
path: /data/minecraft/cobblemon-data
|
||||
type: DirectoryOrCreate
|
||||
|
||||
@@ -4,16 +4,11 @@
|
||||
vscode-fhs
|
||||
gnome-software
|
||||
gnome-tweaks
|
||||
# nvtopPackages.nvidia
|
||||
nerd-fonts.fira-code
|
||||
nerd-fonts.droid-sans-mono
|
||||
# fira-code
|
||||
# (nerdfonts.override { fonts = [ "FiraCode" "DroidSansMono" ]; })
|
||||
kubernetes-helm
|
||||
busybox
|
||||
ghostty
|
||||
elixir_1_18
|
||||
inotify-tools # needed for elixir hot-reloading
|
||||
nodejs_24
|
||||
pnpm
|
||||
legcord
|
||||
@@ -28,6 +23,8 @@
|
||||
|
||||
elixir
|
||||
elixir-ls
|
||||
inotify-tools
|
||||
watchman
|
||||
];
|
||||
|
||||
programs.ghostty = {
|
||||
|
||||
Reference in New Issue
Block a user