added Service Fabric Mesh provider

This commit is contained in:
yaron2
2018-07-31 16:00:56 -07:00
parent 3f83588e59
commit 36db5d9583
5 changed files with 942 additions and 6 deletions

View File

@@ -0,0 +1,64 @@
# Kubernetes Virtual Kubelet with Service Fabric Mesh
[Service Fabric Mesh](https://docs.microsoft.com/en-us/azure/service-fabric-mesh/service-fabric-mesh-overview) is a fully managed service that enables developers to deploy microservices applications without managing virtual machines, storage, or networking. Applications hosted on Service Fabric Mesh run and scale without you worrying about the infrastructure powering it.
The Virtual kubelet integration allows you to use the Kubernetes API to burst out compute to a Service Fabric Mesh cluster and schedule pods as Mesh Applications.
## Status: Experimental
This provider is currently in the exterimental stages. Contributions welcome!
## Setup
The provider expects the following environment variables to be configured:
- AZURE_CLIENT_ID
- AZURE_CLIENT_SECRET
- AZURE_SUBSCRIPTION_ID
- AZURE_TENANT_ID
- RESOURCE_GROUP
- REGION
## Quick Start
#### Run the Virtual Kubelet
```
./virtual-kubelet --provider=sfmesh --taint azure.com/sfmesh
```
#### Create pod yaml:
```
$ cat pod-nginx
apiVersion: v1
kind: Pod
metadata:
name: nginx
spec:
nodeName: virtual-kubelet
containers:
- name: nginx
image: nginx:latest
ports:
- containerPort: 80
tolerations:
- key: azure.com/sfmesh
effect: NoSchedule
```
#### create pod
```
$ kubectl create -f pod-nginx
```
#### list containers on Service Fabric Mesh
```
$ az mesh app list -o table
Name ResourceGroup ProvisioningState Location
------ --------------- ------------------- ----------
nginx myResourceGroup Succeeded eastus
```