apiVersion: apps/v1 kind: Deployment metadata: name: minecraft namespace: games-ns spec: replicas: 1 selector: matchLabels: app: games template: metadata: labels: app: games spec: containers: - name: minecraft image: itzg/minecraft-server env: - name: EULA value: "TRUE" - name: ENABLE_RCON value: "TRUE" - name: RCON_PORT value: 28016 - name: MEMORY value: "8G" - name: USE_AIKAR_FLAGS value: "false" - name: ENABLE_ROLLING_LOGS value: "true" - name: TZ value: "America/New_York" - name: VERSION value: "1.12.2" #- name: TYPE # value: "AUTO_CURSEFORGE" - name: ICON value: "https://s3.clortox.com/static-assets/img/jenny.png" - name: OVERRIDE_ICON value: "TRUE" - name: MOTD value: "Lol. Lmao Even." - name: MAX_PLAYERS value: 50 - name: SPAWN_PROTECTION value: 0 - name: DIFFICULTY value: "hard" - name: OPS value: Gritos_Internos - name: ALLOW_FLIGHT value: "TRUE" ports: - containerPort: 25565 - containerPort: 28016 #readinessProbe: # exec: # command: [ "/usr/local/bin/mc-monitor", "status", "--host", "localhost" ] # # Give it i + p * f seconds to be ready, so 120 seconds # initialDelaySeconds: 20 # periodSeconds: 5 # failureThreshold: 20 #livenessProbe: # exec: # command: ["/usr/local/bin/mc-monitor", "status", "--host", "localhost"] # initialDelaySeconds: 120 # periodSeconds: 60 volumeMounts: - name: minecraft-data mountPath: /data volumes: - name: minecraft-data persistentVolumeClaim: claimName: minecraft-data-pvc