Skip to content

Instantly share code, notes, and snippets.

@mike-jewell
Created November 13, 2018 23:17
Show Gist options
  • Save mike-jewell/0aeabb458f745f7ecc708bbeaa8f7705 to your computer and use it in GitHub Desktop.
Save mike-jewell/0aeabb458f745f7ecc708bbeaa8f7705 to your computer and use it in GitHub Desktop.
minecraft-server aks config mikejewell
apiVersion: apps/v1
kind: Deployment
metadata:
name: minecraft-server
spec:
replicas: 1
selector:
matchLabels:
app: minecraft-server
template:
metadata:
labels:
app: minecraft-server
spec:
containers:
- name: minecraft-server
image: openhack/minecraft-server:1.0
ports:
- containerPort: 25565
- containerPort: 25575
env:
- name: EULA
value: "true"
---
apiVersion: v1
kind: Service
metadata:
name: minecraft-server
spec:
type: LoadBalancer
ports:
- protocol: TCP
name: minecraft
port: 25565
targetPort: 25565
- protocol: TCP
name: rcon
port: 25575
targetPort: 25575
selector:
app: minecraft-server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment