forked from kevchu3/azure-buildagent-container
-
Notifications
You must be signed in to change notification settings - Fork 0
/
agent-with-custom-ca-deployment.yaml
42 lines (42 loc) · 1.02 KB
/
agent-with-custom-ca-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
apiVersion: apps/v1
kind: Deployment
metadata:
name: azure-build-agent
spec:
selector:
matchLabels:
app: azure-build-agent
replicas: 1
template:
metadata:
annotations:
alpha.image.policy.openshift.io/resolve-names: '*'
labels:
app: azure-build-agent
spec:
containers:
- name: azure-build-agent
image: azure-build-agent:latest
envFrom:
- secretRef:
name: azdevops
- secretRef:
name: azproxy
optional: true
ports:
- containerPort: 8080
securityContext:
runAsUser: 1001
volumeMounts:
- name: trusted-ca
mountPath: /etc/pki/ca-trust/extracted/pem
readOnly: true
serviceAccount: azure-build-sa
serviceAccountName: azure-build-sa
volumes:
- name: trusted-ca
configMap:
name: ca-inject
items:
- key: ca-bundle.crt
path: tls-ca-bundle.pem