|
29 | 29 | # Make sure to add the otlp receiver.
|
30 | 30 | # This will open up the receiver on port 55680
|
31 | 31 | otlp:
|
32 |
| - endpoint: 0.0.0.0:55680 |
| 32 | + protocols: |
| 33 | + grpc: |
| 34 | + endpoint: "0.0.0.0:55680" |
33 | 35 | processors:
|
34 | 36 | extensions:
|
35 | 37 | health_check: {}
|
@@ -64,19 +66,18 @@ metadata:
|
64 | 66 | component: otel-collector
|
65 | 67 | spec:
|
66 | 68 | ports:
|
67 |
| - - name: otlp # Default endpoint for otlp receiver. |
68 |
| - port: 55680 |
69 |
| - protocol: TCP |
70 |
| - targetPort: 55680 |
71 |
| - nodePort: 30080 |
72 |
| - - name: metrics # Default endpoint for metrics. |
73 |
| - port: 8889 |
74 |
| - protocol: TCP |
75 |
| - targetPort: 8889 |
| 69 | + - name: otlp # Default endpoint for otlp receiver. |
| 70 | + port: 55680 |
| 71 | + protocol: TCP |
| 72 | + targetPort: 55680 |
| 73 | + nodePort: 30080 |
| 74 | + - name: metrics # Default endpoint for metrics. |
| 75 | + port: 8889 |
| 76 | + protocol: TCP |
| 77 | + targetPort: 8889 |
76 | 78 | selector:
|
77 | 79 | component: otel-collector
|
78 |
| - type: |
79 |
| - NodePort |
| 80 | + type: NodePort |
80 | 81 | ---
|
81 | 82 | apiVersion: apps/v1
|
82 | 83 | kind: Deployment
|
@@ -105,39 +106,39 @@ spec:
|
105 | 106 | component: otel-collector
|
106 | 107 | spec:
|
107 | 108 | containers:
|
108 |
| - - command: |
109 |
| - - "/otelcol" |
110 |
| - - "--config=/conf/otel-collector-config.yaml" |
111 |
| -# Memory Ballast size should be max 1/3 to 1/2 of memory. |
112 |
| - - "--mem-ballast-size-mib=683" |
113 |
| - env: |
114 |
| - - name: GOGC |
115 |
| - value: "80" |
116 |
| - image: otel/opentelemetry-collector:0.3.0 |
117 |
| - name: otel-collector |
118 |
| - resources: |
119 |
| - limits: |
120 |
| - cpu: 1 |
121 |
| - memory: 2Gi |
122 |
| - requests: |
123 |
| - cpu: 200m |
124 |
| - memory: 400Mi |
125 |
| - ports: |
126 |
| - - containerPort: 55680 # Default endpoint for otlp receiver. |
127 |
| - - containerPort: 8889 # Default endpoint for querying metrics. |
128 |
| - volumeMounts: |
129 |
| - - name: otel-collector-config-vol |
130 |
| - mountPath: /conf |
131 |
| -# - name: otel-collector-secrets |
132 |
| -# mountPath: /secrets |
133 |
| - livenessProbe: |
134 |
| - httpGet: |
135 |
| - path: / |
136 |
| - port: 13133 # Health Check extension default port. |
137 |
| - readinessProbe: |
138 |
| - httpGet: |
139 |
| - path: / |
140 |
| - port: 13133 # Health Check extension default port. |
| 109 | + - command: |
| 110 | + - "/otelcol" |
| 111 | + - "--config=/conf/otel-collector-config.yaml" |
| 112 | + # Memory Ballast size should be max 1/3 to 1/2 of memory. |
| 113 | + - "--mem-ballast-size-mib=683" |
| 114 | + env: |
| 115 | + - name: GOGC |
| 116 | + value: "80" |
| 117 | + image: otel/opentelemetry-collector:0.5.0 |
| 118 | + name: otel-collector |
| 119 | + resources: |
| 120 | + limits: |
| 121 | + cpu: 1 |
| 122 | + memory: 2Gi |
| 123 | + requests: |
| 124 | + cpu: 200m |
| 125 | + memory: 400Mi |
| 126 | + ports: |
| 127 | + - containerPort: 55680 # Default endpoint for otlp receiver. |
| 128 | + - containerPort: 8889 # Default endpoint for querying metrics. |
| 129 | + volumeMounts: |
| 130 | + - name: otel-collector-config-vol |
| 131 | + mountPath: /conf |
| 132 | + # - name: otel-collector-secrets |
| 133 | + # mountPath: /secrets |
| 134 | + livenessProbe: |
| 135 | + httpGet: |
| 136 | + path: / |
| 137 | + port: 13133 # Health Check extension default port. |
| 138 | + readinessProbe: |
| 139 | + httpGet: |
| 140 | + path: / |
| 141 | + port: 13133 # Health Check extension default port. |
141 | 142 | volumes:
|
142 | 143 | - configMap:
|
143 | 144 | name: otel-collector-conf
|
|
0 commit comments