-
Notifications
You must be signed in to change notification settings - Fork 184
/
basic.output.yaml
157 lines (154 loc) · 4.75 KB
/
basic.output.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
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
---
# Source: sumologic/templates/events/otelcol/statefulset.yaml
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: RELEASE-NAME-sumologic-otelcol-events
namespace: sumologic
labels:
app: RELEASE-NAME-sumologic-otelcol-events
chart: "sumologic-%CURRENT_CHART_VERSION%"
release: "RELEASE-NAME"
heritage: "Helm"
spec:
selector:
matchLabels:
app: RELEASE-NAME-sumologic-otelcol-events
serviceName: RELEASE-NAME-sumologic-otelcol-events-headless
podManagementPolicy: "Parallel"
replicas: 1
template:
metadata:
annotations:
checksum/config: "%CONFIG_CHECKSUM%"
someAnnotation: someValue
labels:
app: RELEASE-NAME-sumologic-otelcol-events
sumologic.com/scrape: "true"
sumologic.com/app: otelcol-events
sumologic.com/component: events
chart: "sumologic-%CURRENT_CHART_VERSION%"
release: "RELEASE-NAME"
heritage: "Helm"
someLabel: someValue
spec:
serviceAccountName: RELEASE-NAME-sumologic
nodeSelector:
kubernetes.io/os: linux
sumologic.com/kind: worker
tolerations:
- effect: NoSchedule
key: worker
operator: Equal
value: worker
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app
operator: In
values:
- RELEASE-NAME-sumologic-otelcol-logs
- RELEASE-NAME-sumologic-otelcol-metrics
- RELEASE-NAME-sumologic-otelcol-events
- RELEASE-NAME-sumologic-otelcol-instrumentation
- key: app
operator: In
values:
- prometheus-operator-prometheus
topologyKey: "kubernetes.io/hostname"
volumes:
- name: config-volume
configMap:
name: RELEASE-NAME-sumologic-otelcol-events
- name: es-certs
secret:
defaultMode: 420
secretName: es-certs
securityContext:
fsGroup: 999
priorityClassName: "prio"
containers:
- name: otelcol
image: "public.ecr.aws/sumologic/sumologic-otel-collector:0.108.0-sumo-0"
imagePullPolicy: IfNotPresent
args:
- --config=/etc/otel/config.yaml
resources:
limits:
cpu: 2000m
memory: 2Gi
requests:
cpu: 100m
memory: 777Mi
ports:
- name: metrics
containerPort: 8888
protocol: TCP
- name: pprof
containerPort: 1777
protocol: TCP
livenessProbe:
httpGet:
path: /
port: 13133 # Health Check extension default port.
failureThreshold: 3
initialDelaySeconds: 15
periodSeconds: 15
timeoutSeconds: 10
readinessProbe:
httpGet:
path: /
port: 13133 # Health Check extension default port.
failureThreshold: 3
initialDelaySeconds: 5
periodSeconds: 10
timeoutSeconds: 3
startupProbe:
httpGet:
path: /
port: 13133 # Health Check extension default port.
failureThreshold: 60
periodSeconds: 3
volumeMounts:
- name: config-volume
mountPath: /etc/otel/config.yaml
subPath: config.yaml
- name: file-storage
mountPath: /var/lib/storage/events
- mountPath: /certs
name: es-certs
readOnly: true
env:
- name: SUMO_ENDPOINT_DEFAULT_EVENTS_SOURCE
valueFrom:
secretKeyRef:
name: sumologic
key: endpoint-events
- name: SUMO_ENDPOINT_DEFAULT_OTLP_EVENTS_SOURCE
valueFrom:
secretKeyRef:
name: sumologic
key: endpoint-events-otlp
- name: NO_PROXY
value: kubernetes.default.svc
- name: MY_POD_IP
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: status.podIP
- name: VALUE_FROM_SECRET
valueFrom:
secretKeyRef:
key: secret_key
name: secret_name
volumeClaimTemplates:
- metadata:
name: file-storage
spec:
accessModes: [ReadWriteOnce]
storageClassName:
resources:
requests:
storage: 10Gi