Last active
June 17, 2019 17:03
-
-
Save matisiekpl/1176ad5401448a8a5d7d71f7c70dca5c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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