mirror of
https://github.com/amkartashov/gf-k8s.git
synced 2026-01-11 01:49:44 +00:00
restore minecraft
This commit is contained in:
parent
ac611dbad3
commit
321fff82ff
6 changed files with 63 additions and 0 deletions
3
apps/minecraft/Chart.yaml
Normal file
3
apps/minecraft/Chart.yaml
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
name: minecraft
|
||||||
|
version: 1.0
|
||||||
|
|
||||||
4
apps/minecraft/requirements.yaml
Normal file
4
apps/minecraft/requirements.yaml
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
dependencies:
|
||||||
|
- name: minecraft
|
||||||
|
version: 4.4.0
|
||||||
|
repository: 'https://itzg.github.io/minecraft-server-charts/'
|
||||||
11
apps/minecraft/templates/volume.yaml
Normal file
11
apps/minecraft/templates/volume.yaml
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolume
|
||||||
|
metadata:
|
||||||
|
name: minecraft
|
||||||
|
spec:
|
||||||
|
capacity:
|
||||||
|
storage: 1Gi
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
hostPath:
|
||||||
|
path: /data/minecraft
|
||||||
12
apps/minecraft/templates/volumeclaim.yaml
Normal file
12
apps/minecraft/templates/volumeclaim.yaml
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: minecraft
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 1Gi
|
||||||
|
volumeMode: Filesystem
|
||||||
|
volumeName: minecraft
|
||||||
14
apps/minecraft/values.yaml
Normal file
14
apps/minecraft/values.yaml
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
minecraft:
|
||||||
|
minecraftServer:
|
||||||
|
eula: "TRUE"
|
||||||
|
pvp: true
|
||||||
|
onlineMode: false
|
||||||
|
serviceType: NodePort
|
||||||
|
rcon:
|
||||||
|
enabled: true
|
||||||
|
password: "CHANGE_IN_ARGOCD"
|
||||||
|
serviceType: NodePort
|
||||||
|
persistence:
|
||||||
|
dataDir:
|
||||||
|
enabled: true
|
||||||
|
existingClaim: minecraft
|
||||||
19
main/apps/minecraft.yaml
Normal file
19
main/apps/minecraft.yaml
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: minecraft
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
destination:
|
||||||
|
namespace: minecraft
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
project: default
|
||||||
|
source:
|
||||||
|
path: apps/minecraft
|
||||||
|
repoURL: git@github.com:amkartashov/gf-k8s
|
||||||
|
syncPolicy:
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
Loading…
Reference in a new issue