forked from aws-observability/aws-otel-collector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
otel-cloudwatch-sidecar.yaml
55 lines (54 loc) · 1.38 KB
/
otel-cloudwatch-sidecar.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
# create namespace
apiVersion: v1
kind: Namespace
metadata:
name: aws-otel-eks
labels:
name: aws-otel-eks
---
# create deployment
apiVersion: apps/v1
kind: Deployment
metadata:
name: aws-otel-eks-sidecar
namespace: aws-otel-eks
labels:
name: aws-otel-eks-sidecar
spec:
replicas: 1
selector:
matchLabels:
name: aws-otel-eks-sidecar
template:
metadata:
labels:
name: aws-otel-eks-sidecar
spec:
containers:
- name: aws-otel-emitter
image: "public.ecr.aws/aws-otel-test/aws-otel-java-spark:latest"
env:
- name: OTEL_OTLP_ENDPOINT
value: "localhost:4317"
- name: OTEL_RESOURCE
value: ClusterName={{cluster_name}}
- name: OTEL_RESOURCE_ATTRIBUTES
value: "service.namespace=AWSObservability,service.name=CloudWatchEKSService"
- name: S3_REGION
value: {{region}}
- name: OTEL_METRICS_EXPORTER
value: "otlp"
imagePullPolicy: Always
- name: aws-otel-collector
image: amazon/aws-otel-collector:latest
env:
- name: AWS_REGION
value: {{region}}
imagePullPolicy: Always
resources:
limits:
cpu: 256m
memory: 512Mi
requests:
cpu: 32m
memory: 24Mi