@@ -103,11 +103,37 @@ spec:
103
103
values :
104
104
- virtual-cluster-operator
105
105
topologyKey : kubernetes.io/hostname
106
+ initContainers :
107
+ - name : init-container
108
+ image : ghcr.io/kosmos-io/virtual-cluster-operator:__VERSION__
109
+ command :
110
+ - sh
111
+ - " -c"
112
+ - |
113
+ mkdir -p /kosmos && \
114
+ tar -xzf /config/manifest-use.tar -C /kosmos
115
+ volumeMounts :
116
+ - name : manifest-volume
117
+ mountPath : /kosmos
118
+ - name : manifest-tar
119
+ mountPath : /config
106
120
containers :
107
121
- name : virtual-cluster-operator
108
122
# Change a valid image address
109
123
image : ghcr.io/kosmos-io/virtual-cluster-operator:__VERSION__
110
124
imagePullPolicy : IfNotPresent
125
+ livenessProbe :
126
+ httpGet :
127
+ path : /healthz
128
+ port : 8081
129
+ initialDelaySeconds : 15
130
+ periodSeconds : 10
131
+ readinessProbe :
132
+ httpGet :
133
+ path : /readyz
134
+ port : 8081
135
+ initialDelaySeconds : 5
136
+ periodSeconds : 10
111
137
env :
112
138
- name : IMAGE_REPOSITIRY
113
139
value : ghcr.io/kosmos-io
@@ -150,8 +176,8 @@ spec:
150
176
- name : shellscript
151
177
mountPath : /etc/vc-node-dir/config.yaml
152
178
subPath : config.yaml
153
- - mountPath : /kosmos/manifest
154
- name : components- manifest
179
+ - mountPath : /kosmos
180
+ name : manifest-volume
155
181
command :
156
182
- virtual-cluster-operator
157
183
- --kubeconfig=/etc/virtual-cluster-operator/kubeconfig
@@ -163,10 +189,11 @@ spec:
163
189
- name : shellscript
164
190
configMap :
165
191
name : virtual-cluster-operator
166
- - hostPath :
167
- path : /home/vc-operator/manifest
168
- type : DirectoryOrCreate
169
- name : components-manifest
192
+ - name : manifest-tar
193
+ configMap :
194
+ name : manifest-tar
195
+ - name : manifest-volume
196
+ emptyDir : {}
170
197
---
171
198
apiVersion : apps/v1
172
199
kind : DaemonSet
@@ -216,6 +243,20 @@ spec:
216
243
containers :
217
244
- name : install-agent
218
245
image : cis-hub-huabei-3.cmecloud.cn/node-agent/node-agent:latest
246
+ livenessProbe :
247
+ httpGet :
248
+ path : /healthz
249
+ port : 5678
250
+ scheme : HTTPS
251
+ initialDelaySeconds : 15
252
+ periodSeconds : 10
253
+ readinessProbe :
254
+ httpGet :
255
+ path : /readyz
256
+ port : 5678
257
+ scheme : HTTPS
258
+ initialDelaySeconds : 5
259
+ periodSeconds : 10
219
260
securityContext :
220
261
privileged : true # container privileged
221
262
command :
0 commit comments