tencent cloud

Tencent Kubernetes Engine

소식 및 공지 사항
릴리스 노트
제품 릴리스 기록
제품 소개
제품 장점
제품 아키텍처
시나리오
제품 기능
리전 및 가용존
빠른 시작
신규 사용자 가이드
표준 클러스터를 빠르게 생성
Demo
클라우드에서 컨테이너화된 애플리케이션 배포 Check List
TKE 표준 클러스터 가이드
Tencent Kubernetes Engine(TKE)
클러스터 관리
네트워크 관리
스토리지 관리
Worker 노드 소개
Kubernetes Object Management
워크로드
클라우드 네이티브 서비스 가이드
Tencent Managed Service for Prometheus
TKE Serverless 클러스터 가이드
TKE 클러스터 등록 가이드
실습 튜토리얼
Serverless 클러스터
네트워크
로그
모니터링
유지보수
DevOps
탄력적 스케일링
자주 묻는 질문
클러스터
TKE Serverless 클러스터
유지보수
서비스
이미지 레지스트리
원격 터미널
문서Tencent Kubernetes Engine

COS-CSI

포커스 모드
폰트 크기
마지막 업데이트 시간: 2024-02-01 10:03:01

Overview

Add-on description

The Kubernetes-csi-tencentcloud COS-CSI plug-in allows you to use Tencent Cloud Object Storage (COS) in your TKE cluster.

Kubernetes objects deployed in a cluster

Kubernetes Object Name
Type
Default Resource Consumption
Namespaces
csi-coslauncher
DaemonSet
-
kube-system
csi-cosplugin
DaemonSet
-
kube-system
csi-cos-tencentcloud-token
Secret
-
kube-system

Use Cases

COS is a distributed storage service provided by Tencent Cloud to store massive files. You can store and view data at any time over a network. Tencent Cloud COS provides scalable, affordable, reliable, and secure data storage services for all users.
With the COS-CSI add-on, you can quickly use COS as COSFS in your cluster through standard native Kubernetes. For more information, see COSFS.

Limits

Supports clusters with Kubernetes version 1.10 and later.
For Kubernetes 1.12 clusters, the following kubelet configuration must be added: --feature-gates=KubeletPluginsWatcher=false.
For more information on the limits of COSFS, see COSFS.
To use COS in TKE, you must install this add-on in your cluster, which consumes some system resources.

COS-CSI Permission

Permission Description

The permission of this component is the minimal dependency required for the current feature to operate.
The related directory /var/lib/kubelet on the host machine needs to be mounted to the container to accomplish volume mount/unmount, hence the activation of the privileged-level container is required.

Permission Scenarios

Feature
Involved Object
Involved Operation Permission
Supporting COS bucket mounting in lite mode
PersistentVolume
get/watch/list/update
pod
get/create/delete/update
Storing related COS configuration in the lite mounting method
configmap
get/create/delete/update

Permission Definition

kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: csi-cos-tencentcloud
rules:
- apiGroups: [""]
resources: ["events", "persistentvolumes"]
verbs: ["get", "watch", "update", "list"]
- apiGroups: [""]
resources: ["pods", "configmaps"]
verbs: ["get", "create", "delete", "update"]

Usage

Installing the COS add-on

1. Log in to the TKE console and select Cluster in the left sidebar.
2. On the "Cluster Management" page, click the ID of the target cluster to go to the cluster details page.
3. In the left sidebar, click Add-On Management to go to the "Add-On List" page.
4. On the "Add-On List" page, click Create. On the "Create an Add-On" page that appears, select COS.
5. Click Finish to create the add-on.

Using COS

You can mount COS for workloads in a TKE cluster. For more information, see Using COS.

도움말 및 지원

문제 해결에 도움이 되었나요?

피드백