daemonset.yaml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. ---
  2. # Source: opentelemetry-collector/templates/daemonset.yaml
  3. apiVersion: apps/v1
  4. kind: DaemonSet
  5. metadata:
  6. name: example-opentelemetry-collector-agent
  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. selector:
  15. matchLabels:
  16. app.kubernetes.io/name: opentelemetry-collector
  17. app.kubernetes.io/instance: example
  18. component: agent-collector
  19. updateStrategy:
  20. type: RollingUpdate
  21. template:
  22. metadata:
  23. annotations:
  24. checksum/config: c34e37e3a3cb4b9408cefb0df8bdcd9879080605659a924bd28c2f9a6343f0a6
  25. labels:
  26. app.kubernetes.io/name: opentelemetry-collector
  27. app.kubernetes.io/instance: example
  28. component: agent-collector
  29. spec:
  30. serviceAccountName: example-opentelemetry-collector
  31. securityContext:
  32. {}
  33. containers:
  34. - name: opentelemetry-collector
  35. command:
  36. - /otelcol-contrib
  37. - --config=/conf/relay.yaml
  38. securityContext:
  39. {}
  40. image: "otel/opentelemetry-collector-contrib:0.73.0"
  41. imagePullPolicy: IfNotPresent
  42. ports:
  43. - name: jaeger-compact
  44. containerPort: 6831
  45. protocol: UDP
  46. hostPort: 6831
  47. - name: jaeger-grpc
  48. containerPort: 14250
  49. protocol: TCP
  50. hostPort: 14250
  51. - name: jaeger-thrift
  52. containerPort: 14268
  53. protocol: TCP
  54. hostPort: 14268
  55. - name: otlp
  56. containerPort: 4317
  57. protocol: TCP
  58. hostPort: 4317
  59. - name: otlp-http
  60. containerPort: 4318
  61. protocol: TCP
  62. hostPort: 4318
  63. - name: zipkin
  64. containerPort: 9411
  65. protocol: TCP
  66. hostPort: 9411
  67. env:
  68. - name: MY_POD_IP
  69. valueFrom:
  70. fieldRef:
  71. apiVersion: v1
  72. fieldPath: status.podIP
  73. livenessProbe:
  74. httpGet:
  75. path: /
  76. port: 13133
  77. readinessProbe:
  78. httpGet:
  79. path: /
  80. port: 13133
  81. resources:
  82. limits:
  83. cpu: 256m
  84. memory: 512Mi
  85. volumeMounts:
  86. - mountPath: /conf
  87. name: opentelemetry-collector-configmap
  88. - name: hostfs
  89. mountPath: /hostfs
  90. readOnly: true
  91. mountPropagation: HostToContainer
  92. volumes:
  93. - name: opentelemetry-collector-configmap
  94. configMap:
  95. name: example-opentelemetry-collector-agent
  96. items:
  97. - key: relay
  98. path: relay.yaml
  99. - name: hostfs
  100. hostPath:
  101. path: /
  102. hostNetwork: false