Skip to content

Commit 23387e6

Browse files
committed
docs: Update examples
1 parent eca77df commit 23387e6

4 files changed

Lines changed: 95 additions & 47 deletions

File tree

‎example/mc-bedrock-server-load.yml‎

Lines changed: 29 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,14 @@ spec:
3434
image: saulmaldonado/agones-mc # backup
3535
args:
3636
- load
37-
- --gcp-bucket-name=agones-minecraft-mc-worlds # GCP Cloud storage bucket name for world archives
3837
env:
39-
- name: NAME
38+
- name: BUCKET_NAME
39+
value: agones-minecraft-mc-worlds
40+
- name: POD_NAME
4041
valueFrom:
4142
fieldRef:
4243
fieldPath: metadata.name # GameServer name ref for logging
43-
- name: BACKUP
44+
- name: BACKUP_NAME
4445
valueFrom:
4546
fieldRef:
4647
fieldPath: metadata.annotations['agones.dev/sdk-backup'] # ref to agones.dev/sdk-backup to download archived world
@@ -66,27 +67,41 @@ spec:
6667
image: saulmaldonado/agones-mc
6768
args:
6869
- monitor
69-
- --attempts=5 # matches spec.health.failureThreshold
70-
- --initial-delay=60s # matches spec.health.initialDelaySeconds
71-
- --interval=10s # below spec.health.periodSecond
72-
- --timeout=10s # matches interval
73-
- --port=19132 # matches mc-server containerPort
74-
- --edition=bedrock # bedrock edition
70+
env:
71+
- name: INITIAL_DELAY
72+
value: 30s
73+
- name: MAX_ATTEMPTS
74+
value: 5
75+
- name: INTERVAL
76+
value: 10s
77+
- name: TIMEOUT
78+
value: 10s
79+
- name: PORT
80+
value: 19132
81+
- name: EDITION
82+
value: bedrock
7583
imagePullPolicy: Always
7684

7785
- name: mc-backup
7886
image: saulmaldonado/agones-mc # backup
7987
args:
8088
- backup
81-
- --gcp-bucket-name=agones-minecraft-mc-worlds # GCP Cloud storage bucket name for world archives
82-
- --backup-cron=0 */6 * * * # crontab for recurring backups. omiting flag will only run backup once
83-
- --initial-delay=60s # delay for mc-server to build world before scheduling backup jobs
84-
- --edition=bedrock
8589
env:
86-
- name: NAME
90+
- name: BUCKET_NAME
91+
value: agones-minecraft-mc-worlds
92+
- name: BACKUP_CRON
93+
value: 0 */6 * * *
94+
- name: INITIAL_DELAY
95+
value: 60s
96+
- name: EDITION
97+
value: bedrock
98+
- name: POD_NAME
8799
valueFrom:
88100
fieldRef:
89101
fieldPath: metadata.name # GameServer ref for naming backup zip files
102+
- name: RCON_PASSWORD
103+
value: minecraft # default rcon password. If provided RCON connection will be used to execute 'save-all' before a backup job.
104+
# Change the rcon password when exposing RCON port outside the pod
90105
imagePullPolicy: Always
91106
volumeMounts:
92107
- mountPath: /data # shared vol with mc-server

‎example/mc-bedrock-server.yml‎

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,27 +40,41 @@ spec:
4040
image: saulmaldonado/agones-mc
4141
args:
4242
- monitor
43-
- --attempts=5 # matches spec.health.failureThreshold
44-
- --initial-delay=60s # matches spec.health.initialDelaySeconds
45-
- --interval=10s # below spec.health.periodSecond
46-
- --timeout=10s # matches interval
47-
- --port=19132 # matches mc-server containerPort
48-
- --edition=bedrock # bedrock edition
43+
env:
44+
- name: INITIAL_DELAY
45+
value: 30s
46+
- name: MAX_ATTEMPTS
47+
value: 5
48+
- name: INTERVAL
49+
value: 10s
50+
- name: TIMEOUT
51+
value: 10s
52+
- name: PORT
53+
value: 19132
54+
- name: EDITION
55+
value: bedrock
4956
imagePullPolicy: Always
5057

5158
- name: mc-backup
5259
image: saulmaldonado/agones-mc # backup
5360
args:
5461
- backup
55-
- --gcp-bucket-name=agones-minecraft-mc-worlds # GCP Cloud storage bucket name for world archives
56-
- --backup-cron=*/5 * * * * # crontab for recurring backups. omiting flag will only run backup once
57-
- --initial-delay=60s # delay for mc-server to build world before scheduling backup jobs
58-
- --edition=bedrock
5962
env:
60-
- name: NAME
63+
- name: BUCKET_NAME
64+
value: agones-minecraft-mc-worlds
65+
- name: BACKUP_CRON
66+
value: 0 */6 * * *
67+
- name: INITIAL_DELAY
68+
value: 60s
69+
- name: EDITION
70+
value: bedrock
71+
- name: POD_NAME
6172
valueFrom:
6273
fieldRef:
6374
fieldPath: metadata.name # GameServer ref for naming backup zip files
75+
- name: RCON_PASSWORD
76+
value: minecraft # default rcon password. If provided RCON connection will be used to execute 'save-all' before a backup job.
77+
# Change the rcon password when exposing RCON port outside the pod
6478
imagePullPolicy: Always
6579
volumeMounts:
6680
- mountPath: /data # shared vol with mc-server

‎example/mc-server-load.yml‎

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,13 @@ spec:
3636
- load
3737
- --gcp-bucket-name=agones-minecraft-mc-worlds # GCP Cloud storage bucket name for world archives
3838
env:
39-
- name: NAME
40-
valueFrom:
39+
- name: BUCKET_NAME
40+
value: agones-minecraft-mc-worlds
41+
- name:
42+
valueFrom: POD_NAME
4143
fieldRef:
4244
fieldPath: metadata.name # GameServer name ref for logging
43-
- name: BACKUP
45+
- name: BACKUP_NAME
4446
valueFrom:
4547
fieldRef:
4648
fieldPath: metadata.annotations['agones.dev/sdk-backup'] # ref to agones.dev/sdk-backup to download archived world
@@ -65,24 +67,32 @@ spec:
6567
image: saulmaldonado/agones-mc # monitor
6668
args:
6769
- monitor
68-
- --attempts=5 # matches spec.health.failureThreshold
69-
- --initial-delay=60s # matches spec.health.initialDelaySeconds
70-
- --interval=10s # below spec.health.periodSecond
71-
- --timeout=10s # matches interval
70+
env:
71+
- name: INITIAL_DELAY
72+
value: 60s
73+
- name: MAX_ATTEMPTS
74+
value: 5
75+
- name: INTERVAL
76+
value: 10s
77+
- name: TIMEOUT
78+
value: 10s
7279
imagePullPolicy: Always
7380

7481
- name: mc-backup
7582
image: saulmaldonado/agones-mc # backup
7683
args:
7784
- backup
78-
- --gcp-bucket-name=agones-minecraft-mc-worlds # GCP Cloud storage bucket name for world archives
79-
- --backup-cron=0 */6 * * * # crontab for recurring backups. omiting flag will only run backup once
80-
- --initial-delay=60s # delay for mc-server to build world before scheduling backup jobs
8185
env:
82-
- name: NAME
86+
- name: BUCKET_NAME
87+
value: agones-minecraft-mc-worlds
88+
- name: BACKUP_CRON
89+
value: 0 */6 * * *
90+
- name: INITIAL_DELAY
91+
value: 60s
92+
- name: POD_NAME
8393
valueFrom:
8494
fieldRef:
85-
fieldPath: metadata.name # GameServer ref for nameing backup zip files
95+
fieldPath: metadata.name # GameServer ref for naming backup zip files
8696
- name: RCON_PASSWORD
8797
value: minecraft # default rcon password. If provided RCON connection will be used to execute 'save-all' before a backup job.
8898
# Change the rcon password when exposing RCON port outside the pod

‎example/mc-server.yml‎

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,29 +37,38 @@ spec:
3737

3838
- name: mc-monitor
3939
image: saulmaldonado/agones-mc # monitor
40+
env:
41+
- name: INITIAL_DELAY
42+
value: 60s
43+
- name: MAX_ATTEMPTS
44+
value: 5
45+
- name: INTERVAL
46+
value: 10s
47+
- name: TIMEOUT
48+
value: 10s
4049
args:
4150
- monitor
42-
- --attempts=5 # matches spec.health.failureThreshold
43-
- --initial-delay=60s # matches spec.health.initialDelaySeconds
44-
- --interval=10s # below spec.health.periodSecond
45-
- --timeout=10s # matches interval
4651
imagePullPolicy: Always
4752

4853
- name: mc-backup
4954
image: saulmaldonado/agones-mc # backup
50-
args:
51-
- backup
52-
- --gcp-bucket-name=agones-minecraft-mc-worlds # GCP Cloud storage bucket name for world archives
53-
- --backup-cron=0 */6 * * * # crontab for recurring backups. omiting flag will only run backup once
54-
- --initial-delay=60s # delay for mc-server to build world before scheduling backup jobs
5555
env:
56-
- name: NAME
56+
- name: BUCKET_NAME
57+
value: agones-minecraft-mc-worlds
58+
- name: BACKUP_CRON
59+
value: 0 */6 * * *
60+
- name: INITIAL_DELAY
61+
value: 60s
62+
- name: POD_NAME
5763
valueFrom:
5864
fieldRef:
5965
fieldPath: metadata.name # GameServer ref for naming backup zip files
6066
- name: RCON_PASSWORD
6167
value: minecraft # default rcon password. If provided RCON connection will be used to execute 'save-all' before a backup job.
6268
# Change the rcon password when exposing RCON port outside the pod
69+
args:
70+
- backup
71+
env:
6372
imagePullPolicy: Always
6473
volumeMounts:
6574
- mountPath: /data # shared vol with mc-server

0 commit comments

Comments
 (0)