Skip to content

Instantly share code, notes, and snippets.

@matisiekpl
Last active June 17, 2019 17:03
Show Gist options
  • Select an option

  • Save matisiekpl/1176ad5401448a8a5d7d71f7c70dca5c to your computer and use it in GitHub Desktop.

Select an option

Save matisiekpl/1176ad5401448a8a5d7d71f7c70dca5c to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Service
metadata:
name: yottakekkit
labels:
app: yottakekkit
spec:
ports:
- port: 25565
nodePort: 30565
name: server
type: NodePort
selector:
app: yottakekkit
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: yottakekkit
spec:
serviceName: "yottakekkit"
replicas: 1
selector:
matchLabels:
app: yottakekkit
template:
metadata:
labels:
app: yottakekkit
spec:
containers:
- name: server
image: matisiekpl/kekkit
ports:
- containerPort: 25565
name: server
volumeMounts:
- name: save
mountPath: /app/world
volumeClaimTemplates:
- metadata:
name: save
spec:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 1Gi
---
kind: PersistentVolume
apiVersion: v1
metadata:
name: pv3
spec:
accessModes:
- ReadWriteOnce
capacity:
storage: 500Gi
hostPath:
path: "/mnt/data/pv-3"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment