Commit Graph

312 Commits

Author SHA1 Message Date
Robbie Zhang
87acc00457 Merge branch 'master' into alicloud-eci 2018-09-24 12:33:19 -07:00
Robbie Zhang
f7eb898a00 Update virtual-kubelet helm chart to support ACI VNet (#356)
* Update the virtual-kubelet helm chart for ACI VNet

* Fix the typo

* version

* secret encoding

* Update the version to 0.4.0

* Add ClusterResourceId for LogAnalytics
2018-09-24 12:32:49 -07:00
Anubhav Mishra
ddf955e6e1 Fix typo. (#357)
Thanks for the contribution :)
2018-09-23 16:50:36 -04:00
shidao-ytt
7faf07dcc2 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>
2018-09-23 23:29:06 +08:00
shidao-ytt
e9d17c23d3 Add Alibaba Cloud ECI Provider
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 provider for virtual kubelet, connects ECI with
kubernetes cluster.

Signed-off-by: xianwei.zw <xianwei.zw@alibaba-inc.com>
Signed-off-by: shidao.ytt <shidao.ytt@alibaba-inc.com>
2018-09-23 23:29:06 +08:00
shidao-ytt
101baecc86 Add Alibaba Cloud ECI SDK
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 sdk for virtual kubelet.

Signed-off-by: xianwei.zw <xianwei.zw@alibaba-inc.com>
Signed-off-by: shidao.ytt <shidao.ytt@alibaba-inc.com>
2018-09-23 23:29:06 +08:00
Brian Goff
06ce3d290a Merge pull request #350 from cpuguy83/refactor_http_handlers
Refactor http handlers
2018-09-20 16:04:37 -07:00
Brian Goff
3f7077270a Merge pull request #353 from cpuguy83/fix_aci_panic
Fix NPE panic in ACI client
2018-09-19 20:12:15 -07:00
Brian Goff
74840defdf Fix NPE panic in ACI client
resp is nil when `Do()` has an error.

Also seems there was some gofmt issues in the file.
2018-09-19 18:18:24 -07:00
Ria Bhatia
b8d0b6eb03 Azure readme work arounds (#346)
* workarounds for errors

* cleaned up
2018-09-18 16:03:30 -07:00
Brian Goff
da5e24ef4d Move API handlers to separate package
This makes the package split a little cleaner and easier to import the
HTTP handlers for other consumers.
2018-09-18 11:08:24 -07:00
Brian Goff
74f76c75d5 Instrustment handlers for logging/error handling
This refactors a bit of the http handler code.
Moves error handling for handler functions to a generic handler.
This also has a side-effect of being able to propagate errors from the
provider to send the correct status code, provided the error type
matches a pre-defined interface.
2018-09-17 16:54:24 -07:00
Brian Goff
8eb6ab4bcd Remove intermediate API server objects
Instead just generate HTTP handler functions directly.
2018-09-17 14:47:26 -07:00
Jeremy Rickard
1aa2f0ccce Update the virtual-kubelet-for-aks chart (#349)
* Update the virtual-kubelet-for-aks chart

* Remove taint command line flag
* Update the latest tgz
:`:

* Updated to latest
2018-09-14 11:32:51 -07:00
Brian Goff
55002eaa4b Merge pull request #326 from cpuguy83/tracing
Plumb context to providers
2018-09-13 13:57:42 -07:00
Brian Goff
8091b089a2 Plumb context to providers 2018-09-13 13:49:26 -07:00
robbiezhang
4e20fc40ca Override the host in kubeconfig if MASTER_URI EnvVar is set v0.6.1 2018-09-10 12:56:50 -07:00
robbiezhang
0f54e1ed9c Bug fixes v0.6.0 2018-09-07 18:46:49 -07:00
robbiezhang
8d883dcecd Change default CPU limit to 800 2018-09-07 18:46:49 -07:00
robbiezhang
1ee8847bbe Fix the pod uuid 2018-09-07 18:46:49 -07:00
robbiezhang
df90c71875 Add unit tests 2018-09-07 18:46:49 -07:00
robbiezhang
844d8a71d0 Add LogType and Metadata for Log Analytics 2018-09-07 18:46:49 -07:00
robbiezhang
b41c1fee1a fix the extensions 2018-09-07 18:46:49 -07:00
Robbie Zhang
a0fb67f2c0 Add validation 2018-09-07 18:46:49 -07:00
Robbie Zhang
a8acef31ff Fix unit test 2018-09-07 18:46:49 -07:00
Robbie Zhang
169e733adb Adopt ACI Extension and DNSConfig 2018-09-07 18:46:49 -07:00
Robbie Zhang
3ef512349b Update the network api version (#338) 2018-09-07 18:46:49 -07:00
robbiezhang
c0af40bdbd Update the kube-proxy command 2018-09-07 18:46:49 -07:00
robbiezhang
e445f9235c Update the kube-proxy image and command 2018-09-07 18:46:49 -07:00
Robbie Zhang
24ee86f1bb Merge from master (#328)
* Add default provider taint and taint configuration options

This allows for more specificity when setting taint tolerations for
workloads. Three new env variables are introduced:

VKUBELET_TAINT_KEY (defaults to `virtual-kubelet.io/provider`)
VKUBELET_TAINT_VALUE (defaults to provider name)
VKUBELET_TAINT_EFFECT (defaults to `NoSchedule`)

BREAKING CHANGES:
- The default taint key of `azure.com/aci` is now
  `virtual-kubelet.io/provider`.
- Specifying a custom taint key is now done via an environment variable
  rather than the `--taint` command line flag.

* Add back deprecated taint flag

TODO: Revert this commit

Related to #316

* Add darwin tag to not build for osx

* Darwin specific lookup file without cri and vic

* Fix chart notes template (#317)

Values were moved from env to top level.

* If --taint is specified, set the taint value to empty (#322)

Add the old tolerations the examples to make it backward compatible during the switch

* Use standard logging package (#323)

* Update kubelet vendor to pull in stats API

* Add errgroup dep which will be used for ACI stats

* Add supports for stats in ACI provider

This adds a new, optional, interface for providers that want to provide
stats.

* Don't use globals for API server

Refactors how HTTP servers are started and binds them to objects that
can store the provider rather than relying on a global.

* Fix merge conflict

* Fix couple errors
2018-09-07 18:46:49 -07:00
Robbie Zhang
6e32d2c544 Update the helm chart to support the ACI VNet Integration 2018-09-07 18:46:49 -07:00
Robbie Zhang
b364af21ea Add the Kube-Proxy Side Car Container and Volume to the container group (#292)
* Add Kube-Proxy Side Car Container

* Add the Kube-Proxy Side Car Container

* Add test

* Bug fix
2018-09-07 18:46:49 -07:00
Robbie Zhang
bac3a585da Fix several bugs in the VNET (#287)
* Add more support regions

* Add kube-proxy sidecar container

* Kube-proxy

* Fix several bugs

* indent
2018-09-07 18:46:49 -07:00
Jeremy Rickard
f3578bfc9b Adding network policy reference (#269) 2018-09-07 18:46:49 -07:00
Brian Goff
25e454d18f Add API client for Azure custom vnet (#271)
* Update vendor for azure vent support

* Add support for Azure custom vnets.

Use pointers intead of values. This allows the client to pass back
returned data from Azure.
2018-09-07 18:46:49 -07:00
Jeremy Rickard
36eb3db8a9 Adding network policy reference (#269) 2018-09-07 18:46:49 -07:00
Don Bowman
12700633b1 Move 'az provider register' to 'Configure your Azure account' section. (#339)
Regardless of whether you use the quick-start or the manual setup,
you need to run:
`az provider register --namespace 'Microsoft.ContainerInstance'`
on your account. Move up from the 'Manual' section.
2018-09-05 15:09:18 -07:00
Robbie Zhang
55bc0c3f75 Add ContainerID into the ContainerStatus (#337) v0.5.2 2018-08-27 15:38:14 -07:00
Robbie Zhang
b019ec5549 Bug Fixes (#329) 2018-08-27 11:53:59 -07:00
Ria Bhatia
7442189e77 adding the taint format (#334)
adding the new taint format
2018-08-23 14:09:06 -07:00
Brian Goff
bb8ba567e3 Merge pull request #325 from cpuguy83/refactor_api_init
Don't use globals for API server
2018-08-20 13:44:47 -07:00
Brian Goff
8de6693460 Don't use globals for API server
Refactors how HTTP servers are started and binds them to objects that
can store the provider rather than relying on a global.
2018-08-20 11:52:54 -07:00
Brian Goff
99e0cfad5c Merge pull request #306 from cpuguy83/metrics
Add support fort kubelet stats summary
2018-08-20 11:37:50 -07:00
Brian Goff
e8abca0ac9 Add supports for stats in ACI provider
This adds a new, optional, interface for providers that want to provide
stats.
2018-08-17 17:03:25 -07:00
Brian Goff
6284757aa1 Add errgroup dep which will be used for ACI stats 2018-08-17 16:55:18 -07:00
Brian Goff
17cc3033ba Update kubelet vendor to pull in stats API 2018-08-17 16:55:18 -07:00
Brian Goff
1e774a32b3 Use standard logging package (#323) 2018-08-17 16:50:24 -07:00
Robbie Zhang
d7f97b9bfc If --taint is specified, set the taint value to empty (#322)
Add the old tolerations the examples to make it backward compatible during the switch
v0.5.1
2018-08-15 17:44:51 -07:00
Brian Goff
b0e5ed758e Merge pull request #320 from Bee-Projects/darwin-support
Fixing the broken build in OSX
v0.5.0
2018-08-15 10:26:49 -07:00
Brian Goff
14339338b8 Fix chart notes template (#317)
Values were moved from env to top level.
2018-08-15 10:26:00 -07:00