working with images

This commit is contained in:
2025-04-03 23:46:25 +03:00
parent f464e8966d
commit b021c161ca
7 changed files with 184 additions and 15 deletions

View File

@@ -4,6 +4,20 @@ metadata:
labels:
app.kubernetes.io/name: kubernetes-operator
app.kubernetes.io/managed-by: kustomize
name: image-sample
name: minecraft-paper-1-21-4
spec:
# TODO(user): Add fields here
location: git.acooldomain.co/server-manager/minecraft:paper-1.21.4
name: minecraft:paper-1.21.4
working_dir: /opt/server
ports:
- port: 25565
protocol: TCP
init_script:
image: alpine:latest
command:
- /bin/sh
args:
- /bin/sh
- "-c"
- "echo eula=true >> /data/eula.txt"

View File

@@ -11,8 +11,7 @@ spec:
"on": true
server:
"on": true
image: git.acooldomain.co/server-manager/minecraft:paper-1.21.4
working_dir: /opt/server
image: minecraft-paper-1-21-4
ports:
- protocol: TCP
port: 25565