Updated on 2023-02-07 GMT+08:00

Overview

Cloud Container Instance (CCI) is a serverless container engine that allows you to run containers without creating and managing server clusters. Under the serverless model, CCI allows you to directly create and use containerized workloads on the console or by using kubectl or Kubernetes APIs, and pay only for the resources consumed by these workloads.

This document describes how to use kubectl or call CCI APIs to implement functions.

Document Organization

This document includes:

  1. Using kubectl

    This section describes how to configure kubectl on CCI. CCI allows you to use native or customized kubectl to create resources such as workloads. Native kubectl is recommended.

  2. Namespace and Network

    This section describes the concepts of the namespace and network.

  3. Pod

    This section describes the concept of the pod and how to use pods.

  4. Label

    This section describes the functions of labels and how to use labels.

  5. Deployment

    This section describes the application scenarios of Deployments, and how to deploy container images to CCI using a Deployment.

  6. Service and Ingress

    This section describes how to use services and ingresses to manage workload access.

    • Service: an abstraction which defines a logical set of pods and a policy by which to access them.
    • Ingress: an API object that manages external access.
  7. Persistent Storage

    This section describes how to use storage in workloads. That is, how to use storage volumes in containers. Storage types that can be used include Elastic Volume Service (EVS), Scalable File Service (SFS), and Object Storage Service (OBS).

  8. ConfigMap and Secret

    This section describes how to use ConfigMaps and secrets.

    ConfigMaps and secrets are used to store configuration and sensitive information to enable easier and flexible workload configuration.

  9. Job and Cron Job

    This section describes how to use jobs. A job is applicable to one-off tasks.