Commit 84551d9 1 parent 1e1bbb6 commit 84551d9 Copy full SHA for 84551d9
File tree 3 files changed +21
-0
lines changed
3 files changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -135,3 +135,13 @@ scrape_configs:
135
135
regex : (.+)
136
136
target_label : __metrics_path__
137
137
replacement : /api/v1/nodes/${1}/proxy/metrics/cadvisor
138
+
139
+ - job_name : ' website-internal'
140
+ scheme : https
141
+ tls_config :
142
+ ca_file : /etc/homeworld/authorities/kubernetes.pem
143
+ cert_file : /etc/homeworld/keys/kubernetes-supervisor.pem
144
+ key_file : /etc/homeworld/keys/kubernetes-supervisor.key
145
+ static_configs :
146
+ - targets : ['{{APISERVER}}:443']
147
+ metrics_path : ' /api/v1/namespaces/homeworld-website/services/homeworld-website/proxy/metrics'
Original file line number Diff line number Diff line change @@ -126,6 +126,8 @@ def sequence_cluster(ops: command.Operations) -> None:
126
126
else :
127
127
ops .add_operation ("verify that user-grant is working properly" , iterative_verifier (verify .check_user_grant , 120.0 ))
128
128
129
+ ops .add_command (iterative_verifier (verify .check_website , 120.0 ))
130
+
129
131
130
132
main_command = command .SeqMux ("commands about running large sequences of cluster bring-up automatically" , {
131
133
"keysystem" : sequence_keysystem ,
Original file line number Diff line number Diff line change @@ -354,6 +354,14 @@ def check_user_grant():
354
354
print ("autogenerated rolebinding for user" , repr (authority .UPSTREAM_USER_NAME ), "passed basic check!" )
355
355
356
356
357
+
358
+ @command .wrap
359
+ def check_website ():
360
+ "verify that the self-hosted website is running"
361
+ expect_prometheus_query_exact ('sum(up{job="website-internal"})' , 1 , "website is accessible from inside the cluster" )
362
+ print ("self-hosted website is running" )
363
+
364
+
357
365
main_command = command .Mux ("commands about verifying the state of a cluster" , {
358
366
"keystatics" : check_keystatics ,
359
367
"keygateway" : check_keygateway ,
@@ -369,4 +377,5 @@ def check_user_grant():
369
377
"flannel" : check_flannel ,
370
378
"dns-addon" : check_dns ,
371
379
"user-grant" : check_user_grant ,
380
+ "website" : check_website ,
372
381
})
You can’t perform that action at this time.
0 commit comments