2021-11-20 19:16:56 +01:00
|
|
|
# used by ../skaffold.yaml
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
run: mc-router
|
|
|
|
name: mc-router
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
run: mc-router
|
|
|
|
strategy:
|
|
|
|
type: Recreate
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
run: mc-router
|
|
|
|
spec:
|
|
|
|
serviceAccountName: mc-router
|
|
|
|
containers:
|
|
|
|
- image: itzg/mc-router:latest
|
|
|
|
name: mc-router
|
2022-01-07 00:41:10 +01:00
|
|
|
# Add "--auto-scale-up" here for https://github.com/itzg/mc-router/#auto-scale-up
|
2021-11-20 19:16:56 +01:00
|
|
|
args: ["--api-binding", ":8080", "--in-kube-cluster"]
|
|
|
|
ports:
|
|
|
|
- name: proxy
|
|
|
|
containerPort: 25565
|
|
|
|
- name: web
|
|
|
|
containerPort: 8080
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
memory: 50Mi
|
|
|
|
cpu: "100m"
|
|
|
|
limits:
|
|
|
|
memory: 100Mi
|
|
|
|
cpu: "250m"
|