deployment.yaml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. ---
  2. # Source: opentelemetry-collector/templates/deployment.yaml
  3. apiVersion: apps/v1
  4. kind: Deployment
  5. metadata:
  6. name: example-opentelemetry-collector
  7. labels:
  8. helm.sh/chart: opentelemetry-collector-0.50.1
  9. app.kubernetes.io/name: opentelemetry-collector
  10. app.kubernetes.io/instance: example
  11. app.kubernetes.io/version: "0.73.0"
  12. app.kubernetes.io/managed-by: Helm
  13. spec:
  14. replicas: 3
  15. revisionHistoryLimit: 10
  16. selector:
  17. matchLabels:
  18. app.kubernetes.io/name: opentelemetry-collector
  19. app.kubernetes.io/instance: example
  20. component: standalone-collector
  21. strategy:
  22. type: RollingUpdate
  23. template:
  24. metadata:
  25. annotations:
  26. checksum/config: 890f90c78bc9bd242ae0c0cc5b221debac13157285dca7c52fa1e09ce77b1101
  27. labels:
  28. app.kubernetes.io/name: opentelemetry-collector
  29. app.kubernetes.io/instance: example
  30. component: standalone-collector
  31. spec:
  32. serviceAccountName: example-opentelemetry-collector
  33. securityContext:
  34. {}
  35. containers:
  36. - name: opentelemetry-collector
  37. command:
  38. - /otelcol-contrib
  39. - --config=/conf/relay.yaml
  40. securityContext:
  41. {}
  42. image: "otel/opentelemetry-collector-contrib:0.73.0"
  43. imagePullPolicy: IfNotPresent
  44. ports:
  45. - name: jaeger-compact
  46. containerPort: 6831
  47. protocol: UDP
  48. - name: jaeger-grpc
  49. containerPort: 14250
  50. protocol: TCP
  51. - name: jaeger-thrift
  52. containerPort: 14268
  53. protocol: TCP
  54. - name: otlp
  55. containerPort: 4317
  56. protocol: TCP
  57. - name: otlp-http
  58. containerPort: 4318
  59. protocol: TCP
  60. - name: zipkin
  61. containerPort: 9411
  62. protocol: TCP
  63. env:
  64. - name: MY_POD_IP
  65. valueFrom:
  66. fieldRef:
  67. apiVersion: v1
  68. fieldPath: status.podIP
  69. livenessProbe:
  70. httpGet:
  71. path: /
  72. port: 13133
  73. readinessProbe:
  74. httpGet:
  75. path: /
  76. port: 13133
  77. resources:
  78. limits:
  79. cpu: 2
  80. memory: 4Gi
  81. volumeMounts:
  82. - mountPath: /conf
  83. name: opentelemetry-collector-configmap
  84. volumes:
  85. - name: opentelemetry-collector-configmap
  86. configMap:
  87. name: example-opentelemetry-collector
  88. items:
  89. - key: relay
  90. path: relay.yaml
  91. hostNetwork: false