krkn-chaos / cerberus

Guardian of Kubernetes clusters. Tool to monitor clusters health and signal/alert on failures.
Apache License 2.0
92 stars 41 forks source link

adding new way to get token #176

Closed paigerube14 closed 2 years ago

paigerube14 commented 2 years ago

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"