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

CCI.Ingress

Element Description

The CCI.Ingress element is used to create an ingress.

Element Properties

Table 1 Property Description

Property

Required

Descripiton

k8sManifest

Yes

Ingress object in the Kubernetes cluster created by the CCI service

Type: dict

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

Suggestion: Enter the native YAML file content of the Kubernetes object.

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.

Suggestion: Log in to the CCI console, choose Resource Management > Namespaces, and query information as required.

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

Ingress name

Blueprint Example

tosca_definitions_version: huaweicloud_tosca_version_1_0
inputs:
  namespace:
    description: ns
node_templates:
  ccei4xws:
    type: HuaweiCloud.CCI.Ingress
    properties:
      k8sManifest:
        apiVersion: 'extensions/v1beta1'
        kind: Ingress
        metadata:
          labels:
            stack-name: aos-aos
          name: ingress-test
        spec:
          rules:
            - http:
                paths:
                  - backend:
                      serviceName: aos-apiserver
                      servicePort: 31800
                    path: '/v2/sample_templates'
                    property:
                      'ingress.beta.kubernetes.io/enable-checksession': 'true'
          tls:
            - secretName: tenant-management-service-server
      namespace:
        get_input: namespace