36 lines
796 B
YAML
36 lines
796 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: minecraft
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: minecraft
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: minecraft
|
|
spec:
|
|
containers:
|
|
- name: minecraft
|
|
image: itzg/minecraft-server
|
|
ports:
|
|
- containerPort: 25565
|
|
protocol: TCP
|
|
env:
|
|
- name: EULA
|
|
value: "TRUE"
|
|
volumeMounts:
|
|
- name: minecraft-data
|
|
mountPath: /data/world
|
|
subPath: world
|
|
volumes:
|
|
- name: minecraft-data
|
|
persistentVolumeClaim:
|
|
claimName: minecraft-pvc
|
|
nodeSelector:
|
|
kubernetes.io/hostname: "archimedes"
|
|
securityContext:
|
|
fsGroup: 1000
|