...
1apiVersion: opentelemetry.io/v1beta1
2kind: OpenTelemetryCollector
3metadata:
4 name: collector-name
5spec:
6 priorityClassName: edge-p4-operability-services
7 volumes:
8 - name: gcp-api-key
9 secret:
10 secretName: gcp-api-key
11 affinity:
12 nodeAffinity:
13 preferredDuringSchedulingIgnoredDuringExecution:
14 - preference:
15 matchExpressions:
16 - key: node.ncr.com/class
17 operator: In
18 values:
19 - server
20 weight: 100
21 requiredDuringSchedulingIgnoredDuringExecution:
22 nodeSelectorTerms:
23 - matchExpressions:
24 - key: node.ncr.com/class
25 operator: NotIn
26 values:
27 - touchpoint
28 - key: node.ncr.com/role
29 operator: NotIn
30 values:
31 - worker
32 - matchExpressions:
33 - key: node.ncr.com/role
34 operator: In
35 values:
36 - controlplane
37 tolerations:
38 - effect: NoExecute
39 key: node.kubernetes.io/not-ready
40 operator: Exists
41 - effect: NoExecute
42 key: node.kubernetes.io/unreachable
43 operator: Exists
44 - effect: NoSchedule
45 key: node.kubernetes.io/disk-pressure
46 operator: Exists
47 - effect: NoSchedule
48 key: node.kubernetes.io/memory-pressure
49 operator: Exists
50 - effect: NoSchedule
51 key: node.kubernetes.io/pid-pressure
52 operator: Exists
53 - effect: NoSchedule
54 key: node.kubernetes.io/unschedulable
55 operator: Exists
56 - effect: NoSchedule
57 key: node.kubernetes.io/network-unavailable
58 operator: Exists
59 env:
60 - name: BANNER_ID
61 valueFrom:
62 configMapKeyRef:
63 name: edge-info
64 key: banner.id
65 - name: BANNER_NAME
66 valueFrom:
67 configMapKeyRef:
68 name: edge-info
69 key: edge.banner
70 - name: CLUSTER_FLEET
71 valueFrom:
72 configMapKeyRef:
73 name: edge-info
74 key: cluster.fleet
75 - name: ENTERPRISE_UNIT_ID
76 valueFrom:
77 configMapKeyRef:
78 name: bsl-info
79 key: bsl.info.site.id
80 - name: GOOGLE_APPLICATION_CREDENTIALS
81 value: /etc/gcp/key.json
82 - name: ORGANIZATION_ID
83 valueFrom:
84 configMapKeyRef:
85 name: bsl-info
86 key: bsl.info.organization_id
87 - name: STORE_NAME
88 valueFrom:
89 configMapKeyRef:
90 name: edge-info
91 key: cluster.name
92 volumeMounts:
93 - name: gcp-api-key
94 readOnly: true
95 mountPath: /etc/gcp
96 config:
97 processors:
98 attributes:
99 actions:
100 - value: $${env:BANNER_NAME}
101 action: upsert
102 key: banner_name
103 - value: $${env:BANNER_ID}
104 action: upsert
105 key: banner_id
106 - value: $${env:CLUSTER_FLEET}
107 action: upsert
108 key: cluster_fleet
109 - value: $${env:STORE_NAME}
110 action: upsert
111 key: store_name
112 - value: $${env:ORGANIZATION_ID}
113 action: upsert
114 key: organization_id
115 - value: $${env:ENTERPRISE_UNIT_ID}
116 action: upsert
117 key: enterprise_unit_id
118 targetAllocator:
119 affinity:
120 nodeAffinity:
121 preferredDuringSchedulingIgnoredDuringExecution:
122 - preference:
123 matchExpressions:
124 - key: node.ncr.com/class
125 operator: In
126 values:
127 - server
128 weight: 100
129 requiredDuringSchedulingIgnoredDuringExecution:
130 nodeSelectorTerms:
131 - matchExpressions:
132 - key: node.ncr.com/class
133 operator: NotIn
134 values:
135 - touchpoint
136 - key: node.ncr.com/role
137 operator: NotIn
138 values:
139 - worker
140 - matchExpressions:
141 - key: node.ncr.com/role
142 operator: In
143 values:
144 - controlplane
145 tolerations:
146 - effect: NoExecute
147 key: node.kubernetes.io/not-ready
148 operator: Exists
149 - effect: NoExecute
150 key: node.kubernetes.io/unreachable
151 operator: Exists
152 - effect: NoSchedule
153 key: node.kubernetes.io/disk-pressure
154 operator: Exists
155 - effect: NoSchedule
156 key: node.kubernetes.io/memory-pressure
157 operator: Exists
158 - effect: NoSchedule
159 key: node.kubernetes.io/pid-pressure
160 operator: Exists
161 - effect: NoSchedule
162 key: node.kubernetes.io/unschedulable
163 operator: Exists
164 - effect: NoSchedule
165 key: node.kubernetes.io/network-unavailable
166 operator: Exists
View as plain text