-
Notifications
You must be signed in to change notification settings - Fork 20
/
ReplicationController.yml
43 lines (43 loc) · 1.04 KB
/
ReplicationController.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
apiVersion: apps/v1
kind: Deployment
metadata:
name: azdevops-deployment
spec:
replicas: 3
progressDeadlineSeconds: 1800
selector:
matchLabels:
app: azdevops-agent
template:
metadata:
labels:
app: azdevops-agent
spec:
containers:
- name: selfhosted-agents
image: ACR_NAME/REPOSITORY_NAME:latest
ports:
- containerPort: 80
resources:
requests:
cpu: "130m"
memory: "300Mi"
limits:
cpu: "130m"
memory: "300Mi"
env:
- name: AZP_POOL
value: AZP_POOL_NAME
- name: AZP_TOKEN
value: AZP_TOKEN_SECRET
- name: AZP_URL
value: AZP_URL_VALUE
volumeMounts:
- name: docker-graph-storage
mountPath: /var/run/docker.sock
imagePullSecrets:
- name: acr-secret
volumes:
- name: docker-graph-storage
hostPath:
path: /var/run/docker.sock