Skip to main content

Virtual Server

1. Overview

The file virtual_server_v2.yaml in exported package contains all configuration of Virtual Server V2 module from exported title region. You can add, delete or update some items in the file and then re-import to the title region.

2. An Example of The File Content

# AUTO-GENERATED FILE.
#
# Export information
# @export_time: Fri, 17 Nov 2023 00:00:04 GMT
#
# This file was automatically generated by PGOS Portal.
# Copyright 2023 Proxima Beta, Inc. All Rights Reserved.

virtual_server_v2:
snapshot_tag: '20231117173620153'
title_id: '5'
title_region_id: d_5_812179_dev
list:
- identification:
name: name
description: ''
resource_type: SourceCode
resource_method: LocalFileUpload
resource_path: pgos-images.tencentcloudcr.com/pgos_test_knative_image/vs-sample-go
resource_version: '1687867699017'
resource_destination:
resource_outer_file_key: virtual_server/d_5_812179_dev/sourcecode/1687867688812_1687769527509_vs-sample-go.zip
resource_outer_file_bucket: pgosptest-apgz-1300342
resource_outer_file_region: ap-guangzhou
resource_outer_file_location: pgosptest-apgz-130034.cos.ap-guangzhou.myqcloud.com/virtual_server/d_5_812179_dev/sourcecode/1687867688812_vs-sample-go.zip
resource_outer_file_md5: 5aa990eadb77996c0c7b4a3904fdba80
resource_outer_image_path: ''
resource_outer_image_version: ''
resource_limitation:
cpu_max_cfg: '0.5'
cpu_min_cfg: '0.5'
mem_max_cfg: 256MiB
mem_min_cfg: 256MiB
max_instances: 1
max_instance_strategy: 'Auto'
listen_port: 8081
env_vars: []
is_block_client_req: 'TRUE'

3. Field Description

  • identification: Unique identifier for the current resource, may contain multiple fields.
    • name: The name of virtual server. Type: string. Length: 1-30.
  • description: The description of virtual server. Type: string. Length: 1-1.
  • resource_type: The resource type. Type: string. SourceCode/DockerImage
  • resource_method: The resource created method. Type: string. LocalFileUpload/ImageResourceUrl
  • resource_path: The resource path. Type: string.
  • resource_version: The resource code version. Type: string.
  • resource_destination
    • resource_outer_file_key: The key of resource file. Type: string.
    • resource_outer_file_bucket: The bucket of cloud provider. Type: string.
    • resource_outer_file_region: The region of cloud provider. Type: string.
    • resource_outer_file_location: The location of resource file. Type: string.
    • resource_outer_file_md5: The md5 of resource file. Type: string.
    • resource_outer_image_path: The image path of resource. Type: string.
    • resource_outer_image_version: The image version of resource. Type: string.
  • resource_limitation
    • cpu_max_cfg: The cpu max limit. Type: string.
    • cpu_min_cfg: The cpu min limit. Type: string.
    • mem_max_cfg: The memery max limit. Type: string.
    • mem_min_cfg: The memery min limit. Type: string.
  • max_instances: The max instance limit of virtual server. Type: number.
  • max_instance_strategy: The max instance strategy of virtual server, optional: Auto/Manual. Type: string.
  • listen_port: The listen port of virtual server. Type: number.
  • env_vars: The array of environment variable. Type: array.
  • is_block_client_req: Block client request or not. Type: string.