cloud-bulldozer / performance-dashboards

Performance dashboards from the Perf & Scale team
Apache License 2.0
17 stars 40 forks source link

Adding create token type and privileged namespace #60

Closed paigerube14 closed 1 year ago

paigerube14 commented 1 year ago

Description

Needed to add a way to label the created namespace with privileges and change the way the prometheus token is obtained

% ./deploy.sh

    ____  _ __  __        __
   / __ \(_) /_/ /___  __/ /_  ____  ____  ____  ___  _____
  / / / / / __/ __/ / / / __ \/ __ \/ __ \/ __ \/ _ \/ ___/
 / /_/ / / /_/ /_/ /_/ / /_/ / /_/ / /_/ / /_/ /  __/ /
/_____/_/\__/\__/\__, /_.___/\____/ .___/ .___/\___/_/
                /____/           /_/   /_/

Using k8s command: oc
Using namespace: dittybopper
Using default grafana password: admin

Getting environment vars...
Prometheus URL is: https://prometheus-k8s-openshift-monitoring.apps.**.qe.devcluster.openshift.com
Prometheus bearer token collected.

Creating namespace...
Looks like the namespace dittybopper already exists, deleting it
namespace "dittybopper" deleted
namespace/dittybopper created

Deploying Grafana...
service/dittybopper created
route.route.openshift.io/dittybopper created
deployment.apps/dittybopper created
configmap/sc-ocp-prom created
configmap/sc-grafana-config created

Waiting for dittybopper deployment to be available...
deployment.apps/dittybopper condition met

You can access the Grafana instance at http://dittybopper-dittybopper....

Fixes

https://github.com/cloud-bulldozer/performance-dashboards/issues/59

12-07 08:01:30.782  Command "get-token" is deprecated, and will be removed in the future version. Use oc create token instead.
12-07 08:01:30.782  error: could not find a service account token for service account "prometheus-k8s"
12-07 08:01:31.074  Command "new-token" is deprecated, and will be removed in the future version. Use oc create token instead.
paigerube14 commented 1 year ago

@jtaleric @rsevilla87 can you PTAL when you get a chance, thanks!