I have an application running in a kubernetes pod. User has options to enabled/disabled plugin for this application thru a set of REST API. One of the requirement is that user can use API to check what plugin is enabled/disabled.
Is there a way for me to report extra status in the pod status so that I can run a script in my pod to show what is enabled or not? Then the API can just directly retrieve the Pod object and display a list of plugin.
You should consider using labels and/or annotations:
Kubernetes
labels
andannotations
are both ways of adding metadata to Kubernetes objects. Kubernetes labels allow you to identify, select and operate on Kubernetes objects. Annotations however are non-identifying metadata. Therefore I believe that on your use caselabels
would fit better.