deads2k
005f2e1bda
don't require config.Version for IsConfigTransportTLS
2015-01-08 13:53:57 -05:00
Clayton Coleman
7fd887df61
Enable v1beta3 API via --runtime_config=api/v1beta3 flag
...
This exposes the proper v1beta3 API endpoint when the user specifies
the --runtime_config=api/v1beta3 argument to the apiserver. v1beta3
is still considered experimental and subject to change.
--runtime_config is a map of string keys and values, that can be
specified by providing
--runtime_config=a=b,b=c,d,e
Only the key must be specified, the value can be omitted.
Enables v1beta3 in hack/local-up-cluster.sh and hack/test-cmd.sh
2015-01-08 13:01:24 -05:00
Tim Hockin
eac982137f
Merge pull request #3260 from commonlisp/master
...
NewMainKubelet validates SyncFrequency, minimum GC age, etc.
2015-01-08 08:20:55 -08:00
deads2k
480635bb72
Revert "Revert "add kubeconfig types""
...
This reverts commit 02dbad7094
.
2015-01-08 09:42:30 -05:00
Zach Loafman
e421e6eecd
Merge pull request #3303 from zmerlynn/skip_skydns_test_on_gke
...
Skip TestClusterDNS on GKE (since DNS is disabled there)
2015-01-07 21:45:28 -08:00
George Kuan
06475fc4b4
NewMainKubelet validates Kubelet config parameters
...
Fixes issue #3202 .
* Validates SyncFrequency and minimum GC age and propagates error to RunKubelet
* Defaults for Kubelet config and minor cleanup
* cmd Kubelet MinimumGCAge to 1m instead of 0
2015-01-07 18:50:53 -08:00
Zach Loafman
f30846ecd5
Skip TestClusterDNS on GKE (since DNS is disabled there)
...
We'll eventually want to do something fancier here. But the yak needs
to stop growing hair.
2015-01-07 17:22:17 -08:00
Eric Tune
c2b3d678c0
Merge pull request #3248 from derekwaynecarr/admission_control_hooks
...
Implement basic admission control framework
2015-01-07 16:52:49 -08:00
Tim Hockin
5f2dae4dd8
Merge pull request #3195 from lavalamp/numericWire
...
Add numeric type into api
2015-01-07 16:15:52 -08:00
Eric Tune
0d4d1e28b2
Merge pull request #3270 from smarterclayton/kubelet_fixes
...
Cleanup to client initialization in Kubelet
2015-01-07 15:55:38 -08:00
Daniel Smith
35f54addca
Update more packages, tests, binaries for quantity
...
make etcd registry pass test
fix kubelet config for quantity
fix openstack for quantity
fix controller for quantity
fix last tests for quantity
wire into binaries
fix controller manager
fix build for 32 bit systems
2015-01-07 15:21:35 -08:00
Brendan Burns
02dbad7094
Revert "add kubeconfig types"
2015-01-07 12:39:37 -08:00
Brendan Burns
39d1c1aa30
Merge pull request #3255 from brendandburns/master
...
Add a little bit more logging to a test
2015-01-07 11:48:42 -08:00
derekwaynecarr
a56087cdf8
Remove client from attributes, remove admission control interface, fix-up error codes
2015-01-07 14:42:31 -05:00
derekwaynecarr
1e2b995a79
Fix admission control in tests
2015-01-07 14:42:31 -05:00
derekwaynecarr
520ae3ef27
Implement basic admission control framework
2015-01-07 14:42:31 -05:00
Clayton Coleman
ba53d723d3
Clean up how client is passed to Kubelet in preparation for reading pods
...
Also fixes how Kubelet server looks up pods by name when there are multiple
sources.
2015-01-07 14:40:37 -05:00
Clayton Coleman
585d2c8cbd
Merge pull request #2861 from deads2k/deads-add-clicfg-types
...
add kubeconfig types
2015-01-07 13:35:50 -05:00
bgrant0607
6e24273937
Merge pull request #3061 from jlowdermilk/rollingupdate
...
Add a rollingupdate lib and command to kubectl
2015-01-07 10:33:39 -08:00
deads2k
0e688dc271
add kubeconfig file
2015-01-07 13:09:10 -05:00
Eric Tune
441445fae4
Added e2e test: checks service env vars created.
2015-01-06 20:50:58 -08:00
Jeff Lowdermlk
0ab39df66b
Add a rollingupdate lib and command to kubectl
...
Also decouple conditions from client for testability.
2015-01-06 17:29:05 -08:00
Brendan Burns
01572617d4
Add a little bit more logging to a test so that if it times out we have more debugging.
2015-01-06 15:25:04 -08:00
Jordan Liggitt
b36a44f036
Automatically serve API on https with self-signed cert
2015-01-06 09:36:29 -05:00
Dawn Chen
f718957a79
Move GetHostName and GetDockerEndpoint methods to pkg/util
2015-01-05 11:44:21 -08:00
Tim Hockin
a57976b46d
fix call to Fatal() vs Fatalf()
2015-01-03 20:51:14 -08:00
Tim Hockin
297c8d1d5a
Parse flags for in integration test.
...
The default --v=10 might be reconsidered.
2015-01-03 20:48:19 -08:00
Clayton Coleman
e355f54eda
Update references from Path() to the appropriate segment use
2014-12-29 15:38:52 -05:00
Tim Hockin
32a59477a5
Add an e2e test for DNS from pods.
2014-12-29 09:18:12 -08:00
Tim Hockin
652479a3b1
Add kubelet DNS flags & api disable for DNS
...
This adds --cluster_dns and --cluster_domain flags to kubelet. If
non-empty, kubelet will set docker --dns and --dns-search flags based on
these. It uses the cluster DNS and appends the hosts's DNS servers.
Likewise for DNS search domains.
This also adds API support to bypass cluster DNS entirely, needed to
bootstrap DNS.
2014-12-29 09:18:12 -08:00
Vishnu Kannan
6f53f33fda
Set oom_score_adj for kubelet and kube-proxy to a low value to help them survive system memory pressure.
2014-12-24 00:34:28 +00:00
Daniel Smith
5b8e91595a
Make pod listing costant-time
...
* move ip cache out of registry/pod
* combine, rationalize, and move pod status logic
* Fix unit and integration tests
2014-12-22 14:14:03 -08:00
Zach Loafman
57e1450ca7
Up cmd/e2e timeout
...
Attempt to fix https://github.com/GoogleCloudPlatform/kubernetes/issues/3053
2014-12-21 06:16:32 -08:00
Max Forbes
c3efef86d0
Add GKE as a provider.
2014-12-19 11:47:06 -08:00
bgrant0607
19f0b8b807
Merge pull request #2825 from mikedanese/scheduler-factory-plugins
...
Scheduler plugin configuration
2014-12-18 07:12:01 -08:00
Mike Danese
4850bdbe63
refactor scheduler factory to use plugin architecture style like credentialprovider and cloudprovider for configuring priority functions and fit predicates
2014-12-17 14:55:28 -08:00
Zach Loafman
d3aed6c9cd
Add kubernetes-test.tar.gz
...
Add test artifacts to the build. This lets you do:
tar -xzf kubernetes.tar.gz
tar -xzf kubernetes-test.tar.gz
cd kubernetes
go run ./hack/e2e.go -up -test -down
without having a git checkout.
2014-12-17 14:30:30 -08:00
Daniel Smith
0fd1ed2ba9
Merge pull request #2720 from brendandburns/tap
...
Add support for TAP (test anything protocol) output
2014-12-15 18:29:04 -08:00
bgrant0607
f621a05d74
Merge pull request #2945 from smarterclayton/support_optional_swagger
...
Make Swagger API support optional, so that consumers can define their own
2014-12-15 16:13:13 -08:00
Daniel Smith
f1f20f820a
Merge pull request #2942 from brendandburns/kubelet
...
revert the revert along with fixes to make it pass e2e tests.
2014-12-15 13:17:52 -08:00
Clayton Coleman
cd4135666e
Make Swagger API support optional, so that consumers can define their own
...
OpenShift would like to also enable swagger, but we need to register our
services as swagger services prior to the SwaggerAPI being started. I've
added a bool (default false) to master.Config to enable swagger, and split
the method in master out so that a downstream consumer can call it.
2014-12-15 15:29:55 -05:00
James DeFelice
e27b8f0df7
proxy should fail fast if proxier is nil, rather than panic later
2014-12-15 12:56:35 -05:00
Brendan Burns
a6f967b6e7
Revert "Revert "Add an api object for the kubelet, and a versioned endpoint.""
...
This reverts commit dcfcf315e5
.
2014-12-15 09:29:04 -08:00
Brendan Burns
dcfcf315e5
Revert "Add an api object for the kubelet, and a versioned endpoint."
...
This reverts commit d4b9979382
.
2014-12-12 21:13:44 -08:00
Brendan Burns
d4b9979382
Add an api object for the kubelet, and a versioned endpoint.
2014-12-12 15:26:28 -08:00
Brendan Burns
21d3662c2d
Add support for TAP (test anything protocol) output
2014-12-12 11:56:13 -08:00
Joe Beda
b7705d25c8
Merge pull request #2827 from liggitt/tlsv1
...
Bump minimum TLS version from SSLv3 to TLSv1.0
2014-12-10 13:15:29 -08:00
Clayton Coleman
9030759df8
Add 'nodes' everywhere 'minions' can be used in api / cli
2014-12-10 12:08:18 -05:00
Clayton Coleman
19379b5a38
Internal rename api.Minion -> api.Node
2014-12-10 12:08:18 -05:00
Jordan Liggitt
2475123d3c
Bump minimum TLS version from SSLv3 to TLSv1.0
2014-12-10 09:13:15 -05:00
Brendan Burns
953fa540ee
Merge pull request #2505 from abhgupta/abhgupta-dev
...
Scheduler changes for extensibility
2014-12-09 15:25:37 -08:00
Brendan Burns
91865f3576
Merge pull request #2536 from lavalamp/verifyNetwork
...
Verify network
2014-12-09 15:24:32 -08:00
Brendan Burns
4985f58eb5
Merge pull request #2759 from mikedanese/configure-cadvisor-port
...
make cadvisor port configurable on the kubelet
2014-12-09 15:21:35 -08:00
Brendan Burns
9a7f4469c1
Merge pull request #2793 from liggitt/tls_auth
...
x509 request authenticator
2014-12-09 15:17:39 -08:00
Daniel Smith
9c3f6a402d
add network test to e2e.go
2014-12-09 13:10:59 -08:00
Brendan Burns
18cfac0d31
Make validation optional, handle YAML
2014-12-09 12:37:49 -08:00
Brendan Burns
c29f5db81c
Revert "Revert "Add optional validation to kubecfg/kubectl.""
...
This reverts commit 6590c66dd4
.
2014-12-09 12:37:48 -08:00
Jordan Liggitt
09ba404fb7
x509 request authenticator
2014-12-09 09:34:16 -05:00
Abhishek Gupta
6b712cc700
Scheduler changes for extensibility
2014-12-08 14:47:05 -08:00
Mike Danese
722abf1a95
- make cadvisor port configurable on the kubelet.
...
- added cadvisor port documentation.
2014-12-06 09:48:08 -08:00
Daniel Smith
24a1497d5c
reenable update test
2014-12-04 15:13:11 -08:00
Daniel Smith
7d9a721852
Merge pull request #2736 from erictune/register_race
...
Fix race that drops the first event on restart.
2014-12-02 22:57:55 -08:00
Eric Tune
0c2a4302f5
Fix race that drops the first event on restart.
...
RegisterHandlers was called after the listening for events had already begun.
So, there was a race where sometimes the first update would, with the
initial state, would notify an empty list of listeners.
This showed up in services.sh e2e test as empty service and endpoint maps
after the test step which restarts the kube-proxy.
Perhaps due to timing, this doesn't show up with etcd source, but does
show up with apiserver as a source. A separate PR makes APIserver
the source as a default, and depends on this.
This took me several days to debug.
2014-12-02 22:04:45 -08:00
Daniel Smith
c3f03e556f
Merge pull request #2704 from brendandburns/e2e
...
e2e for "important URLs"
2014-12-02 17:53:46 -08:00
Brendan Burns
bf9d4a483d
Merge pull request #2717 from erictune/event_e2e_flake
...
Fix e2e failure of events test.
2014-12-02 11:33:48 -08:00
Eric Tune
a7718054a8
Fix e2e failure of events test.
2014-12-02 11:20:23 -08:00
Brendan Burns
d43343db5e
Add a test for important URLs on the apiserver.
2014-12-02 11:08:31 -08:00
Daniel Smith
d927031aec
Merge pull request #2705 from brendandburns/fix
...
Fix a logic error in the events e2e test.
2014-12-02 10:49:26 -08:00
Brendan Burns
92e8ebcb55
Fix a logic error in the events e2e test.
2014-12-01 22:40:00 -08:00
Brendan Burns
993ef88eec
Merge pull request #2689 from brendandburns/standalone
...
Refactor kubelet, standalone k8s and integration test to all use the same code.
2014-12-01 21:53:41 -08:00
Brendan Burns
203e76020e
Add a test for important URLs.
2014-12-01 15:54:30 -08:00
Brendan Burns
d47b510104
Refactor kubelet, standalone k8s and integration test to all use the same code.
2014-12-01 15:37:21 -08:00
deads2k
2dbfb80349
add utility for binding flags and building api server clients
2014-11-26 07:50:51 -05:00
Joe Beda
6590c66dd4
Revert "Add optional validation to kubecfg/kubectl."
...
This reverts commit acf6d82800
.
2014-11-25 14:45:00 -08:00
Clayton Coleman
a67912f937
Merge pull request #2517 from brendandburns/kubecfg
...
Add client side validation to kubecfg and kubectl.
2014-11-25 13:46:52 -06:00
Brendan Burns
acf6d82800
Add optional validation to kubecfg/kubectl.
2014-11-24 22:25:22 -08:00
Joe Beda
a25d865f06
Merge pull request #2555 from erictune/cleanup4
...
Do not use nginx image in e2e test
2014-11-24 08:49:59 -08:00
Brendan Burns
4b2a5cdb11
Merge pull request #2520 from mikedanese/proxy-healthz
...
add health check to kube-proxy
2014-11-24 08:44:33 -08:00
Brendan Burns
428cbcd799
Merge pull request #2531 from jbeda/32bit-fix
...
Fix 32bit build
2014-11-24 08:43:43 -08:00
Eric Tune
b67b359a1b
Do not use nginx image in e2e test
2014-11-23 09:22:45 -08:00
Mike Danese
5bda95f9fe
added healthz check to the proxy with configurable port
2014-11-23 09:07:19 -08:00
Joe Beda
e5b988393d
Fix 32bit build
2014-11-21 14:58:17 -08:00
markturansky
8159c8fd25
Refactor PodCondition to PodPhase
2014-11-21 15:28:38 -05:00
Tim Hockin
ea960711ff
Clean up error logs.
...
Use %v for errors, tidy some messages, make error messages start lowe-case
(as per go guidelines). Just accumulated nits.
2014-11-21 09:45:26 +08:00
Jordan Liggitt
c895331277
Make master take authenticator.Request interface instead of tokenfile
2014-11-19 15:07:51 -05:00
Clayton Coleman
1c524607d8
Merge pull request #2097 from markturansky/v1beta3_podrefactor
...
Refactor internal API for Pods to match v1beta3
2014-11-18 15:28:58 -05:00
Eric Tune
057d78e471
Treat unset KUBERNETES_PROVIDER as gce.
...
Should fix jenkins failure.
2014-11-18 10:13:45 -08:00
markturansky
8af4ccb111
v1beta3 Pod refactor
2014-11-18 09:25:42 -05:00
Eric Tune
4dbdfd7935
Only test events on GCE.
2014-11-18 00:23:41 -08:00
Eric Tune
46dcacfa93
Kubelet talks securely to apiserver.
...
Configure apiserver to serve Securely on port 6443.
Generate token for kubelets during master VM startup.
Put token into file apiserver can get and another file the kubelets can get.
Added e2e test.
2014-11-18 00:23:41 -08:00
Brendan Burns
cea52d7e4f
Merge pull request #2409 from mattmoor/master
...
Implements a credentialprovider library for use by DockerPuller.
2014-11-17 21:53:25 -08:00
Matt Moore
0c5d9ed0d2
Implements a credentialprovider library for use by DockerPuller.
...
This change refactors the way Kubelet's DockerPuller handles the docker config credentials to utilize a new credentialprovider library.
The credentialprovider library is based on several of the files from the Kubelet's dockertools directory, but supports a new pluggable model for retrieving a .dockercfg-compatible JSON blob with credentials.
With this change, the Kubelet will lazily ask for the docker config from a set of DockerConfigProvider extensions each time it needs a credential.
This change provides common implementations of DockerConfigProvider for:
- "Default": load .dockercfg from disk
- "Caching": wraps another provider in a cache that expires after a pre-specified lifetime.
GCP-only:
- "google-dockercfg": reads a .dockercfg from a GCE instance's metadata
- "google-dockercfg-url": reads a .dockercfg from a URL specified in a GCE instance's metadata.
- "google-container-registry": reads an access token from GCE metadata into a password field.
2014-11-17 21:46:54 -08:00
Joe Beda
66d287f7e4
Merge branch 'rename-to-kube' of https://github.com/eparis/kubernetes into eparis-rename-to-kube
...
* 'rename-to-kube' of https://github.com/eparis/kubernetes :
rename kube server binaries to kube-
Conflicts:
docs/salt.md
2014-11-17 09:52:10 -08:00
Victor Marmol
6908c9ca4a
Merge pull request #2407 from eparis/cadvisor-0.5.0
...
Cadvisor 0.5.0
2014-11-17 08:53:36 -08:00
Eric Paris
630acf221c
alias cadvisor/client to cadvisor
...
cadvisor 0.5.0 changes the package from cadvisor to client. Which of
course conflicts with our own client. Alias it back to cadvisor.
2014-11-16 21:44:34 -05:00
Daniel Smith
c412540cf2
Remove confusing function; add TODO and explanation for (nonfatal) error message in integration test.
2014-11-14 17:16:05 -08:00
Eric Tune
c770e70495
Factor to function.
2014-11-14 14:09:51 -08:00
Eric Tune
6430250ce8
Send events from kubelet.
...
Accept argument specifying file with kubernetes_auth file.
Make an api client in kubelet.
Send events to apiserver.
2014-11-14 13:37:20 -08:00
Clayton Coleman
c95b8694d6
Merge pull request #2340 from erictune/refactor_kube_auth
...
Refactor kube auth
2014-11-14 14:10:53 -05:00
Eric Tune
0727219c83
New package defines .kubernetes_auth format.
...
Refactored common code to that package.
Subsequent PRs will load and emit these files.
2014-11-14 10:36:25 -08:00