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 <xianwei.zw@alibaba-inc.com> Signed-off-by: shidao.ytt <shidao.ytt@alibaba-inc.com>
This commit is contained in:
57
providers/alicloud/README.md
Normal file
57
providers/alicloud/README.md
Normal file
@@ -0,0 +1,57 @@
|
||||
# Alibaba Cloud ECI
|
||||
|
||||
<img src="eci.svg" width="200" height="200" />
|
||||
|
||||
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 <none> 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)
|
||||
|
||||
16
providers/alicloud/eci.svg
Normal file
16
providers/alicloud/eci.svg
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 21.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.0" id="layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 48 48" style="enable-background:new 0 0 48 48;" xml:space="preserve">
|
||||
<style type="text/css">
|
||||
.st0{fill:#00C1DE;}
|
||||
</style>
|
||||
<g>
|
||||
<polygon class="st0" points="41.4,22.7 41.4,25 43.7,25.6 43.7,31.8 24,36.3 4.3,31.8 4.3,25.6 6.5,25 6.5,22.7 2,23.7 2,33.7
|
||||
24,38.7 46,33.7 46,23.7 "/>
|
||||
<polygon class="st0" points="38.1,10.6 24,8 9.9,10.6 24,12.9 "/>
|
||||
<polygon class="st0" points="22.8,15.1 8.8,12.6 8.8,30.2 22.8,33.4 "/>
|
||||
<path class="st0" d="M25.2,33.4l14-3.2V12.6l-14,2.5V33.4z M35.2,15.3l2-0.4v13.7l-2,0.5V15.3z M31.3,15.9l2-0.4v13.9l-2,0.5V15.9z
|
||||
M27.5,16.6l2-0.4v14l-2,0.5V16.6z"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 878 B |
Reference in New Issue
Block a user