This repository has been archived by the owner on Feb 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16.8k
/
NOTES.txt
51 lines (40 loc) · 2.21 KB
/
NOTES.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{{- if eq (printf "%s" .Values.minecraftServer.eula) "FALSE" }}
##############################################################################
#### ERROR: You did not agree to the EULA in your 'helm install' call. ####
##############################################################################
This deployment will be incomplete until you read the Minecraft EULA linked
in the README.md, then:
helm upgrade {{ .Release.Name }} \
--set minecraftServer.eula=true stable/minecraft
{{- else -}}
Get the IP address of your Minecraft server by running these commands in the
same shell:
{{- if contains "NodePort" .Values.minecraftServer.serviceType }}
export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} \
-o jsonpath="{.spec.ports[0].nodePort}" services {{ template "minecraft.fullname" . }})
export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} \
-o jsonpath="{.items[0].status.addresses[0].address}")
echo "You'll need to expose this node through your security groups/firewall"
echo "for it to be world-accessible."
echo $NODE_IP:$NODE_PORT
{{- else if contains "LoadBalancer" .Values.minecraftServer.serviceType }}
!! NOTE: It may take a few minutes for the LoadBalancer IP to be available. !!
You can watch for EXTERNAL-IP to populate by running:
kubectl get svc --namespace {{ .Release.Namespace }} -w {{ template "minecraft.fullname" . }}
{{- else if contains "ClusterIP" .Values.minecraftServer.serviceType }}
export POD_NAME=$(kubectl get pods \
--namespace {{ .Release.Namespace }} \
-l "component={{ template "minecraft.fullname" . }}" \
-o jsonpath="{.items[0].metadata.name}")
kubectl port-forward $POD_NAME 25565:25565
echo "Point your Minecraft client at 127.0.0.1:22565"
{{- end }}
{{- if .Values.persistence.dataDir.enabled }}
{{- else }}
############################################################################
### WARNING: Persistence is disabled!!! You will lose your game state ###
### when the Minecraft pod is terminated. ###
### See values.yaml's persistence.dataDir.enabled directive. ###
############################################################################
{{- end }}
{{- end }}