348 Commits

Author SHA1 Message Date
Brian Goff
b082eced13 Merge pull request #377 from robbiezhang/master
[ACI] A few bug fix for the Network Setup
v0.6.4
2018-10-16 13:58:04 -07:00
robbiezhang
10cf53cc9c Use a hash of the subnetID instead of virtual node name to avoid conflict 2018-10-16 20:31:39 +00:00
robbiezhang
c193fbe3c0 Remove the validation on the Subnet IP Configuration Profile
NRP used to add a profile entry when a service association link is added to the subnet

Now, the profile entry is added when a network profile is created

This breaks the current validation
2018-10-16 19:52:23 +00:00
Brian Goff
f5c47d59c4 Merge pull request #376 from robbiezhang/master
[VK] Change the default taint effect to NoSchedule
v0.6.3
2018-10-15 12:59:49 -07:00
robbiezhang
055f5a2e01 Change the default taint effect to NoSchedule 2018-10-15 19:46:42 +00:00
Brian Goff
957ee81634 Merge pull request #375 from robbiezhang/network-sdk
[ACI] Update the network SDK and add more validations
2018-10-13 11:45:10 -07:00
Brian Goff
c1fe923131 Minor refactorings (#368)
* Split vkubelet funcitons into separate files.

* Minor re-org for cmd/census*

* refactor run loop
2018-10-12 17:36:37 -07:00
robbiezhang
eb77d5686f Update the network sdk and add more validations 2018-10-13 00:16:19 +00:00
Brian Goff
d710e0391c Merge pull request #369 from robbiezhang/master
Update kubernetes projects version in vendor to 1.12.1
2018-10-11 10:06:20 -07:00
Brian Goff
d9e37b9fcc Merge pull request #374 from robbiezhang/fix-metrics-test
[ACI] Make the metrics test more robust in multi-container case
2018-10-11 08:16:03 -07:00
Robbie Zhang
8a5d5b670f Make the metrics test more robust in multi-container case 2018-10-10 18:43:37 -07:00
Robbie Zhang
05595835f1 Make default waiting reason to be Creating (#372) 2018-10-10 10:40:41 -07:00
Brian Goff
f2f373b71c Merge pull request #371 from robbiezhang/log-level
[VK] Set the log level correctly
2018-10-10 08:48:37 -07:00
robbiezhang
626b346fcb Fix the issue of unable to set log-level 2018-10-09 23:04:42 +00:00
Robbie Zhang
1d5c1a4d26 Merge branch 'master' into master 2018-10-09 12:32:07 -07:00
shidao-ytt
e6aa80d2c4 Add secret volume (#370)
* add secret volume implement with config map

Signed-off-by: xianwei.zw <xianwei.zw@alibaba-inc.com>
Signed-off-by: shidao-ytt <shidao.ytt@alibaba-inc.com>

* add request log for CreateContainerGroup
2018-10-09 12:30:18 -07:00
Robbie Zhang
362991c890 Merge branch 'master' into master 2018-10-05 17:54:48 -07:00
robbiezhang
5a00c27b9c Update kubernetes projects version in vendor to 1.12.1 2018-10-06 00:53:39 +00:00
Brian Goff
e474b3eec3 Merge pull request #366 from cpuguy83/set_build_tags
Pass go build tags from environment.
2018-10-05 15:09:22 -07:00
Brian Goff
7e570d657e Fix indentation in Dockerfile 2018-10-05 14:43:29 -07:00
Brian Goff
eb22b3b9e1 fix bad variable reference 2018-10-05 08:42:06 -07:00
Brian Goff
17d76d9492 Pass go build tags from environment.
Can now do something like `make VK_BUILD_TAGS=no_jaeger_exporter build`
and jaeger support will not be compiled in.

Currently there are build flags to omit every provider and every (the
only) supported tracing exporter.
2018-10-04 15:05:08 -07:00
Brian Goff
26d8fbcde8 Merge pull request #365 from cpuguy83/tracing_docs
Tracing docs
2018-10-04 13:00:08 -07:00
Brian Goff
ae49bbfd11 Fix filename typo s/cencus/census/ 2018-10-04 12:57:04 -07:00
Brian Goff
daa8487670 Add docs for tracing 2018-10-04 10:08:07 -07:00
Jeremy Rickard
1763f5a55c Merge pull request #355 from cpuguy83/add_tracing_instrumentation
Add support for tracing via OpenCencus
2018-10-02 13:49:10 -06:00
Brian Goff
8e29415bf7 Convert errors to OC status 2018-09-26 13:48:40 -07:00
Brian Goff
2fc82818ae Add tests for trace registry 2018-09-26 13:48:40 -07:00
Brian Goff
67c3922863 Add support for zpages 2018-09-26 13:48:40 -07:00
Brian Goff
682b2bccf8 Add support for tracing via OpenCencus
This adds a few flags for configuring the tracer.
Includes support for jaeger tracing (built into OC).
2018-09-26 13:48:40 -07:00
shidao-ytt
43d32d2301 update Alibaba Cloud ECI Docs (#362) v0.6.2 2018-09-26 13:21:33 -07:00
Brian Goff
083f6dee05 Refactor provider init (#360)
* Refactor provider init

This moves provider init out of vkubelet setup, instead preferring to
initialize vkubelet with a provider.

* Split API server configuration from setup.

This makes sure that configuration (which is done primarily through env
vars) is separate from actually standing up the servers.

This also makes sure to abort daemon initialization if the API servers
are not able to start.
2018-09-26 13:18:02 -07:00
Robbie Zhang
6b97713af3 Set the pod phase based on pod restart policy when provider failed (#361)
Update the resource manager to include the deleting pods in the GetPods function
2018-09-26 10:29:55 -07:00
Brian Goff
2026fe7069 Merge pull request #359 from cpuguy83/ci_linters
Add linters to CI
2018-09-26 10:14:42 -07:00
Brian Goff
5be552bb85 Add linters to CI 2018-09-25 16:11:18 -07:00
Brian Goff
317e6e9ea1 Merge pull request #351 from jovizhangwei/alicloud-eci
Add Alibaba Cloud ECI provider
2018-09-24 14:15:07 -07:00
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