Skip to content

Instantly share code, notes, and snippets.

@hvanmegen
Forked from ravirajawasthi/factorio-depl.yaml
Created June 1, 2020 23:57
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 hvanmegen/b59518285aca6037a696b91b35f51e0c to your computer and use it in GitHub Desktop.
Save hvanmegen/b59518285aca6037a696b91b35f51e0c to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: factorio
spec:
replicas: 1
selector:
matchLabels:
app: factorio
template:
metadata:
labels:
app: factorio
spec:
nodeSelector:
"beta.kubernetes.io/os": linux
containers:
- name: factorio
image: factoriotools/factorio:stable
resources:
requests:
cpu: 100m
memory: 512Mi
limits:
cpu: 250m
memory: 1000Mi
ports:
- containerPort: 34197
protocol: UDP
---
apiVersion: v1
kind: Service
metadata:
name: factorio
spec:
type: LoadBalancer
ports:
- port: 34197
protocol: UDP
selector:
app: factorio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment