From 7faf07dcc2b45a9b5b74d44a24f5b5d3a7e0b588 Mon Sep 17 00:00:00 2001 From: shidao-ytt Date: Tue, 18 Sep 2018 22:59:38 +0800 Subject: [PATCH] Add Alibaba Cloud ECI Documents Alibaba Cloud ECI(Elastic Container Instance) is a service that allow you run containers without having to manage servers or clusters. This commit add ECI documents for virtual kubelet. Signed-off-by: xianwei.zw Signed-off-by: shidao.ytt --- providers/alicloud/README.md | 57 ++++++++++++++++++++++++++++++++++++ providers/alicloud/eci.svg | 16 ++++++++++ 2 files changed, 73 insertions(+) create mode 100644 providers/alicloud/README.md create mode 100644 providers/alicloud/eci.svg diff --git a/providers/alicloud/README.md b/providers/alicloud/README.md new file mode 100644 index 000000000..78d6d104d --- /dev/null +++ b/providers/alicloud/README.md @@ -0,0 +1,57 @@ +# Alibaba Cloud ECI + + + +Alibaba Cloud ECI(Elastic Container Service) is a service that allow you run containers without having to manage servers or clusters. + +You can find more infomation via [alibaba cloud ECI web portal](https://www.aliyun.com/product/eci) + +## Alibaba Cloud ECI Virtual-Kubelet Provider +Alibaba ECI provider is an adapter to connect between k8s and ECI service to implement pod from k8s cluster on alibaba cloud platform + +## Prerequisites +To using ECI service on alibaba cloud, you may need open ECI service on [web portal](https://www.aliyun.com/product/eci), and then the ECI service will be available + +## Deployment of the ECI provider in your cluster +configure and launch virtual kubelet +``` +export ECI_REGION=cn-hangzhou +export ECI_SECURITY_GROUP=sg-123 +export ECI_VSWITCH=vsw-123 +export ECI_ACCESS_KEY=123 +export ECI_SECRET_KEY=123 + +VKUBELET_TAINT_KEY=alibabacloud.com/eci virtual-kubelet --provider alicloud +``` +confirm the virtual kubelet is connected to k8s cluster +``` +$kubectl get node +NAME STATUS ROLES AGE VERSION +cn-shanghai.i-uf69qodr5ntaxleqdhhk Ready 1d v1.9.3 +virtual-kubelet Ready agent 10s v1.8.3 +``` + +## Schedule K8s Pod to ECI via virtual kubelet +You can assign pod to virtual kubelet via node-selector and toleration. +``` +apiVersion: v1 +kind: Pod +metadata: + name: mypod +spec: + nodeName: virtual-kubelet + containers: + - name: nginx + image: nginx + tolerations: + - key: alibabacloud.com/eci + operator: "Exists" + effect: NoSchedule +``` + +# Alibaba Cloud Serverless Kubernetes +Alibaba Cloud serverless kubernetes allows you to quickly create kubernetes container applications without +having to manage and maintain clusters and servers. It is based on ECI and fully compatible with the Kuberentes API. + +You can find more infomation via [alibaba cloud serverless kubernetes product doc](https://www.alibabacloud.com/help/doc-detail/71479.htm) + diff --git a/providers/alicloud/eci.svg b/providers/alicloud/eci.svg new file mode 100644 index 000000000..e31def4c6 --- /dev/null +++ b/providers/alicloud/eci.svg @@ -0,0 +1,16 @@ + + + + + + + + + + +