The readiness-condition-reporter is a library for publishing component-readiness as a Kubernetes Node status. This could be used for simplifying legacy component integration with Node-Readiness-Gates.
Here's how it could be integrated as a side-car container:
# readiness-condition-reporter sidecar
spec:
template:
spec:
serviceAccountName: node-status-patcher-sa
initContainers:
- name: readiness-reporter
image: ghcr.io/ajaysundark/readiness-condition-reporter:0.1.0
env:
- name: NODE_NAME # injected from downward api
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: CHECK_ENDPOINT
value: "http://localhost:8080/health"
- name: CONDITION_TYPE
value: "COMPONENT_READY" # condition-type to update
- name: CHECK_INTERVAL
value: "15s"Learn how to engage with the Kubernetes community on the community page.
You can reach the maintainers of this project at:
Participation in the Kubernetes community is governed by the Kubernetes Code of Conduct.