Updated on 2023-08-11 GMT+08:00

CCE.ConfigMap

Element Description

The CCE.ConfigMap element is used to provide basic configuration information storage services for the cluster creation of Huawei CCE. Sensitive information is prohibited in ConfigMap.

Currently, ConfigMap dynamic mounting is not supported.

Element Properties

Table 1 Property Description

Property

Required

Descripiton

k8sManifest

No

K8s-native manifest object of the ConfigMap, based on which you can create ConfigMap resources to replace other configuration items

Type: dict

Value Description: Supports customization. You are not advised to change the name and labels under the metadata during an update.

name

No

ConfigMap name

Type: string

Value Description: Supports customization, for example, :my-configmap.

Default: ''

Value Constraint: The value supports a maximum of 63 characters and must start with a letter. Only lowercase letters, digits, and hyphens (-) are allowed.

clusterId

No

ID of the cluster to which the resource belongs

Type: HuaweiCloud.CCE.Cluster.Id

Value Description: Indicates the ID of an existing or new container cluster.

Value Constraint: The value must satisfy the UUID rule and support a maximum of 64 characters.

namespace

No

Namespace in a cluster where a resource is located

Type: string

Value Description: Must be a valid namespace in the cluster, for example, default.

Value Constraint: The value must start with a letter. Only lowercase letters, digits, and hyphens (-) are allowed.

data

No

ConfigMap resource data, consisting of keys and values

Type: dict

Value Description: Supports customization.

Relationships Between Elements

Table 2 Relationship description

Description

Target

DependsOn

AOS.Batch

DependsOn

DCS.Redis

DependsOn

RDS.MySQL

DependsOn

CCE.Storage.EVS

DependsOn

OBS.Bucket

DependsOn

CCE.Storage.SFS

DependsOn

CCE.ConfigMap

DependsOn

CCE.Job

DependsOn

CCE.Storage.OBS

DependsOn

CCE.DaemonSet

DependsOn

CCE.Secret

DependsOn

CCE.Service

DependsOn

CCE.Ingress

DependsOn

CCE.StatefulSet

DependsOn

CCE.NodePool

DependsOn

CCE.Deployment

DependsOn

CCE.Pod

DependsOn

RDS.PostgreSQL

ContainedIn

CCE.Cluster

Return Value

Property

Type

Description

refName

string

ConfigMap name

Blueprint Example

tosca_definitions_version: huaweicloud_tosca_version_1_0
inputs:
  name:
    default: my-configmap
  xx-value:
    default: abcd
  yy-value:
    default: efgh
node_templates:
  configmap:
    type: HuaweiCloud.CCE.ConfigMap
    properties:
      name: {get_input: name}
      data:
        xx: {get_input: xx-value}
        yy: {get_input: yy-value}