mirror of
https://github.com/michaelthomson0797/fleet-infra.git
synced 2026-02-04 04:59:54 +00:00
minecraft
This commit is contained in:
15
apps/minecraft/dns-endpoint.yaml
Normal file
15
apps/minecraft/dns-endpoint.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
apiVersion: externaldns.k8s.io/v1alpha1
|
||||
kind: DNSEndpoint
|
||||
metadata:
|
||||
name: mc.michaelthomson.dev
|
||||
namespace: minecraft
|
||||
spec:
|
||||
endpoints:
|
||||
- dnsName: mc.michaelthomson.dev
|
||||
recordTTL: 180
|
||||
recordType: CNAME
|
||||
targets:
|
||||
- michaelthomson.ddns.net
|
||||
providerSpecific:
|
||||
- name: external-dns.alpha.kubernetes.io/cloudflare-proxied
|
||||
value: "false"
|
||||
4
apps/minecraft/namespace.yaml
Normal file
4
apps/minecraft/namespace.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: minecraft
|
||||
49
apps/minecraft/release.yaml
Normal file
49
apps/minecraft/release.yaml
Normal file
@@ -0,0 +1,49 @@
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: minecraft
|
||||
namespace: minecraft
|
||||
spec:
|
||||
chart:
|
||||
spec:
|
||||
chart: minecraft
|
||||
version: 5.x
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: minecraft
|
||||
interval: 15m
|
||||
releaseName: minecraft
|
||||
values:
|
||||
nodeSelector:
|
||||
kubernetes.io/hostname: larry
|
||||
|
||||
minecraftServer:
|
||||
# This must be overridden, since we can't accept this for the user.
|
||||
eula: true
|
||||
# One of: LATEST, SNAPSHOT, or a specific version (ie: "1.7.9").
|
||||
version: "LATEST"
|
||||
## The type of Minecraft server to run, check for related settings below
|
||||
## Common types: "VANILLA", "FABRIC", "FORGE", "SPIGOT", "BUKKIT", "PAPER",
|
||||
## "FTBA", "SPONGEVANILLA", "AUTO_CURSEFORGE"
|
||||
## ref: https://docker-minecraft-server.readthedocs.io/en/latest/types-and-platforms
|
||||
type: "VANILLA"
|
||||
# One of: peaceful, easy, normal, and hard
|
||||
difficulty: normal
|
||||
# A comma-separated list of player names to whitelist.
|
||||
whitelist: DrDeww
|
||||
# A comma-separated list of player names who should be admins.
|
||||
ops: DrDeww
|
||||
# A server icon URL for server listings. Auto-scaled and transcoded.
|
||||
icon:
|
||||
# Message of the Day
|
||||
motd: "Welcome to Michael's Minecraft Server"
|
||||
worldSaveName: world
|
||||
# If you adjust this, you may need to adjust resources.requests above to match.
|
||||
memory: 1024M
|
||||
|
||||
persistence:
|
||||
dataDir:
|
||||
enabled: true
|
||||
Size: 8Gi
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
9
apps/minecraft/repository.yaml
Normal file
9
apps/minecraft/repository.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
apiVersion: source.toolkit.fluxcd.io/v1
|
||||
kind: HelmRepository
|
||||
metadata:
|
||||
name: minecraft
|
||||
namespace: minecraft
|
||||
spec:
|
||||
interval: 15m
|
||||
url: https://itzg.github.io/minecraft-server-charts/
|
||||
|
||||
15
bootstrap/apps/kustomization-minecraft.yaml
Normal file
15
bootstrap/apps/kustomization-minecraft.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: minecraft
|
||||
namespace: flux-system
|
||||
spec:
|
||||
interval: 15m
|
||||
path: ./apps/minecraft
|
||||
prune: true # remove any elements later removed from the above path
|
||||
wait: true
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
name: flux-system
|
||||
dependsOn:
|
||||
- name: infra-configs
|
||||
Reference in New Issue
Block a user