Port Minecraft from Helm

This commit is contained in:
James Oliver
2016-03-29 12:33:10 -07:00
parent bb924a1307
commit ec7229477e
6 changed files with 458 additions and 0 deletions
@@ -0,0 +1,14 @@
apiVersion: v1
kind: Service
metadata:
name: minecraft
labels:
heritage: helm
spec:
type: LoadBalancer
ports:
- port: ${LB_PORT}
targetPort: 25565
protocol: TCP
selector:
app: minecraft
@@ -0,0 +1,31 @@
---
apiVersion: v1
kind: ReplicationController
metadata:
name: minecraft-controller
labels:
heritage: helm
spec:
replicas: ${REPLICAS}
selector:
app: minecraft
template:
metadata:
labels:
heritage: helm
app: minecraft
spec:
containers:
- name: minecraft
image: "itzg/minecraft-server:latest"
ports:
- containerPort: 25565
env:
- name: EULA
value: "TRUE"
volumeMounts:
- mountPath: /data
name: minecraft-data
volumes:
- name: minecraft-data
emptyDir: {}
@@ -0,0 +1,23 @@
.catalog:
name: Minecraft
version: 1.0.0-rancher1
description: |
Minecraft is a moderately popular game involving the collection, moving and
re-assembling of raw materials. It may be an elaborate parody of the
Australian economy.
maintainer: "Rancher"
questions:
- variable: REPLICAS
default: 1
min: 1
max: 1
label: Server Replicas
description: Initial number of server replicas
required: true
type: int
- variable: LB_PORT
default: 25565
label: Server Port
description: Port to expose the load balancer on
required: true
type: int