diff --git a/kubernetes-templates/minecraft/0/minecraft-svc.yaml b/kubernetes-templates/minecraft/0/minecraft-svc.yaml new file mode 100644 index 0000000..6ea0b76 --- /dev/null +++ b/kubernetes-templates/minecraft/0/minecraft-svc.yaml @@ -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 diff --git a/kubernetes-templates/minecraft/0/minecraft.yaml b/kubernetes-templates/minecraft/0/minecraft.yaml new file mode 100644 index 0000000..614c8c8 --- /dev/null +++ b/kubernetes-templates/minecraft/0/minecraft.yaml @@ -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: {} diff --git a/kubernetes-templates/minecraft/0/rancher-compose.yml b/kubernetes-templates/minecraft/0/rancher-compose.yml new file mode 100644 index 0000000..bcbed8f --- /dev/null +++ b/kubernetes-templates/minecraft/0/rancher-compose.yml @@ -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 diff --git a/kubernetes-templates/minecraft/README.md b/kubernetes-templates/minecraft/README.md new file mode 100644 index 0000000..f2a2a41 --- /dev/null +++ b/kubernetes-templates/minecraft/README.md @@ -0,0 +1,18 @@ +# Minecraft + +This will run a standard [Minecraft](https://minecraft.net/) server. + +## Configuration + +This chart requires no configuration to use. + +## Scaling + +This server should not be scaled past a single instance. + +If you scale past a single instance you will be load balanced across several +different worlds. You will not be able to select which world you wish to play on. + +## Minecraft EULA + +By using this chart you implicitly agree to the Minecraft EULA. diff --git a/kubernetes-templates/minecraft/catalogIcon-minecraft.svg b/kubernetes-templates/minecraft/catalogIcon-minecraft.svg new file mode 100644 index 0000000..68f0e53 --- /dev/null +++ b/kubernetes-templates/minecraft/catalogIcon-minecraft.svg @@ -0,0 +1,367 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/kubernetes-templates/minecraft/config.yml b/kubernetes-templates/minecraft/config.yml new file mode 100644 index 0000000..bfb5a6f --- /dev/null +++ b/kubernetes-templates/minecraft/config.yml @@ -0,0 +1,5 @@ +name: Minecraft +version: 1.0.0-rancher1 +description: A Minecraft server +maintainer: Ben Barclay +category: Entertainment