v1.0.0
This commit is contained in:
parent
0ca51b452a
commit
c1bed4ec37
@ -8,33 +8,7 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Namespace
|
kind: Namespace
|
||||||
metadata:
|
metadata:
|
||||||
name: "gondwana-{{ target_namespace }}"
|
name: gondwana
|
||||||
|
|
||||||
- name: Create persistent volume for gondwana
|
|
||||||
k8s:
|
|
||||||
state: present
|
|
||||||
definition:
|
|
||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolume
|
|
||||||
metadata:
|
|
||||||
name: gondwana-mc-pv
|
|
||||||
spec:
|
|
||||||
capacity:
|
|
||||||
storage: 32Gi
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
persistentVolumeReclaimPolicy: Retain
|
|
||||||
storageClassName: standard
|
|
||||||
hostPath:
|
|
||||||
path: "/data/store-0/gondwana/mc"
|
|
||||||
nodeAffinity:
|
|
||||||
required:
|
|
||||||
nodeSelectorTerms:
|
|
||||||
- matchExpressions:
|
|
||||||
- key: kubernetes.io/hostname
|
|
||||||
operator: In
|
|
||||||
values:
|
|
||||||
- alpha-worker-0
|
|
||||||
|
|
||||||
- name: Create persistent volume claim for gondwana volume
|
- name: Create persistent volume claim for gondwana volume
|
||||||
k8s:
|
k8s:
|
||||||
@ -43,16 +17,14 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
name: mc-pvc
|
name: gondwana
|
||||||
namespace: "gondwana-{{ target_namespace }}"
|
namespace: gondwana
|
||||||
spec:
|
spec:
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteOnce
|
- ReadWriteOnce
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 8Gi
|
storage: 32Gi
|
||||||
storageClassName: standard
|
|
||||||
volumeName: gondwana-mc-pv
|
|
||||||
|
|
||||||
- name: Create a Deployment
|
- name: Create a Deployment
|
||||||
k8s:
|
k8s:
|
||||||
@ -60,17 +32,17 @@
|
|||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: mc-deploy
|
name: gondwana
|
||||||
namespace: "gondwana-{{ target_namespace }}"
|
namespace: gondwana
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: mc
|
app: gondwana
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: mc
|
app: gondwana
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: minecraft
|
- name: minecraft
|
||||||
@ -85,16 +57,20 @@
|
|||||||
env:
|
env:
|
||||||
- name: EULA
|
- name: EULA
|
||||||
value: "TRUE"
|
value: "TRUE"
|
||||||
|
- name: VERSION
|
||||||
|
value: "1.21"
|
||||||
|
- name: FABRIC_LOADER_VERSION
|
||||||
|
value: "0.15.11"
|
||||||
- name: TYPE
|
- name: TYPE
|
||||||
value: "FABRIC"
|
value: "FABRIC"
|
||||||
- name: MODS
|
- name: MODS
|
||||||
value: "https://download.geysermc.org/v2/projects/geyser/versions/latest/builds/latest/downloads/fabric,https://cdn.modrinth.com/data/bWrNNfkb/versions/D4KXqjtC/Floodgate-Fabric-2.2.3-SNAPSHOT%2Bbuild.28.jar,https://www.curseforge.com/api/v1/mods/306612/files/5510851/download,https://www.curseforge.com/api/v1/mods/416089/files/5500955/download"
|
value: "https://www.curseforge.com/api/v1/mods/306612/files/5510851/download,https://www.curseforge.com/api/v1/mods/416089/files/5500955/download"
|
||||||
- name: MEMORY
|
- name: MEMORY
|
||||||
value: "8G"
|
value: "8G"
|
||||||
volumes:
|
volumes:
|
||||||
- name: data
|
- name: data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: mc-pvc
|
claimName: gondwana
|
||||||
|
|
||||||
- name: Expose Deployment as a Service
|
- name: Expose Deployment as a Service
|
||||||
k8s:
|
k8s:
|
||||||
@ -102,16 +78,16 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: mc-svc
|
name: gondwana
|
||||||
namespace: "gondwana-{{ target_namespace }}"
|
namespace: gondwana
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
app: mc
|
app: gondwana
|
||||||
ports:
|
ports:
|
||||||
- port: 24454
|
- port: 24454
|
||||||
protocol: UDP
|
protocol: UDP
|
||||||
name: mc-port-24454
|
name: voice-chat
|
||||||
- port: 25565
|
- port: 25565
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
name: mc-port-25565
|
name: minecraft
|
||||||
type: NodePort
|
type: LoadBalancer
|
||||||
|
Loading…
Reference in New Issue
Block a user