Skip to content

Instantly share code, notes, and snippets.

@mattymo
Created April 18, 2017 15:34
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 mattymo/5681497fdfb891da676726bf2e67ebd5 to your computer and use it in GitHub Desktop.
Save mattymo/5681497fdfb891da676726bf2e67ebd5 to your computer and use it in GitHub Desktop.
TeamCity agent deployment resource
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: teamcity-agent
labels:
name: teamcity-agent
name: frontend
spec:
replicas: 3
template:
metadata:
labels:
app: teamcity-agent
nodeSelector:
teamcity-agent: true
containers:
- resources:
requests:
cpu: 1
memory: 100Mi
limits:
cpu: 2
memory: 1Gi
image: teamcity-agent:latest
name: teamcity-agent
env:
- name: SERVER_URL
value: teamcity
- name: AGENT_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment