mirror of
https://github.com/itzg/docker-minecraft-server
synced 2024-12-14 14:22:27 +00:00
17 lines
313 B
YAML
17 lines
313 B
YAML
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
labels:
|
||
|
service: mc
|
||
|
annotations: {}
|
||
|
# Such as
|
||
|
# mc-router.itzg.me/externalServerName: $(EXTERNAL_SERVICE_NAME)
|
||
|
name: mc
|
||
|
spec:
|
||
|
ports:
|
||
|
- name: minecraft
|
||
|
port: 25565
|
||
|
targetPort: 25565
|
||
|
type: NodePort
|
||
|
selector:
|
||
|
server: mc
|