Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.