summaryrefslogtreecommitdiffstats
path: root/scripts/provision/kube-ops-view.sh
blob: ca1389e3f53a91503234d7659ea1ad9d4df11cac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#! /bin/bash

NS=mon


oc -n $NS new-project ocp-ops-view
oc -n $NS create sa kube-ops-view
oc -n $NS adm policy add-scc-to-user anyuid -z kube-ops-view
oc -n $NS adm policy add-cluster-role-to-user cluster-admin system:serviceaccount:mon:kube-ops-view
oc -n $NS apply -f https://raw.githubusercontent.com/raffaelespazzoli/kube-ops-view/ocp/deploy-openshift/kube-ops-view.yaml
oc -n $NS expose svc kube-ops-view
oc -n $NS get route | grep kube-ops-view | awk '{print $2}'