Created
November 13, 2018 23:17
-
-
Save mike-jewell/0aeabb458f745f7ecc708bbeaa8f7705 to your computer and use it in GitHub Desktop.
minecraft-server aks config mikejewell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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