queries which will allow us to track kubeevents and get notified if there are any issues with the pods being scheduled or killed..
You may be interested in eventrouter.
It is a service for handling your Kubernetes Events, e.g. log them or send them to any sink e.g. Kafka.
YAML is not a scripting language, it is a data markup language like JSON or XML. So no, but perhaps you meant to ask something else?