diff --git a/stable/minecraft/Chart.yaml b/stable/minecraft/Chart.yaml index 25755ccc17..ec170628a6 100755 --- a/stable/minecraft/Chart.yaml +++ b/stable/minecraft/Chart.yaml @@ -1,5 +1,5 @@ name: minecraft -version: 0.2.1 +version: 0.2.2 appVersion: 1.12.2 home: https://minecraft.net/ description: Minecraft server @@ -10,5 +10,5 @@ sources: - https://hub.docker.com/r/itzg/minecraft-server/~/dockerfile/ - https://github.com/itzg/dockerfiles maintainers: -- name: Greg Taylor +- name: gtaylor email: gtaylor@gc-taylor.com diff --git a/stable/minecraft/ci/test-values.yaml b/stable/minecraft/ci/test-values.yaml new file mode 100644 index 0000000000..440b8e070b --- /dev/null +++ b/stable/minecraft/ci/test-values.yaml @@ -0,0 +1,3 @@ +# This must be overridden, since we can't accept this for the user. + minecraftServer.eula: "TRUE" +#fix in place and rebased diff --git a/stable/minecraft/templates/deployment.yaml b/stable/minecraft/templates/deployment.yaml index cc0b7014fe..00cb24af37 100644 --- a/stable/minecraft/templates/deployment.yaml +++ b/stable/minecraft/templates/deployment.yaml @@ -14,6 +14,9 @@ spec: labels: app: {{ template "minecraft.fullname" . }} spec: + securityContext: + runAsUser: {{ .Values.securityContext.runAsUser }} + fsGroup: {{ .Values.securityContext.fsGroup }} containers: - name: {{ template "minecraft.fullname" . }} image: "{{ .Values.image }}:{{ .Values.imageTag }}" diff --git a/stable/minecraft/values.yaml b/stable/minecraft/values.yaml index 4523782c68..d6c5e79d11 100644 --- a/stable/minecraft/values.yaml +++ b/stable/minecraft/values.yaml @@ -10,13 +10,17 @@ resources: memory: 512Mi cpu: 500m +securityContext: + # Security context settings + runAsUser: 1000 + fsGroup: 2000 # Most of these map to environment variables. See Minecraft for details: # https://hub.docker.com/r/itzg/minecraft-server/ minecraftServer: # This must be overridden, since we can't accept this for the user. eula: "FALSE" # One of: LATEST, SNAPSHOT, or a specific version (ie: "1.7.9"). - version: "LATEST" + version: "1.12.2" # One of: peaceful, easy, normal, and hard difficulty: easy # A comma-separated list of player names to whitelist. @@ -72,7 +76,6 @@ minecraftServer: # If you adjust this, you may need to adjust resources.requests above to match. jvmOpts: "-Xmx512M -Xms512M" serviceType: LoadBalancer - rcon: # If you enable this, make SURE to change your password below. enabled: false