Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
kube-prometheus
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
prometheus-operator
kube-prometheus
Commits
7708f8eb
Commit
7708f8eb
authored
7 years ago
by
Frederic Branczyk
Browse files
Options
Downloads
Patches
Plain Diff
kube-prometheus: adapt deploy script to wait for CRDs
parent
57efea74
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hack/cluster-monitoring/deploy
+7
-4
7 additions, 4 deletions
hack/cluster-monitoring/deploy
with
7 additions
and
4 deletions
hack/cluster-monitoring/deploy
+
7
−
4
View file @
7708f8eb
...
@@ -17,10 +17,13 @@ kctl() {
...
@@ -17,10 +17,13 @@ kctl() {
kctl apply
-f
manifests/prometheus-operator
kctl apply
-f
manifests/prometheus-operator
# Wait for TPRs to be ready.
# Wait for TPRs to be ready.
printf
"Waiting for Operator to register third party objects..."
printf
"Waiting for Operator to register custom resource definitions..."
until
kctl get servicemonitor
>
/dev/null 2>&1
;
do
sleep
1
;
printf
"."
;
done
until
kctl get customresourcedefinitions servicemonitors.monitoring.coreos.com
>
/dev/null 2>&1
;
do
sleep
1
;
printf
"."
;
done
until
kctl get prometheus
>
/dev/null 2>&1
;
do
sleep
1
;
printf
"."
;
done
until
kctl get customresourcedefinitions prometheuses.monitoring.coreos.com
>
/dev/null 2>&1
;
do
sleep
1
;
printf
"."
;
done
until
kctl get alertmanager
>
/dev/null 2>&1
;
do
sleep
1
;
printf
"."
;
done
until
kctl get customresourcedefinitions alertmanagers.monitoring.coreos.com
>
/dev/null 2>&1
;
do
sleep
1
;
printf
"."
;
done
until
kctl get servicemonitors.monitoring.coreos.com
>
/dev/null 2>&1
;
do
sleep
1
;
printf
"."
;
done
until
kctl get prometheuses.monitoring.coreos.com
>
/dev/null 2>&1
;
do
sleep
1
;
printf
"."
;
done
until
kctl get alertmanagers.monitoring.coreos.com
>
/dev/null 2>&1
;
do
sleep
1
;
printf
"."
;
done
echo
"done!"
echo
"done!"
kctl apply
-f
manifests/node-exporter
kctl apply
-f
manifests/node-exporter
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment