0520668 Merge update from Common 4497566 Squashed '.gitlab/' changes from 731ada6..cf41f2e2de53deRemove .commona85a7aaMerge branch 'common-subtree'a074005Add '.gitlab/' from commit '731ada6a3d65b2347ccf204cfe09ee278a4f0594'422f4d4remove .gitlab subtree731ada6Merge branch 'make-update-fixes' into 'main'c3e6d73Switch to "subtree split" push strategy3c91292Make user stash their own damn changesd86b505Add PROJECT_NAME and VERSION9d0c9c6Update README with "common" remote30fb8c2Merge branch 'docker-buidlx-overhaul' into 'main'fd96b3fMerge branch 'git-release' into 'main'a6053edAdd make git-release3563c5cAdd make docker-release40a217bUse buildx to create multi-arch images5e2bc5fSwitch to container-builder buildx platforma5aa0caAutomated release for version 1.0.265b3a84make subtree "split" overhauld181d45Overhaul for get-server v. 2.0.09eed509Don't squash on pullb07a2c0Run update after make-push22a952dRemove warning from make-update0f6eeb7Add make-stash-drop commandf81d846Only pop stash if changesafed93fAdd warning to make-update and make-push6239af7Ignore git stash pop failures2f76759Add make-push command66b4fdbIgnore subtree pull failuresda69418Switch to url-based subtree with `make-update`ba12c92Remove docker-run74a4a4eTransition to .gitlab prefix3e8ca71Add chart-release to truenas.makefile4146777Add helm.makefile8a52a21Switch to multi-makefile strategyf187522init git-subtree-dir: minecraft git-subtree-split: 05206686ad84ad388c98578becfc5cfe3a13fdb4
64 lines
1.6 KiB
YAML
64 lines
1.6 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ .Release.Name }}
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: {{ .Release.Name }}
|
|
strategy:
|
|
type: Recreate
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: {{ .Release.Name }}
|
|
spec:
|
|
initContainers:
|
|
- name: get-version
|
|
image: {{ .Values.get_server.image }}
|
|
imagePullPolicy: Always
|
|
env:
|
|
- name: SERVER_VERSION
|
|
value: {{ .Values.server_version }}
|
|
volumeMounts:
|
|
- mountPath: /downloads
|
|
name: data
|
|
containers:
|
|
- name: {{ .Release.Name }}
|
|
image: {{ .Values.image }}
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- containerPort: 25565
|
|
volumeMounts:
|
|
- mountPath: /mc_data
|
|
name: data
|
|
- name: properties
|
|
mountPath: /mc_data/server.properties
|
|
subPath: server.properties
|
|
- name: properties
|
|
mountPath: /mc_data/eula.txt
|
|
subPath: eula.txt
|
|
tty: true
|
|
stdin: true
|
|
env:
|
|
- name: MAX_RAM
|
|
value: {{ .Values.max_ram | quote }}
|
|
- name: MIN_RAM
|
|
value: "1"
|
|
resources:
|
|
requests:
|
|
memory: {{ div .Values.max_ram 2 }}Gi
|
|
cpu: 1m
|
|
limits:
|
|
memory: {{ add 1 .Values.max_ram }}Gi
|
|
cpu: {{ .Values.max_cpu | quote }}
|
|
volumes:
|
|
- name: data
|
|
persistentVolumeClaim:
|
|
claimName: {{ .Release.Name }}
|
|
- name: properties
|
|
configMap:
|
|
name: {{ .Release.Name }}
|
|
securityContext:
|
|
fsGroup: 2000
|