commit 8634cf9bd4a767084fe3a24d46868afa35cccaf3 Author: ryota hayashi <tetsu@k3s-conf.minervajuppiter.net> Date: Sat, 24 Jan 2026 09:54:09 +0000 add k3s settings Diffstat:
| A | bds-deploy.yaml | | | 45 | +++++++++++++++++++++++++++++++++++++++++++++ |
| A | bds-pvc.yaml | | | 11 | +++++++++++ |
| A | playit-tunnel.yaml | | | 25 | +++++++++++++++++++++++++ |
3 files changed, 81 insertions(+), 0 deletions(-)
diff --git a/bds-deploy.yaml b/bds-deploy.yaml @@ -0,0 +1,45 @@ +# bds-deploy.yaml +apiVersion: apps/v1 +kind: Deployment +metadata: + name: minecraft-bds +spec: + replicas: 1 + selector: + matchLabels: + app: bds + template: + metadata: + labels: + app: bds + spec: + containers: + - name: bds + image: itzg/minecraft-bedrock-server + env: + - name: EULA + value: "TRUE" + ports: + - containerPort: 19132 + protocol: UDP + volumeMounts: + - name: data + mountPath: /data + volumes: + - name: data + persistentVolumeClaim: + claimName: bds-data-pvc +--- +apiVersion: v1 +kind: Service +metadata: + name: bds-service +spec: + type: NodePort + selector: + app: bds + ports: + - protocol: UDP + port: 19132 + targetPort: 19132 + nodePort: 31932 diff --git a/bds-pvc.yaml b/bds-pvc.yaml @@ -0,0 +1,11 @@ +# bds-pvc.yaml +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: bds-data-pvc +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 2Gi diff --git a/playit-tunnel.yaml b/playit-tunnel.yaml @@ -0,0 +1,25 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: playit-agent +spec: + replicas: 1 + selector: + matchLabels: + app: playit + template: + metadata: + labels: + app: playit + spec: + containers: + - name: playit + image: ghcr.io/playit-cloud/playit-agent:0.16 + tty: true + stdin: true + env: + - name: SECRET_KEY # 変数名を公式に合わせる + valueFrom: + secretKeyRef: + name: playit-secret + key: secret-key