kubectl-emit-event is a kubectl plugin that emits event for requested object.
Usage
start the minikube cluster (skip if you are using an existing cluster)
β kubectl-emit-event git:(master) minikube start
π minikube v1.10.1 on Darwin 10.15.5
β¨ Using the hyperkit driver based on existing profile
π Starting control plane node minikube in cluster minikube
π Restarting existing hyperkit VM for "minikube" ...
π minikube 1.12.1 is available! Download it: https://github.com/kubernetes/minikube/releases/tag/v1.12.1
π‘ To disable this notice, run: 'minikube config set WantUpdateNotification false'
π³ Preparing Kubernetes v1.18.2 on Docker 19.03.8 ...
π Enabled addons: default-storageclass, ingress, storage-provisioner
π Done! kubectl is now configured to use "minikube"
Run kubectl emit-event daemonset/kube-proxy -n kube-system --reason "foo-reason" --message "bar-message"