first commit

This commit is contained in:
Ryan Cuda
2026-04-17 18:00:02 -07:00
commit 5abc90152e
8 changed files with 254 additions and 0 deletions

106
03-deployment.yaml Normal file
View File

@@ -0,0 +1,106 @@
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
labels:
app: minecraft
app.kubernetes.io/component: minecraft
app.kubernetes.io/instance: minecraft
name: minecraft
namespace: minecraft
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
deployment: minecraft
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
creationTimestamp: null
labels:
deployment: minecraft
spec:
containers:
- env:
- name: EULA
value: "true"
- name: MOTD
value: Minecraft on Openshift
- name: GAME_MODE
value: creative
- name: ONLINE_MODE
value: "false"
image: gitea.lab.cudanet.org/cudanet/minecraft/minecraft:1.21.11
imagePullPolicy: IfNotPresent
name: minecraft
ports:
- containerPort: 25565
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /data
name: minecraft-data
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
serviceAccount: minecraft
serviceAccountName: minecraft
terminationGracePeriodSeconds: 30
volumes:
- name: minecraft-data
persistentVolumeClaim:
claimName: minecraft-data
---
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
labels:
app: geysermc
app.kubernetes.io/component: geysermc
app.kubernetes.io/instance: geysermc
name: geysermc
namespace: minecraft
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
deployment: geysermc
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
annotations:
creationTimestamp: null
labels:
deployment: geysermc
spec:
containers:
- image: gitea.lab.cudanet.org/cudanet/minecraft/geysermc:1.21.11
imagePullPolicy: IfNotPresent
name: geysermc
ports:
- containerPort: 19132
protocol: UDP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30