-
Notifications
You must be signed in to change notification settings - Fork 0
/
k8smonitor.yaml
48 lines (48 loc) · 1.39 KB
/
k8smonitor.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
45
46
47
48
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: devops-clusteragent
spec:
replicas: 1
template:
metadata:
labels:
name: devops-clusteragent
spec:
serviceAccountName: appd-k8s
initContainers:
- name: agent-repo
image: 632713433352.dkr.ecr.us-west-2.amazonaws.com/agent_repo:4.5.1.0
imagePullPolicy: Always
command: ["cp", "-r", "/sharedFiles/MachineAgent", "/mountPath/MachineAgent"]
volumeMounts:
- mountPath: /mountPath
name: shared-files
containers:
- name: devops-clusteragent
image: 632713433352.dkr.ecr.us-west-2.amazonaws.com/ad_devops_k8s_extension:0.72
imagePullPolicy: Always
envFrom:
- configMapRef:
name: controller-config
env:
- name: TIER_NAME
value: ClusterAgent
- name: METRIC_LIMIT
value: "2000"
- name: HOSTNAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
volumeMounts:
- name: shared-files
mountPath: /sharedFiles
- name: config-volume
mountPath: /tmp/k8sconfig/
volumes:
- name: config-volume
configMap:
name: k8smachine-config
- name: shared-files
emptyDir: {}
restartPolicy: Always