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

CCI.ConfigMap

Element Description

The CCI.ConfigMap element is used to create a configMap.

Element Properties

Table 1 Property Description

Property

Required

Descripiton

k8sManifest

Yes

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.

namespace

Yes

Namespace in a cluster where a resource is located

Type: HuaweiCloud.CCI.Namespace.Name

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.

Relationships Between Elements

Table 2 Relationship description

Description

Target

DependsOn

RDS.MySQL

DependsOn

CCI.Secret

DependsOn

CCI.Job

DependsOn

CCI.StatefulSet

DependsOn

CCI.Storage.EVS

DependsOn

DCS.Redis

DependsOn

CCI.Service

DependsOn

CCI.Deployment

DependsOn

CCI.Storage.SFS

DependsOn

CCI.ConfigMap

DependsOn

RDS.PostgreSQL

DependsOn

CCI.Ingress

DependsOn

AOS.Batch

DependsOn

OBS.Bucket

ContainedIn

CCI.Namespace

Return Value

Property

Type

Description

refName

string

ConfigMap name

Blueprint Example

tosca_definitions_version: huaweicloud_tosca_version_1_0
inputs:
  namespace:
    description: ns
node_templates:
  ccei4xws:
    type: HuaweiCloud.CCI.ConfigMap
    properties:
      k8sManifest:
        apiVersion: v1
        data:
          property_1: test
        kind: ConfigMap
        metadata:
          name: configmap-test1
      namespace:
        get_input: namespace