Edge-health

Edge-health 配置示例

edge-health/edge-health.yaml

  1. ---
  2. apiVersion: v1
  3. kind: ServiceAccount
  4. metadata:
  5. name: edge-health
  6. namespace: edge-system
  7. ---
  8. apiVersion: rbac.authorization.k8s.io/v1
  9. kind: ClusterRole
  10. metadata:
  11. name: edge-health
  12. rules:
  13. - apiGroups:
  14. - ""
  15. resources:
  16. - nodes
  17. - nodes/proxy
  18. verbs:
  19. - get
  20. - list
  21. - watch
  22. - update
  23. - patch
  24. - apiGroups:
  25. - ""
  26. resources:
  27. - configmaps
  28. verbs:
  29. - get
  30. - list
  31. - watch
  32. ---
  33. apiVersion: rbac.authorization.k8s.io/v1
  34. kind: ClusterRoleBinding
  35. metadata:
  36. name: edge-health
  37. roleRef:
  38. apiGroup: rbac.authorization.k8s.io
  39. kind: ClusterRole
  40. name: edge-health
  41. subjects:
  42. - kind: ServiceAccount
  43. name: edge-health
  44. namespace: edge-system
  45. ---
  46. apiVersion: apps/v1
  47. kind: DaemonSet
  48. metadata:
  49. name: edge-health
  50. namespace: edge-system
  51. spec:
  52. selector:
  53. matchLabels:
  54. name: edge-health
  55. template:
  56. metadata:
  57. labels:
  58. name: edge-health
  59. spec:
  60. serviceAccountName: edge-health
  61. containers:
  62. - name: edge-health
  63. image: superedge/edge-health:v0.3.0
  64. imagePullPolicy: IfNotPresent
  65. resources:
  66. limits:
  67. cpu: 50m
  68. memory: 100Mi
  69. requests:
  70. cpu: 10m
  71. memory: 20Mi
  72. command:
  73. - edge-health
  74. args:
  75. - --kubeletauthplugin=timeout=5,retrytime=3,weight=1,port=10250
  76. - --v=2
  77. env:
  78. - name: NODE_NAME
  79. valueFrom:
  80. fieldRef:
  81. apiVersion: v1
  82. fieldPath: spec.nodeName
  83. securityContext:
  84. procMount: Default
  85. dnsPolicy: ClusterFirst
  86. hostNetwork: true
  87. restartPolicy: Always
  88. securityContext: {}
  89. terminationGracePeriodSeconds: 30
  90. ---
  91. apiVersion: v1
  92. kind: ConfigMap
  93. metadata:
  94. name: hmac-config
  95. namespace: edge-system
  96. data:
  97. hmackey: {{.HmacKey}}

最后修改 June 15, 2021 : Fixed error links and paths (fef537b)