cloudwise-apm-euspace.yaml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. apiVersion: v1
  2. kind: Namespace
  3. metadata:
  4. name: cloudwise-apm
  5. ---
  6. apiVersion: apps/v1
  7. kind: DaemonSet
  8. metadata:
  9. name: cloudwise-apm-euspace
  10. namespace: cloudwise-apm
  11. spec:
  12. selector:
  13. matchLabels:
  14. app: cloudwise-apm-euspace
  15. template:
  16. metadata:
  17. annotations:
  18. container.apparmor.security.beta.kubernetes.io/cloudwise-apm-euspace: unconfined
  19. labels:
  20. app: cloudwise-apm-euspace
  21. spec:
  22. hostPID: true
  23. nodeSelector:
  24. kubernetes.io/os: linux
  25. kubernetes.io/arch: amd64
  26. containers:
  27. - name: cloudwise-apm-euspace
  28. image: harbor.cloudwise.com/apm/euspace_dev:1.0
  29. imagePullPolicy: Always
  30. # imagePullPolicy: IfNotPresent
  31. args: ["--listen", "0.0.0.0:8123", "--cgroupfs-root", "/host/sys/fs/cgroup","--run-in-container"]
  32. ports:
  33. - containerPort: 8123
  34. name: http
  35. securityContext:
  36. privileged: true
  37. runAsUser: 0
  38. volumeMounts:
  39. - name: sys-fs-cgroup
  40. mountPath: /host/sys/fs/cgroup
  41. readOnly: true
  42. - name: sys-kernel-debug
  43. mountPath: /sys/kernel/debug
  44. readOnly: true
  45. - name: host-usr
  46. mountPath: /host/usr
  47. readOnly: true
  48. mountPropagation: HostToContainer
  49. - name: host-var
  50. mountPath: /host/var
  51. readOnly: false
  52. mountPropagation: HostToContainer
  53. - name: host-run
  54. mountPath: /host/run
  55. readOnly: false
  56. mountPropagation: HostToContainer
  57. - name: host-tmp
  58. mountPath: /host/tmp
  59. readOnly: false
  60. mountPropagation: HostToContainer
  61. env:
  62. - name: SEND
  63. value: '1'
  64. - name: TRACES_ENDPOINT
  65. value: 'http://10.0.16.250:18080/docp/api/v2/data/receive'
  66. - name: FILTER_PID
  67. value: ''
  68. volumes:
  69. - name: sys-fs-cgroup
  70. hostPath:
  71. path: /sys/fs/cgroup
  72. - name: sys-kernel-debug
  73. hostPath:
  74. path: /sys/kernel/debug
  75. - name: host-usr
  76. hostPath:
  77. path: /usr
  78. type: Directory
  79. - name: host-var
  80. hostPath:
  81. path: /var
  82. type: Directory
  83. - name: host-run
  84. hostPath:
  85. path: /run
  86. type: Directory
  87. - name: host-tmp
  88. hostPath:
  89. path: /tmp
  90. type: Directory