This repository was archived by the owner on Apr 18, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathmetadata-agent.yaml
More file actions
84 lines (84 loc) · 2.22 KB
/
metadata-agent.yaml
File metadata and controls
84 lines (84 loc) · 2.22 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: stackdriver-metadata-agent
cluster-level: "true"
name: stackdriver-metadata-agent-cluster-level
namespace: stackdriver-agents
spec:
replicas: 1
selector:
matchLabels:
app: stackdriver-metadata-agent
cluster-level: "true"
template:
metadata:
labels:
app: stackdriver-metadata-agent
cluster-level: "true"
spec:
containers:
- env:
- name: CLUSTER_NAME
valueFrom:
configMapKeyRef:
name: cluster-config
key: cluster_name
- name: CLUSTER_LOCATION
valueFrom:
configMapKeyRef:
name: cluster-config
key: cluster_location
- name: GOOGLE_APPLICATION_CREDENTIALS
valueFrom:
configMapKeyRef:
name: google-cloud-config
key: credentials_path
- name: PROMETHEUS_PORT
value: "8888"
args:
- -logtostderr
- -v=1
image: gcr.io/stackdriver-agents/metadata-agent-go:1.3.0
imagePullPolicy: IfNotPresent
name: metadata-agent
resources:
requests:
cpu: 40m
memory: 50Mi
ports:
- name: metadata-agent
containerPort: 8888
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /etc/google-cloud/
name: google-cloud-config
- mountPath: /etc/ssl/certs
name: ssl-certs
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
serviceAccount: metadata-agent
serviceAccountName: metadata-agent
tolerations:
- operator: "Exists"
effect: "NoExecute"
- operator: "Exists"
effect: "NoSchedule"
terminationGracePeriodSeconds: 5
volumes:
- configMap:
defaultMode: 420
name: google-cloud-config
name: google-cloud-config
- hostPath:
path: /etc/ssl/certs
type: Directory
name: ssl-certs
strategy:
rollingUpdate:
maxUnavailable: 1
type: RollingUpdate