@@ -62,8 +62,13 @@ verify_custom_cluster_name() {
6262}
6363
6464deploy_pmm3_server () {
65- helm repo remove stable || :
66- helm repo add stable https://charts.helm.sh/stable
65+ helm uninstall monitoring || :
66+ helm repo remove percona || :
67+ kubectl delete clusterrole monitoring --ignore-not-found
68+ kubectl delete clusterrolebinding monitoring --ignore-not-found
69+ helm repo add percona https://percona.github.io/percona-helm-charts/
70+ helm repo update
71+
6772 if [[ $OPENSHIFT ]]; then
6873 oc create sa pmm-server
6974 oc adm policy add-scc-to-user privileged -z pmm-server
@@ -75,16 +80,9 @@ deploy_pmm3_server() {
7580 oc create rolebinding pmm-psmdb-operator-namespace-only --role percona-server-mongodb-operator --serviceaccount=$namespace :pmm-server
7681 oc patch role/percona-server-mongodb-operator --type json -p=' [{"op":"add","path": "/rules/-","value":{"apiGroups":["security.openshift.io"],"resources":["securitycontextconstraints"],"verbs":["use"],"resourceNames":["privileged"]}}]'
7782 fi
78- local additional_params=" --set platform=openshift --set sa=pmm-server --set supresshttp2 =false"
83+ local additional_params=" --set platform=openshift --set supresshttp2=false --set serviceAccount.create =false --set serviceAccount.name=pmm-server "
7984 fi
8085
81- helm uninstall monitoring || :
82- helm repo remove percona || :
83- kubectl delete clusterrole monitoring --ignore-not-found
84- kubectl delete clusterrolebinding monitoring --ignore-not-found
85- helm repo add percona https://percona.github.io/percona-helm-charts/
86- helm repo update
87-
8886 retry 10 60 helm install monitoring percona/pmm \
8987 --set fullnameOverride=monitoring-server \
9088 --set image.tag=${IMAGE_PMM3_SERVER#*: } \
0 commit comments