deployment.yaml 2.8 KB

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