Stage 2 of the Fleet migration for minecraft-router: bring the chart up to the
repo style guidelines. Chart 0.1.1+up1.25.1 -> 1.0.0+up1.25.1 (major: resource
renames, mappings becomes required, probes and security hardening change the
runtime behavior; appVersion unchanged).
- Resources renamed to {{ .Release.Name }}-{{ .Chart.Name }}-<kind>, templates
to <chart>.<kind>.yaml; the deployment label now matches its own selector.
- mappings is required and must not be empty (the old default rendered
"<nil>": "<nil>:25565"); every entry needs domain and internalUrl.
- Ports come from values: server.port (router listen port, also passed as
--port), server.backendPort (default backend port, overridable per mapping),
server.apiPort (--api-binding, used by the probes). Defaults stay 25565 /
25565 / 8080, server.outwardPort keeps its 25565 default and comment.
- _helpers.tpl added (resources/limitFactor and replicas/scaleDown helpers),
resources come from values, no CPU limit.
- replicas value plus the chart-global scaleDown flag.
- Additive env block rendered through tpl (value / secretKeyRef /
configMapKeyRef).
- Values-configurable securityContext.pod / .container with hardened defaults:
non-root uid/gid 10000, readOnlyRootFilesystem, no privilege escalation, all
capabilities dropped.
- Liveness, readiness and startup probes on the mc-router API: GET /routes with
an "Accept: application/json" header (the API router matches on that header
and answers 404 without it).
- icon added to Chart.yaml.
- CI fixture supplies mappings; README chart table entry updated.
19 lines
953 B
YAML
19 lines
953 B
YAML
# minecraft-router needs no secrets, no ingress and no persistence for a CI
|
|
# install - only two adjustments to the defaults:
|
|
#
|
|
# 1. server.outwardPort: the production default 25565 is outside the Kubernetes
|
|
# default node-port range (30000-32767). The real cluster runs an extended
|
|
# --service-node-port-range, the k3d CI cluster does not, so the API server
|
|
# would reject the Service. This is a CI-only override; the chart default
|
|
# stays 25565 (see minecraft-router/values.yaml). server.port (the port the
|
|
# router itself listens on) keeps its default and is unaffected.
|
|
# 2. mappings: required value without a default - a router without routes is
|
|
# not operable, so the CI install has to supply a routing table.
|
|
server:
|
|
outwardPort: 30565
|
|
mappings:
|
|
- domain: mc.example.com
|
|
internalUrl: survival-service.default.svc.cluster.local
|
|
- domain: creative.example.com
|
|
internalUrl: creative-service.default.svc.cluster.local
|