statefulset.yaml 2.7 KB

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