Commit Graph

386 Commits

Author SHA1 Message Date
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
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