-
Notifications
You must be signed in to change notification settings - Fork 1
/
deployment.yaml
44 lines (43 loc) · 1.03 KB
/
deployment.yaml
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
44
apiVersion: apps/v1
kind: Deployment
metadata:
name: azure-linux-agent
namespace: ns-test
labels:
app: pipeline-agent
env: test
spec:
replicas: 1
selector:
matchLabels:
app: pipeline-agent
env: test
template:
metadata:
labels:
app: pipeline-agent
env: test
spec:
dnsPolicy: "None"
dnsConfig:
nameservers:
- 8.8.8.8
containers:
- name: azure-linux-agent
image: # Agent image
imagePullPolicy: Always
args: ['--once']
env:
- name: AZP_URL
value: #'https://dev.azure.com/<org-name>'
- name: AZP_TOKEN
value: #Personal Access Token with sufficient rights
- name: AZP_AGENT_NAME
value: # agent name that will be displayed in agent pools
volumeMounts:
- mountPath: /var/run/docker.sock
name: docker-volume
volumes:
- name: docker-volume
hostPath:
path: /var/run/docker.sock