Update the image version in the example file (#8)

* Update the image version in the example file

https://github.com/itzg/mc-router/issues/7

Deployed it with an older version. Works but ends up spiking in CPU usage. Easy to overlook. 

Also, for good measure/best practice, added resource request/limit.

* Bad syntax on CPU limit value
This commit is contained in:
Samuel Walker 2020-03-30 19:45:47 -04:00 committed by GitHub
parent 3ea1149681
commit be33d2c9d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,7 +63,7 @@ spec:
spec: spec:
serviceAccountName: mc-router serviceAccountName: mc-router
containers: containers:
- image: itzg/mc-router:1.1.1 - image: itzg/mc-router:latest
name: mc-router name: mc-router
args: ["--api-binding", ":8080", "--in-kube-cluster"] args: ["--api-binding", ":8080", "--in-kube-cluster"]
ports: ports:
@ -71,6 +71,13 @@ spec:
containerPort: 25565 containerPort: 25565
- name: web - name: web
containerPort: 8080 containerPort: 8080
resources:
requests:
memory: 50Mi
cpu: "100m"
limits:
memory: 100Mi
cpu: "250m"
--- ---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service