Skip to content

Instantly share code, notes, and snippets.

@ravirajawasthi
Created June 1, 2020 04:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ravirajawasthi/067cf7155586a0c0a9c74084be581bd2 to your computer and use it in GitHub Desktop.
Save ravirajawasthi/067cf7155586a0c0a9c74084be581bd2 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