Skip to main content
未列出页
此页面未列出。搜索引擎不会对其索引,只有拥有直接链接的用户才能访问。

Common Template

# Description of the common template for pod deployment in sedna, which can be used for all types of pods.
# Note: the common template is transformed to jointmultiedgeservice template in dayu-sedna in backend.

# deployed position of the pod. support: cloud/edge/both.
position: both
pod-template:
# image of the pod. support [<registry>/][<repository>/]<image>[:<tag>]
# the default ones in "[]" use definitions in base.yaml.
# e.g., repo:5000/dayuhub/controller:v1.0, dayuhub/controller:v1.0, controller:v1.0, controller
image: controller
# pull policy of the image, support: Always/Never/IfNotPresent.
imagePullPolicy: Always
# env variables for the pod, which can be used in the pod's command or args.
env:
- name: DISPLAY
value: "True"
# open port for the pod, the corresponding external port on device is automatically assigned by edgemesh.
port-open:
# open port on cloud/edge/both.
pos: both
# inner port of the pod
port: 9000
# mount files to the pod
file-mount:
# A mounted file/directory is an item of the list.
- # mount position on cloud/edge/both.
pos: cloud
# source path on device, which can be a file or directory. support absolute path or relative path.
# If the source path is relative, it will be resolved to an absolute path based on default-file-mount-prefix in base.yaml.
path: 'controller/'
# NOTE: the following ones are optional
# name of the file mount, which is optional and can be used for identification, default is "".
name: controller-file-mount
# path prefix for the source path if the source path is relative, default is efault-file-mount-prefix in base.yaml.
# not work if the source path is absolute path.
prefix: "/data/dayu-files"
# mount type, support: Directory | DirectoryOrCreate | File | FileOrCreate | Socket | CharDevice | BlockDevice, default is Directory.
type: Directory
# target path in the pod, which should be absolute path.
# If default, file will be mounted to '/home/data' (as env DATA_PATH_PREFIX in pod) if source path is relative, otherwise it will be mounted the same as source path.
target_path: '/app/controller/'
# specify the containers to mount files, default is all containers in the pod.
containers:
- controller
# extra env variables for the pod, ENV_NAME=<target.path>
env_name: CONTROLLER_FILE_PATH
# whether the mounted file is read-only, default is false.
read_only: true
# sub path in the mounted file to be mounted to the pod, default is "" which means mounting the whole file/directory.
sub_path: ""
# mount propagation mode, support: None/HostToContainer/ContainerToHost/Bidirectional, default is None.
mount_propagation: None