K3s-cluster/minecraft/deployment.yaml

36 lines
796 B
YAML
Raw Permalink Normal View History

2022-05-10 23:24:04 +00:00
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
2022-05-15 16:57:30 +00:00
protocol: TCP
2022-05-10 23:24:04 +00:00
env:
- name: EULA
value: "TRUE"
2022-06-06 16:41:15 +00:00
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