All checks were successful
Run Check Script / check (pull_request) Successful in 1m27s
37 lines
918 B
YAML
37 lines
918 B
YAML
apiVersion: apps/v1
|
|
kind: DaemonSet
|
|
metadata:
|
|
name: node-healthcheck
|
|
namespace: harmony-node-healthcheck
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: node-healthcheck
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: node-healthcheck
|
|
spec:
|
|
serviceAccountName: node-healthcheck-sa
|
|
hostNetwork: true
|
|
# This ensures the pod runs even if the node is already "unschedulable"
|
|
# so it can report the status correctly.
|
|
tolerations:
|
|
- operator: Exists
|
|
containers:
|
|
- name: checker
|
|
image: hub.nationtech.io/harmony/harmony-node-readiness-endpoint:latest
|
|
env:
|
|
- name: NODE_NAME
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: spec.nodeName
|
|
ports:
|
|
- containerPort: 25001
|
|
hostPort: 25001
|
|
name: health-port
|
|
resources:
|
|
requests:
|
|
cpu: 10m
|
|
memory: 50Mi
|