--- kind: ClusterRole apiVersion: rbac.authorization.k8s.io/v1 metadata: name: adotcol-admin-role rules: - apiGroups: [""] resources: - nodes - nodes/proxy - services - endpoints - pods verbs: ["get", "list", "watch"] - apiGroups: - extensions resources: - ingresses verbs: ["get", "list", "watch"] - nonResourceURLs: ["/metrics"] verbs: ["get"] --- kind: ClusterRoleBinding apiVersion: rbac.authorization.k8s.io/v1 metadata: name: adotcol-admin-role-binding subjects: - kind: ServiceAccount name: adot-collector namespace: adot-col roleRef: kind: ClusterRole name: adotcol-admin-role apiGroup: rbac.authorization.k8s.io --- apiVersion: v1 kind: Service metadata: name: adot-collector namespace: adot-col labels: app: aws-adot component: adot-collector spec: ports: - name: metrics # Default endpoint for querying metrics. port: 8888 selector: component: adot-collector --- apiVersion: apps/v1 kind: DaemonSet metadata: name: adot-collector namespace: adot-col labels: app: aws-adot component: adot-collector spec: selector: matchLabels: app: aws-adot component: adot-collector minReadySeconds: 5 template: metadata: labels: app: aws-adot component: adot-collector spec: serviceAccountName: adot-collector containers: - command: - "/awscollector" - "--config=/conf/adot-collector-config.yaml" image: public.ecr.aws/aws-observability/aws-otel-collector:v0.9.0 name: adot-collector resources: limits: cpu: 1 memory: 2Gi requests: cpu: 200m memory: 400Mi ports: - containerPort: 8888 # Default endpoint for querying metrics. - name: otlpgrpc containerPort: 55680 hostPort: 55680 - name: otlphttp containerPort: 55681 hostPort: 55681 volumeMounts: - name: adot-collector-config-vol mountPath: /conf livenessProbe: httpGet: path: / port: 13133 # Health Check extension default port. readinessProbe: httpGet: path: / port: 13133 # Health Check extension default port. volumes: - configMap: name: adot-collector-conf items: - key: adot-collector-config path: adot-collector-config.yaml name: adot-collector-config-vol --- apiVersion: v1 kind: Service metadata: namespace: adot-col name: otlp-service spec: selector: component: adot-collector clusterIP: None ports: - name: otlpgrpc port: 55680 - name: otlphttp port: 55681