File tree Expand file tree Collapse file tree 2 files changed +56
-0
lines changed Expand file tree Collapse file tree 2 files changed +56
-0
lines changed Original file line number Diff line number Diff line change 44
44
- ' {{repl ConfigOption "store_s3_access_key_id" }}' # S3_ACCESS_KEY_ID
45
45
- ' {{repl ConfigOption "store_s3_secret_access_key" }}' # S3_SECRET_ACCESS_KEY
46
46
- ' {{repl ConfigOption "store_s3_bucket" }}' # S3_BUCKET_NAME
47
+ - run :
48
+ collectorName : ping-registry
49
+ image : alpine/curl
50
+ name : ping-registry
51
+ command :
52
+ - /bin/sh
53
+ - -c
54
+ args :
55
+ - |
56
+ URL="https://eu.gcr.io/v2/"
57
+ if [ '{{repl HasLocalRegistry }}' = "true" ];
58
+ then
59
+ URL="{{repl LocalRegistryAddress }}/v2"
60
+ fi
61
+
62
+ echo "URL: ${URL}"
63
+
64
+ if curl --silent --max-time 5 "${URL}" > /dev/null;
65
+ then
66
+ echo "connection: ok"
67
+ else
68
+ echo "connection: error"
69
+ fi
47
70
analyzers :
48
71
- clusterVersion :
49
72
outcomes :
@@ -206,3 +229,13 @@ spec:
206
229
message : Object storage connection is valid
207
230
- fail :
208
231
message : Object storage connection is invalid. Please check your settings and that the resource is accessible from your cluster
232
+ - textAnalyze :
233
+ checkName : Pull registry is accessible from cluster
234
+ fileName : ping-registry/ping-registry.log
235
+ regexGroups : ' connection: (?P<Connection>\w+)'
236
+ outcomes :
237
+ - pass :
238
+ when : " Connection == ok"
239
+ message : Registry is accessible
240
+ - fail :
241
+ message : Registry is inaccessible. Please check your network and firewall settings
Original file line number Diff line number Diff line change 35
35
- ' {{repl ConfigOption "store_s3_access_key_id" }}' # S3_ACCESS_KEY_ID
36
36
- ' {{repl ConfigOption "store_s3_secret_access_key" }}' # S3_SECRET_ACCESS_KEY
37
37
- ' {{repl ConfigOption "store_s3_bucket" }}' # S3_BUCKET_NAME
38
+ - run :
39
+ collectorName : ping-registry
40
+ image : alpine/curl
41
+ name : ping-registry
42
+ command :
43
+ - /bin/sh
44
+ - -c
45
+ args :
46
+ - |
47
+ URL="https://eu.gcr.io/v2/"
48
+ if [ '{{repl HasLocalRegistry }}' = "true" ];
49
+ then
50
+ URL="{{repl LocalRegistryAddress }}/v2"
51
+ fi
52
+
53
+ echo "URL: ${URL}"
54
+
55
+ if curl --silent --max-time 5 "${URL}" > /dev/null;
56
+ then
57
+ echo "connection: ok"
58
+ else
59
+ echo "connection: error"
60
+ fi
38
61
- clusterInfo : {}
39
62
- clusterResources : {}
40
63
- logs :
You can’t perform that action at this time.
0 commit comments