Initialize/yaml/compiler/compiler.yaml (26 lines of code) (raw):
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
kind: Deployment
metadata:
name: compiler
spec:
selector:
matchLabels:
app: compiler
replicas: 2 # tells deployment to run 2 pods matching the template
template:
metadata:
labels:
app: compiler
spec:
nodeSelector:
agentpool: captain
containers:
- name: compiler
image: IMAGE_PLACE_HOLDER
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 250m
memory: 256Mi