File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ kind: Deployment
21
21
metadata :
22
22
name : simple-registry
23
23
namespace : registry
24
+ annotations :
25
+ kapp.k14s.io/change-group : registry
24
26
spec :
25
27
replicas : 1
26
28
selector :
60
62
name : registry-contents
61
63
- name : registry-sync
62
64
emptyDir : { }
65
+
66
+ # TODO should we make vendir's http retry within App CR, to avoid
67
+ # transient failure when Service=>Deployment networking is not ready?
68
+ ---
69
+ apiVersion : batch/v1
70
+ kind : Job
71
+ metadata :
72
+ name : check-nginx-conn
73
+ annotations :
74
+ kapp.k14s.io/update-strategy : always-replace
75
+ kapp.k14s.io/change-rule : upsert after upserting registry
76
+ spec :
77
+ backoffLimit : 5
78
+ template :
79
+ metadata :
80
+ name : check-nginx-conn
81
+ spec :
82
+ containers :
83
+ - name : check
84
+ image : busybox
85
+ command :
86
+ - /bin/sh
87
+ - " -c"
88
+ - |
89
+ wget --tries=10 --no-check-certificate http://registry-svc.registry.svc.cluster.local:5050/v2/
90
+ restartPolicy : Never
You can’t perform that action at this time.
0 commit comments