This commit is contained in:
parent
4a42b271fa
commit
4c2819b84a
4 changed files with 103 additions and 0 deletions
20
apps/minecraft-smp.yaml
Normal file
20
apps/minecraft-smp.yaml
Normal file
|
|
@ -0,0 +1,20 @@
|
||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: minecraft-smp
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
project: default
|
||||||
|
source:
|
||||||
|
repoURL: https://forgejo.libretalk.eu/jad0s/gitops
|
||||||
|
targetRevision: main
|
||||||
|
path: manifests/minecraft-smp
|
||||||
|
destination:
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
namespace: minecraft
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
58
manifests/minecraft-smp/deployment.yaml
Normal file
58
manifests/minecraft-smp/deployment.yaml
Normal file
|
|
@ -0,0 +1,58 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: minecraft-smp
|
||||||
|
namespace: minecraft
|
||||||
|
labels:
|
||||||
|
app: minecraft-smp
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: minecraft-smp
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: minecraft-smp
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: minecraft-smp
|
||||||
|
image: itzg/minecraft-server:latest
|
||||||
|
ports:
|
||||||
|
- containerPort: 25565
|
||||||
|
name: minecraft-smp
|
||||||
|
env:
|
||||||
|
- name: EULA
|
||||||
|
value: "TRUE"
|
||||||
|
- name: TYPE
|
||||||
|
value: "PAPER"
|
||||||
|
- name: VERSION
|
||||||
|
value: "26.2"
|
||||||
|
- name: MEMORY
|
||||||
|
value: "6G"
|
||||||
|
- name: DIFFICULTY
|
||||||
|
value: "normal"
|
||||||
|
- name: MOTD
|
||||||
|
value: "I fuck bitches"
|
||||||
|
- name: ONLINE_MODE
|
||||||
|
value: "FALSE"
|
||||||
|
- name: VIEW_DISTANCE
|
||||||
|
value: "16"
|
||||||
|
- name: SPAWN_PROTECTION
|
||||||
|
value: "0"
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: "2"
|
||||||
|
memory: "6Gi"
|
||||||
|
limits:
|
||||||
|
cpu: "4"
|
||||||
|
memory: "7Gi"
|
||||||
|
volumeMounts:
|
||||||
|
- name: data
|
||||||
|
mountPath: /data
|
||||||
|
volumes:
|
||||||
|
- name: data
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: minecraft-smp-data
|
||||||
11
manifests/minecraft-smp/pvc.yaml
Normal file
11
manifests/minecraft-smp/pvc.yaml
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: minecraft-smp-data
|
||||||
|
namespace: minecraft
|
||||||
|
spec:
|
||||||
|
accesModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 10Gi
|
||||||
14
manifests/minecraft-smp/service.yaml
Normal file
14
manifests/minecraft-smp/service.yaml
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: minecraft-smp
|
||||||
|
namespace: minecraft
|
||||||
|
spec:
|
||||||
|
type: LoadBalancer
|
||||||
|
selector:
|
||||||
|
app: minecraft-smp
|
||||||
|
ports:
|
||||||
|
- name: minecraft
|
||||||
|
port: 25565
|
||||||
|
targetPort: 25565
|
||||||
|
protocol: TCP
|
||||||
Loading…
Add table
Reference in a new issue