VMware vSphere Integrated Containers provider (#206)

* Add Virtual Kubelet provider for VIC

Initial virtual kubelet provider for VMware VIC.  This provider currently
handles creating and starting of a pod VM via the VIC portlayer and persona
server.  Image store handling via the VIC persona server.  This provider
currently requires the feature/wolfpack branch of VIC.

* Added pod stop and delete.  Also added node capacity.

Added the ability to stop and delete pod VMs via VIC.  Also retrieve
node capacity information from the VCH.

* Cleanup and readme file

Some file clean up and added a Readme.md markdown file for the VIC
provider.

* Cleaned up errors, added function comments, moved operation code

1. Cleaned up error handling.  Set standard for creating errors.
2. Added method prototype comments for all interface functions.
3. Moved PodCreator, PodStarter, PodStopper, and PodDeleter to a new folder.

* Add mocking code and unit tests for podcache, podcreator, and podstarter

Used the unit test framework used in VIC to handle assertions in the provider's
unit test.  Mocking code generated using OSS project mockery, which is compatible
with the testify assertion framework.

* Vendored packages for the VIC provider

Requires feature/wolfpack branch of VIC and a few specific commit sha of
projects used within VIC.

* Implementation of POD Stopper and Deleter unit tests (#4)

* Updated files for initial PR
This commit is contained in:
Loc Nguyen
2018-06-04 15:41:32 -07:00
committed by Ria Bhatia
parent 98a111e8b7
commit 513cebe7b7
6296 changed files with 1123685 additions and 8 deletions

View File

@@ -0,0 +1,37 @@
version: "3"
services:
vote:
image: victest/vote
container_name: vote
command: python app.py
ports:
- "5000:80"
redis:
image: redis:alpine
container_name: redis
ports: ["6379"]
worker:
container_name: worker
image: victest/vote-worker
# Postgres container will create an anonymous volume. VIC will use a
# vmdk for the volume. Since it is a new volume, it will have a lost+found
# folder, and the Postgres init scripts do not like a non-empty folder (the
# lost+found folder). We work around this by directing the init scripts to
# use another arbitrary folder. We do this by setting the PGDATA env var.
db:
container_name: db
image: postgres:9.4
environment:
- PGDATA=/var/lib/postgresql/data/data
result:
image: victest/vote-result
container_name: result
command: nodemon --debug server.js
ports:
- "5001:80"
- "5858:5858"

View File

@@ -0,0 +1,69 @@
{
"Services": {
"db": {
"Env": [
"PGDATA=/var/lib/postgresql/data/data"
],
"Image": "postgres@sha256:9db811348585075eddb7b6938fa65c0236fe8e4f7feaf3c2890a3c4b7f4c9bfc",
"Networks": [
"default"
]
},
"redis": {
"Image": "redis@sha256:f1ed3708f538b537eb9c2a7dd50dc90a706f7debd7e1196c9264edeea521a86d",
"Networks": [
"default"
],
"Ports": [
{
"Port": 6379,
"Protocol": "tcp"
}
]
},
"result": {
"Args": [
"nodemon",
"--debug",
"server.js"
],
"Image": "victest/vote-result@sha256:413fcc5d11e4426d9e5ec512056aeeb7fa83acc61eec2ed6346e8d30d56b7ae7",
"Networks": [
"default"
],
"Ports": [
{
"Port": 80,
"Protocol": "tcp"
},
{
"Port": 5858,
"Protocol": "tcp"
}
]
},
"vote": {
"Args": [
"python",
"app.py"
],
"Image": "victest/vote@sha256:13037f3373a3b10dfeac4f323b38a215d9665d88d72b1bb5fe7baef83c3b34ad",
"Networks": [
"default"
],
"Ports": [
{
"Port": 80,
"Protocol": "tcp"
}
]
},
"worker": {
"Image": "victest/vote-worker@sha256:70cc69d1e91b8c23bbfd7515572c804c8b954c227da0e55e1131c367929f79dd",
"Networks": [
"default"
]
}
},
"Version": "0.1"
}

View File

@@ -0,0 +1,30 @@
version: '3'
networks:
my_net:
driver: bridge
services:
web_server:
image: victest/web_elgg
container_name: web_server
networks:
- my_net
ports:
- "8080:8080"
mysql_server:
image: victest/web_db
container_name: mysql_server
command: [bash, -c, "/execute.sh"]
networks:
- my_net
environment:
- web_host=192.168.60.130
- root_password=root
memcache_server:
image: cloudsuite/web-serving:memcached_server
container_name: memcache_server
networks:
- my_net