@@ -62,8 +62,13 @@ verify_custom_cluster_name() {
62
62
}
63
63
64
64
deploy_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
+
67
72
if [[ $OPENSHIFT ]]; then
68
73
oc create sa pmm-server
69
74
oc adm policy add-scc-to-user privileged -z pmm-server
@@ -75,16 +80,9 @@ deploy_pmm3_server() {
75
80
oc create rolebinding pmm-psmdb-operator-namespace-only --role percona-server-mongodb-operator --serviceaccount=$namespace :pmm-server
76
81
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"]}}]'
77
82
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 "
79
84
fi
80
85
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
-
88
86
retry 10 60 helm install monitoring percona/pmm \
89
87
--set fullnameOverride=monitoring-server \
90
88
--set image.tag=${IMAGE_PMM3_SERVER#*: } \
0 commit comments