| @@ -18,7 +18,7 @@ OUT_DIR ?= _output | |||||
| OUT_BINPATH := $(OUT_DIR)/bin | OUT_BINPATH := $(OUT_DIR)/bin | ||||
| IMAGE_REPO ?= kubeedge | IMAGE_REPO ?= kubeedge | ||||
| IMAGE_TAG ?= v0.2.0 | |||||
| IMAGE_TAG ?= v0.3.0 | |||||
| GO_LDFLAGS ?='' | GO_LDFLAGS ?='' | ||||
| # set allowDangerousTypes for allowing float | # set allowDangerousTypes for allowing float | ||||
| @@ -39,8 +39,8 @@ curl -o 2.txt https://raw.githubusercontent.com/kubeedge/sedna/main/examples/fed | |||||
| ### Prepare Images | ### Prepare Images | ||||
| This example uses these images: | This example uses these images: | ||||
| 1. aggregation worker: ```kubeedge/sedna-example-federated-learning-surface-defect-detection-aggregation:v0.1.0``` | |||||
| 2. train worker: ```kubeedge/sedna-example-federated-learning-surface-defect-detection-train:v0.1.0``` | |||||
| 1. aggregation worker: ```kubeedge/sedna-example-federated-learning-surface-defect-detection-aggregation:v0.3.0``` | |||||
| 2. train worker: ```kubeedge/sedna-example-federated-learning-surface-defect-detection-train:v0.3.0``` | |||||
| These images are generated by the script [build_images.sh](/examples/build_image.sh). | These images are generated by the script [build_images.sh](/examples/build_image.sh). | ||||
| @@ -116,7 +116,7 @@ spec: | |||||
| spec: | spec: | ||||
| nodeName: $CLOUD_NODE | nodeName: $CLOUD_NODE | ||||
| containers: | containers: | ||||
| - image: kubeedge/sedna-example-federated-learning-surface-defect-detection-aggregation:v0.1.0 | |||||
| - image: kubeedge/sedna-example-federated-learning-surface-defect-detection-aggregation:v0.3.0 | |||||
| name: agg-worker | name: agg-worker | ||||
| imagePullPolicy: IfNotPresent | imagePullPolicy: IfNotPresent | ||||
| env: # user defined environments | env: # user defined environments | ||||
| @@ -132,7 +132,7 @@ spec: | |||||
| spec: | spec: | ||||
| nodeName: $EDGE1_NODE | nodeName: $EDGE1_NODE | ||||
| containers: | containers: | ||||
| - image: kubeedge/sedna-example-federated-learning-surface-defect-detection-train:v0.1.0 | |||||
| - image: kubeedge/sedna-example-federated-learning-surface-defect-detection-train:v0.3.0 | |||||
| name: train-worker | name: train-worker | ||||
| imagePullPolicy: IfNotPresent | imagePullPolicy: IfNotPresent | ||||
| env: # user defined environments | env: # user defined environments | ||||
| @@ -151,7 +151,7 @@ spec: | |||||
| spec: | spec: | ||||
| nodeName: $EDGE2_NODE | nodeName: $EDGE2_NODE | ||||
| containers: | containers: | ||||
| - image: kubeedge/sedna-example-federated-learning-surface-defect-detection-train:v0.1.0 | |||||
| - image: kubeedge/sedna-example-federated-learning-surface-defect-detection-train:v0.3.0 | |||||
| name: train-worker | name: train-worker | ||||
| imagePullPolicy: IfNotPresent | imagePullPolicy: IfNotPresent | ||||
| env: # user defined environments | env: # user defined environments | ||||
| @@ -43,7 +43,7 @@ tar -zxvf video.tar.gz | |||||
| ### Prepare Image | ### Prepare Image | ||||
| this example use the image: | this example use the image: | ||||
| ``` | ``` | ||||
| kubeedge/sedna-example-incremental-learning-helmet-detection:v0.1.0 | |||||
| kubeedge/sedna-example-incremental-learning-helmet-detection:v0.3.0 | |||||
| ``` | ``` | ||||
| This image is generated by the script [build_images.sh](/examples/build_image.sh), used for creating training, eval and inference worker. | This image is generated by the script [build_images.sh](/examples/build_image.sh), used for creating training, eval and inference worker. | ||||
| @@ -117,7 +117,7 @@ spec: | |||||
| spec: | spec: | ||||
| nodeName: $WORKER_NODE | nodeName: $WORKER_NODE | ||||
| containers: | containers: | ||||
| - image: kubeedge/sedna-example-incremental-learning-helmet-detection:v0.1.0 | |||||
| - image: kubeedge/sedna-example-incremental-learning-helmet-detection:v0.3.0 | |||||
| name: train-worker | name: train-worker | ||||
| imagePullPolicy: IfNotPresent | imagePullPolicy: IfNotPresent | ||||
| args: ["train.py"] | args: ["train.py"] | ||||
| @@ -148,7 +148,7 @@ spec: | |||||
| spec: | spec: | ||||
| nodeName: $WORKER_NODE | nodeName: $WORKER_NODE | ||||
| containers: | containers: | ||||
| - image: kubeedge/sedna-example-incremental-learning-helmet-detection:v0.1.0 | |||||
| - image: kubeedge/sedna-example-incremental-learning-helmet-detection:v0.3.0 | |||||
| name: eval-worker | name: eval-worker | ||||
| imagePullPolicy: IfNotPresent | imagePullPolicy: IfNotPresent | ||||
| args: ["eval.py"] | args: ["eval.py"] | ||||
| @@ -176,7 +176,7 @@ spec: | |||||
| spec: | spec: | ||||
| nodeName: $WORKER_NODE | nodeName: $WORKER_NODE | ||||
| containers: | containers: | ||||
| - image: kubeedge/sedna-example-incremental-learning-helmet-detection:v0.1.0 | |||||
| - image: kubeedge/sedna-example-incremental-learning-helmet-detection:v0.3.0 | |||||
| name: infer-worker | name: infer-worker | ||||
| imagePullPolicy: IfNotPresent | imagePullPolicy: IfNotPresent | ||||
| args: ["inference.py"] | args: ["inference.py"] | ||||
| @@ -34,8 +34,8 @@ tar -zxvf big-model.tar.gz | |||||
| ### Prepare Images | ### Prepare Images | ||||
| This example uses these images: | This example uses these images: | ||||
| 1. little model inference worker: ```kubeedge/sedna-example-joint-inference-helmet-detection-little:v0.1.0``` | |||||
| 2. big model inference worker: ```kubeedge/sedna-example-joint-inference-helmet-detection-big:v0.1.0``` | |||||
| 1. little model inference worker: ```kubeedge/sedna-example-joint-inference-helmet-detection-little:v0.3.0``` | |||||
| 2. big model inference worker: ```kubeedge/sedna-example-joint-inference-helmet-detection-big:v0.3.0``` | |||||
| These images are generated by the script [build_images.sh](/examples/build_image.sh). | These images are generated by the script [build_images.sh](/examples/build_image.sh). | ||||
| @@ -112,7 +112,7 @@ spec: | |||||
| spec: | spec: | ||||
| nodeName: $EDGE_NODE | nodeName: $EDGE_NODE | ||||
| containers: | containers: | ||||
| - image: kubeedge/sedna-example-joint-inference-helmet-detection-little:v0.1.0 | |||||
| - image: kubeedge/sedna-example-joint-inference-helmet-detection-little:v0.3.0 | |||||
| imagePullPolicy: IfNotPresent | imagePullPolicy: IfNotPresent | ||||
| name: little-model | name: little-model | ||||
| env: # user defined environments | env: # user defined environments | ||||
| @@ -149,7 +149,7 @@ spec: | |||||
| spec: | spec: | ||||
| nodeName: $CLOUD_NODE | nodeName: $CLOUD_NODE | ||||
| containers: | containers: | ||||
| - image: kubeedge/sedna-example-joint-inference-helmet-detection-big:v0.1.0 | |||||
| - image: kubeedge/sedna-example-joint-inference-helmet-detection-big:v0.3.0 | |||||
| name: big-model | name: big-model | ||||
| imagePullPolicy: IfNotPresent | imagePullPolicy: IfNotPresent | ||||
| env: # user defined environments | env: # user defined environments | ||||
| @@ -1 +1 @@ | |||||
| 0.0.2 | |||||
| 0.0.3 | |||||
| @@ -28,7 +28,7 @@ import ( | |||||
| const ( | const ( | ||||
| downloadInitalizerContainerName = "storage-initializer" | downloadInitalizerContainerName = "storage-initializer" | ||||
| downloadInitalizerImage = "kubeedge/sedna-storage-initializer:v0.2.0" | |||||
| downloadInitalizerImage = "kubeedge/sedna-storage-initializer:v0.3.0" | |||||
| downloadInitalizerPrefix = "/downloads" | downloadInitalizerPrefix = "/downloads" | ||||
| downloadInitalizerVolumeName = "sedna-storage-initializer" | downloadInitalizerVolumeName = "sedna-storage-initializer" | ||||
| @@ -18,6 +18,9 @@ set -o errexit | |||||
| set -o nounset | set -o nounset | ||||
| set -o pipefail | set -o pipefail | ||||
| SEDNA_VERSION=v0.3.0 | |||||
| KB_VERSION=v0.3.0 | |||||
| TMP_DIR=$(mktemp -d --suffix=.sedna) | TMP_DIR=$(mktemp -d --suffix=.sedna) | ||||
| SEDNA_ROOT=${SEDNA_ROOT:-$TMP_DIR} | SEDNA_ROOT=${SEDNA_ROOT:-$TMP_DIR} | ||||
| @@ -135,7 +138,7 @@ spec: | |||||
| containers: | containers: | ||||
| - name: kb | - name: kb | ||||
| imagePullPolicy: IfNotPresent | imagePullPolicy: IfNotPresent | ||||
| image: kubeedge/sedna-kb:v0.3.0 | |||||
| image: kubeedge/sedna-kb:$KB_VERSION | |||||
| env: | env: | ||||
| - name: KB_URL | - name: KB_URL | ||||
| value: "sqlite:///db/kb.sqlite3" | value: "sqlite:///db/kb.sqlite3" | ||||
| @@ -236,7 +239,7 @@ spec: | |||||
| serviceAccountName: sedna | serviceAccountName: sedna | ||||
| containers: | containers: | ||||
| - name: gm | - name: gm | ||||
| image: kubeedge/sedna-gm:v0.2.0 | |||||
| image: kubeedge/sedna-gm:$SEDNA_VERSION | |||||
| command: ["sedna-gm", "--config", "/config/$config_file_name", "-v2"] | command: ["sedna-gm", "--config", "/config/$config_file_name", "-v2"] | ||||
| volumeMounts: | volumeMounts: | ||||
| - name: gm-config | - name: gm-config | ||||
| @@ -291,7 +294,7 @@ spec: | |||||
| spec: | spec: | ||||
| containers: | containers: | ||||
| - name: lc | - name: lc | ||||
| image: kubeedge/sedna-lc:v0.2.0 | |||||
| image: kubeedge/sedna-lc:$SEDNA_VERSION | |||||
| env: | env: | ||||
| - name: GM_ADDRESS | - name: GM_ADDRESS | ||||
| value: $GM_ADDRESS | value: $GM_ADDRESS | ||||