The prometheus token is no longer set by default so we now have to create our own (this is for oc4.11)
Adding an OR statement to not break previous versions
% oc -n openshift-monitoring sa get-token prometheus-k8s
Command "get-token" is deprecated, and will be removed in the future version. Use oc create token instead.
error: could not find a service account token for service account "prometheus-k8s"
The prometheus token is no longer set by default so we now have to create our own (this is for oc4.11)
Adding an OR statement to not break previous versions
% oc -n openshift-monitoring sa get-token prometheus-k8s Command "get-token" is deprecated, and will be removed in the future version. Use oc create token instead. error: could not find a service account token for service account "prometheus-k8s"