first commit
This commit is contained in:
106
03-deployment.yaml
Normal file
106
03-deployment.yaml
Normal 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
|
||||
Reference in New Issue
Block a user