2019-04-20 03:27:14 +02:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: mc-stable
|
|
|
|
annotations:
|
2019-07-27 18:36:16 +02:00
|
|
|
"mc-router.itzg.me/defaultServer": "true"
|
2019-04-20 03:27:14 +02:00
|
|
|
spec:
|
2019-07-27 18:36:16 +02:00
|
|
|
type: ClusterIP
|
2019-04-20 03:27:14 +02:00
|
|
|
ports:
|
2019-07-27 18:36:16 +02:00
|
|
|
- port: 25566
|
|
|
|
name: mc-router
|
|
|
|
targetPort: 25565
|
2019-04-20 03:27:14 +02:00
|
|
|
selector:
|
|
|
|
run: mc-stable
|
|
|
|
---
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
run: mc-stable
|
|
|
|
name: mc-stable
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
run: mc-stable
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
run: mc-stable
|
|
|
|
spec:
|
|
|
|
securityContext:
|
|
|
|
runAsUser: 1000
|
|
|
|
fsGroup: 1000
|
|
|
|
containers:
|
|
|
|
- image: itzg/minecraft-server
|
|
|
|
name: mc-stable
|
|
|
|
env:
|
|
|
|
- name: EULA
|
|
|
|
value: "TRUE"
|
|
|
|
ports:
|
|
|
|
- containerPort: 25565
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: mc-snapshot
|
|
|
|
annotations:
|
|
|
|
"mc-router.itzg.me/externalServerName": "snapshot.your.domain"
|
|
|
|
spec:
|
|
|
|
ports:
|
|
|
|
- port: 25565
|
|
|
|
selector:
|
|
|
|
run: mc-snapshot
|
|
|
|
---
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
run: mc-snapshot
|
|
|
|
name: mc-snapshot
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
run: mc-snapshot
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
run: mc-snapshot
|
|
|
|
spec:
|
|
|
|
securityContext:
|
|
|
|
runAsUser: 1000
|
|
|
|
fsGroup: 1000
|
|
|
|
containers:
|
|
|
|
- image: itzg/minecraft-server
|
|
|
|
name: mc-snapshot
|
|
|
|
env:
|
|
|
|
- name: EULA
|
|
|
|
value: "TRUE"
|
|
|
|
- name: VERSION
|
|
|
|
value: "SNAPSHOT"
|
|
|
|
ports:
|
|
|
|
- containerPort: 25565
|