Skip to content

Instantly share code, notes, and snippets.

@slmingol
Last active June 20, 2019 13:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slmingol/77500ff009989bfa66d45b64a5803dd7 to your computer and use it in GitHub Desktop.
Save slmingol/77500ff009989bfa66d45b64a5803dd7 to your computer and use it in GitHub Desktop.
Launch 75 minecraft servers on kubernetes
apiVersion: apps/v1
kind: Deployment
metadata:
name: dockerminecraft
spec:
replicas: 75
revisionHistoryLimit: 1
selector:
matchLabels:
app: dockerminecraft
strategy:
type: RollingUpdate
template:
metadata:
annotations:
openshift.io/generated-by: OpenShiftNewApp
creationTimestamp: null
labels:
app: dockerminecraft
deploymentconfig: dockerminecraft
spec:
containers:
- image: docker-registry.default.svc:5000/cpueater/dockerminecraft
imagePullPolicy: Always
name: dockerminecraft
ports:
- containerPort: 25565
protocol: TCP
resources:
limits:
cpu: 3
memory: "3G"
requests:
cpu: "70m"
memory: "1G"
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
nodeSelector:
cpueater: "true"
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
test: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment