Takes the existing mc-router chart over from cluster-config as-is so the deployment can move to Fleet without any change to the rolled-out state. Convention alignment follows in stage 2, the app update in stage 3. The only deviation from "unchanged": Chart.yaml carried name: minecraft-server (copy-paste from the sister chart). The publish job pushes by the glob <directory>-*.tgz while helm package names the archive after the Chart.yaml name, so without this correction the push finds no file. Version 0.1.1+up1.25.1 - chart semver stays at 0.1.1, the +up suffix is repo policy and does not affect rendering. Also wires up CI: publish workflow, change-app-version choice list, install-test values (CI-only node-port override, since 25565 is outside the k3d default range) and the README chart table.
48 lines
1.3 KiB
YAML
48 lines
1.3 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ .Release.Name }}-deployment
|
|
labels:
|
|
app: {{ .Release.Name }}
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: {{ .Release.Name }}-deployment
|
|
template:
|
|
metadata:
|
|
name: {{ .Release.Name }}-deployment
|
|
labels:
|
|
app: {{ .Release.Name }}-deployment
|
|
spec:
|
|
automountServiceAccountToken: false
|
|
containers:
|
|
- image: "itzg/mc-router:{{ .Chart.AppVersion }}"
|
|
name: mc-router
|
|
args: ["--api-binding", ":8080"]
|
|
ports:
|
|
- name: proxy-port
|
|
containerPort: 25565
|
|
- name: api-port
|
|
containerPort: 8080
|
|
env:
|
|
- name: ROUTES_CONFIG
|
|
value: /data/custom-routing-config.json
|
|
resources:
|
|
requests:
|
|
memory: 50Mi
|
|
cpu: "100m"
|
|
ephemeral-storage: "50Mi"
|
|
limits:
|
|
memory: 100Mi
|
|
cpu: "250m"
|
|
ephemeral-storage: "500Mi"
|
|
volumeMounts:
|
|
- name: config-mount
|
|
mountPath: /data/custom-routing-config.json
|
|
subPath: custom-routing-config.json
|
|
|
|
volumes:
|
|
- name: config-mount
|
|
configMap:
|
|
name: {{ .Release.Name }}-config |