mirror of
https://gitea.fenix-dev.com/fenix-gitea-admin/iac-ansible-private.git
synced 2026-05-14 08:35:22 +00:00
minecraft
This commit is contained in:
@ -13,6 +13,7 @@ spec:
|
||||
labels:
|
||||
app: minecraft
|
||||
spec:
|
||||
hostNetwork: true # equivalente ao network_mode: host
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
runAsUser: 1013
|
||||
@ -20,6 +21,14 @@ spec:
|
||||
imagePullSecrets:
|
||||
- name: regcred
|
||||
containers:
|
||||
- name: playit
|
||||
image: ghcr.io/playit-cloud/playit-agent:0.17
|
||||
env:
|
||||
- name: SECRET_KEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: minecraft-secret # nome do Secret
|
||||
key: SECRET_KEY # chave dentro do Secret
|
||||
- name: minecraft
|
||||
image: itzg/minecraft-server
|
||||
stdin: true
|
||||
@ -32,7 +41,7 @@ spec:
|
||||
- configMapRef:
|
||||
name: minecraft-configmap
|
||||
ports:
|
||||
- containerPort: 19132
|
||||
- containerPort: 25565
|
||||
name: serverport
|
||||
volumeMounts:
|
||||
- name: data
|
||||
|
||||
Reference in New Issue
Block a user