File tree Expand file tree Collapse file tree 7 files changed +87
-20
lines changed Expand file tree Collapse file tree 7 files changed +87
-20
lines changed Original file line number Diff line number Diff line change @@ -22,18 +22,32 @@ cat image-list.sh
22
22
23
23
. ./image-list.sh
24
24
25
+ # pull univer service images
25
26
for image in " ${images[@]} " ; do
26
27
docker pull $image
27
28
done
28
29
30
+ # pull observability images
31
+ for image in " ${observability_images[@]} " ; do
32
+ docker pull $image
33
+ done
34
+
29
35
docker save " ${images[@]} " | gzip > univer-image.tar.gz
30
36
37
+ docker save " ${observability_images[@]} " | gzip > observability-image.tar.gz
38
+
31
39
helm pull oci://univer-acr-registry.cn-shenzhen.cr.aliyuncs.com/helm-charts/univer-stack --destination .
32
40
41
+ helm pull oci://univer-acr-registry.cn-shenzhen.cr.aliyuncs.com/helm-charts/univer-observability --destination .
42
+
33
43
chart=$( ls univer-stack-* .tgz | head -n 1)
34
44
version=$( echo " $chart " | sed -n ' s/univer-stack-\(.*\).tgz/\1/p' )
35
45
36
- tar -cvf k8s-all-in-one.${version} .tar univer-image.tar.gz $chart image-list.sh install.sh load-image.sh uninstall.sh
46
+ tar -cvf k8s-all-in-one.${version} .tar \
47
+ univer-image.tar.gz \
48
+ $chart \
49
+ univer-observability-* .tgz \
50
+ image-list.sh load-image.sh
37
51
38
52
echo " ALLINONE_PATH=$( echo $PWD /k8s-all-in-one.${version} .tar) " >> $GITHUB_ENV
39
53
echo " ALLINONE_TAR=$( echo k8s-all-in-one.${version} .tar) " >> $GITHUB_ENV
Original file line number Diff line number Diff line change @@ -19,4 +19,16 @@ images=(
19
19
" univer-acr-registry.cn-shenzhen.cr.aliyuncs.com/release/install-cni:1.20.1"
20
20
" univer-acr-registry.cn-shenzhen.cr.aliyuncs.com/release/pilot:1.20.1"
21
21
" univer-acr-registry.cn-shenzhen.cr.aliyuncs.com/release/proxyv2:1.20.1"
22
+ )
23
+
24
+ observability_images=(
25
+ " univer-acr-registry.cn-shenzhen.cr.aliyuncs.com/release/prometheus:2.49.1-debian-11-r0"
26
+ " univer-acr-registry.cn-shenzhen.cr.aliyuncs.com/release/node-exporter:1.7.0"
27
+ " univer-acr-registry.cn-shenzhen.cr.aliyuncs.com/release/kube-state-metrics:2.10.1-debian-11-r6"
28
+ " univer-acr-registry.cn-shenzhen.cr.aliyuncs.com/release/kubernetes-event-exporter:1.6.1-debian-11-r6"
29
+ " univer-acr-registry.cn-shenzhen.cr.aliyuncs.com/release/loki:2.9.10"
30
+ " univer-acr-registry.cn-shenzhen.cr.aliyuncs.com/release/promtail:2.9.0"
31
+ " univer-acr-registry.cn-shenzhen.cr.aliyuncs.com/release/grafana:10.2.2-dev"
32
+ " univer-acr-registry.cn-shenzhen.cr.aliyuncs.com/release/busybox:1.31.1"
33
+ " univer-acr-registry.cn-shenzhen.cr.aliyuncs.com/release/grafana-sidecar:1.19.2"
22
34
)
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -44,10 +44,20 @@ for image in "${images[@]}"; do
44
44
docker push $REGISTRY /$IMAGE_NAMESPACE /$( basename $image )
45
45
done
46
46
47
+ docker load -i observability-image.tar.gz
48
+
49
+ for image in " ${observability_images[@]} " ; do
50
+ docker tag $image $REGISTRY /$IMAGE_NAMESPACE /$( basename $image )
51
+ docker push $REGISTRY /$IMAGE_NAMESPACE /$( basename $image )
52
+ done
53
+
47
54
SED=" sed -i"
48
55
if [ " $( uname) " == " Darwin" ]; then
49
56
SED=" sed -i \"\" "
50
57
fi
51
58
52
59
$SED -e ' s#${REGISTRY}#' ${REGISTRY} ' #' values.yaml
53
- $SED -e ' s#${IMAGE_NAMESPACE}#' ${IMAGE_NAMESPACE} ' #' values.yaml
60
+ $SED -e ' s#${IMAGE_NAMESPACE}#' ${IMAGE_NAMESPACE} ' #' values.yaml
61
+
62
+ $SED -e ' s#${REGISTRY}#' ${REGISTRY} ' #' values-observability.yaml
63
+ $SED -e ' s#${IMAGE_NAMESPACE}#' ${IMAGE_NAMESPACE} ' #' values-observability.yaml
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ prometheus :
2
+ server :
3
+ image :
4
+ registry : ${REGISTRY}
5
+ repository : ${IMAGE_NAMESPACE}/prometheus
6
+
7
+
8
+ node-exporter :
9
+ image :
10
+ registry : ${REGISTRY}
11
+ repository : ${IMAGE_NAMESPACE}/node-exporter
12
+
13
+
14
+ kube-state-metrics :
15
+ image :
16
+ registry : ${REGISTRY}
17
+ repository : ${IMAGE_NAMESPACE}/kube-state-metrics
18
+
19
+
20
+ kubernetes-event-exporter :
21
+ image :
22
+ registry : ${REGISTRY}
23
+ repository : ${IMAGE_NAMESPACE}/kubernetes-event-exporter
24
+
25
+
26
+ loki :
27
+ image :
28
+ repository : ${REGISTRY}/${IMAGE_NAMESPACE}/loki
29
+
30
+
31
+ promtail :
32
+ image :
33
+ registry : ${REGISTRY}
34
+ repository : ${IMAGE_NAMESPACE}/promtail
35
+ configmap :
36
+ enabled : true
37
+
38
+
39
+ grafana :
40
+ image :
41
+ repository : ${REGISTRY}/${IMAGE_NAMESPACE}/grafana
42
+ initChownData :
43
+ image :
44
+ repository : ${REGISTRY}/${IMAGE_NAMESPACE}/busybox
45
+ tag : " 1.31.1"
46
+ sidecar :
47
+ image :
48
+ repository : ${REGISTRY}/${IMAGE_NAMESPACE}/grafana-sidecar
Original file line number Diff line number Diff line change 32
32
mv tmp/charts/univer-stack charts/
33
33
mv tmp/charts/universer charts/
34
34
mv tmp/charts/worker charts/
35
+ mv tmp/charts/univer-observability charts/
35
36
rm -rf tmp
36
37
COMMIT_MESSAGE : ' chore: update repository'
37
38
COMMIT_NAME : ' GitHub Actions'
You can’t perform that action at this time.
0 commit comments