Last active
June 18, 2019 08:29
-
-
Save matisiekpl/5b12df4e94bca5b269fc5d13d131e11c 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: spigot | |
| labels: | |
| app: spigot | |
| spec: | |
| ports: | |
| - port: 25565 | |
| nodePort: 30565 | |
| name: server | |
| type: NodePort | |
| selector: | |
| app: spigot | |
| --- | |
| apiVersion: apps/v1 | |
| kind: StatefulSet | |
| metadata: | |
| name: spigot | |
| spec: | |
| serviceName: "spigot" | |
| replicas: 1 | |
| selector: | |
| matchLabels: | |
| app: spigot | |
| template: | |
| metadata: | |
| labels: | |
| app: spigot | |
| spec: | |
| containers: | |
| - name: server | |
| image: matisiekpl/spigot | |
| tty: true | |
| stdin: true | |
| 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: pv4 | |
| spec: | |
| accessModes: | |
| - ReadWriteOnce | |
| capacity: | |
| storage: 500Gi | |
| hostPath: | |
| path: "/mnt/data/pv-4" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment