Commit Graph

6205 Commits (b24b251cb13e3a960e8638928e7d40c3b3d79478)

Author SHA1 Message Date
Yu-Ju Hong d6ff297a1f Kubelet: stop logging "Error on reading termination-log..." messages
If a pod was deleted and the associated volumes/directory were removed, there
could be a window where the pod worker is still active. If the pod worker tries
to inspect the logs, such an error would be logged. Since the pod has been
deleted, such error messages are meaningless.

This change stops logging this error, but stores the error string in the pod
status. The pod status will be updated for pods that are still alive, and will
be discarded eventually for deleted pods.
2015-07-01 14:20:42 -07:00
Zach Loafman 9363285b4a Merge pull request #10320 from yujuhong/kubelet_logging
Kubelet: add and modify some logging messsages
2015-07-01 14:16:23 -07:00
Eric Paris 7a29af4d2c Add Subject Alt Names to self signed apiserver certs
A cert from GCE shows:
- IP Address:23.236.49.122
- IP Address:10.0.0.1
- DNS:kubernetes,
- DNS:kubernetes.default
- DNS:kubernetes.default.svc
- DNS:kubernetes.default.svc.cluster.local
- DNS:e2e-test-zml-master

A similarly configured self signed cert shows:
- IP Address:23.236.49.122
- IP Address:10.0.0.1
- DNS:kubernetes
- DNS:kubernetes.default
- DNS:kubernetes.default.svc

So we are missing the fqdn kubernetes.default.svc.cluster.local. The
apiserver does not even know the fqdn! it's defined entirely by the
kubelet! We also do not have the cluster name certificate. This may be
--cluster-name= argument to the apiserver but will take a bit more
research.
2015-07-01 17:05:17 -04:00
Clayton Coleman 4e7526fc18 The bearer token client transport should not override Authorization
If an authorization header is already set via the client or request,
the bearer transport for the client should not override the
Authorization header.

Allows one client to be used for multiple users when acting as a
proxy or gateway.
2015-07-01 16:14:25 -04:00
Clayton Coleman 8d189245fb Make util.empty public for conversions
Some downstream components want to use a StringSet in their internal
objects, but leaving util.empty private means that generated conversions
cannot create constructors generically for those objects.  This makes
Empty public until such a time as the generator supports private types.
2015-07-01 16:12:15 -04:00
Zach Loafman 9db58ff2b2 Merge pull request #10632 from nikhiljindal/revert-etcderrors
Revert "Merge pull request #10246 from nikhiljindal"
2015-07-01 13:06:18 -07:00
Kris Rousey ffa764d60b Unify command line namespace resolution
This change allows the namespace in kubeconfig to be overridden by
specifying the namespace in the spec file. If namespace is explicitly
provided in the command line flags and the spec file has a different
namespace, this will cause an error.
2015-07-01 12:59:17 -07:00
Zach Loafman 62aca7e762 Merge pull request #9791 from hurf/ns_describe
Display namespace while describing resources.
2015-07-01 12:01:50 -07:00
Zach Loafman 9e23ad7102 Merge pull request #10510 from mikedanese/kubectl-context-err
make use-context return error when context does not exist
2015-07-01 12:01:24 -07:00
Zach Loafman 00193bf1ac Merge pull request #10529 from jlowdermilk/upgrade-aware-proxy-ssh
Make UpgradeAwareProxyHandler use transport.Dial if provided
2015-07-01 12:01:01 -07:00
Zach Loafman 0edd827c1c Merge pull request #10566 from markturansky/pvspec_desc
Removed extraneous json descriptions from internal types
2015-07-01 12:00:31 -07:00
Zach Loafman 7689391c68 Merge pull request #10504 from bcbroussard/explore-updates
Update Web UI Explore page
2015-07-01 11:09:49 -07:00
nikhiljindal d82d5d11a7 Revert "Merge pull request #10246 from nikhiljindal"
This reverts commit a902a2f014, reversing
changes made to 7df8d76a93.
2015-07-01 11:07:18 -07:00
Jeff Lowdermilk f0a36b0afd Make UpgradeAwareProxyHandler use transport.Dial if provided
This change is required for the handler to work with sshtunnels.
Without it, `kubectl exec` and `kubectl port-forward` are broken
when an ssh proxy is used (see #9292). I manually verified this
fixes that issue, e2e test coming shortly.
2015-07-01 10:56:05 -07:00
Daniel Smith 5911a12b14 Fix node not rejoining cluster on reboot
Also improve logging. Fixes #10368.

GCE's external ID apparently can change after a reboot.
2015-07-01 10:21:24 -07:00
Anastasis Andronidis 7480077f2b Rename REASON column to STATUS for kubectl get
Fixes #10560
2015-07-01 17:38:27 +02:00
Zach Loafman b42cac69cb Merge pull request #10519 from JanetKuo/kubectl-c
Enable -c for kubectl logs container arg
2015-07-01 08:36:38 -07:00
Zach Loafman 03be2f3f0b Merge pull request #10545 from liggitt/rate_limit
Switch to token bucket rate limiter with better performance
2015-07-01 08:36:19 -07:00
Zach Loafman 502103cdc6 Merge pull request #10453 from satnam6502/fix-es
Change port names to avoid validation failure
2015-07-01 08:30:28 -07:00
Zach Loafman add08cb9c3 Merge pull request #10491 from JanetKuo/kubectl
Implement 'kubectl get ... -o wide'
2015-07-01 06:41:44 -07:00
Zach Loafman 513bf2ceba Merge pull request #10583 from cjcullen/lockfix
Don't hold lock while opening new sshTunnels.
2015-07-01 06:41:04 -07:00
Wojciech Tyczynski 5965e82a3a Merge pull request #10500 from lavalamp/etcdChanFix
Fix logging.
2015-07-01 11:47:22 +02:00
feihujiang 70036069ee Using NAME to replace ID in help string 2015-07-01 15:35:08 +08:00
nikhiljindal 2e9e46dd08 Updating scripts to use v1 instead of v1beta3 2015-07-01 00:23:16 -07:00
Zach Loafman 1715505d6b Merge pull request #10538 from marekbiskup/typo-hypen
correct typo
2015-06-30 23:11:11 -07:00
Mike Danese aea3403734 make use-context return error when context does not exist 2015-06-30 19:08:55 -07:00
CJ Cullen 0e2be0d320 Fix record tests 2015-06-30 17:08:27 -07:00
CJ Cullen 2a803769fc Fix gofmt in replication_controller_test.go 2015-06-30 17:01:15 -07:00
CJ Cullen 12553c9b91 Fix errors test 2015-06-30 16:43:33 -07:00
Zach Loafman 9a5891dc89 Merge pull request #10391 from wojtek-t/longer_metrics
Increase the length of sliding window for latency metrics
2015-06-30 16:04:53 -07:00
Zach Loafman 2884446c50 Merge pull request #10443 from bprashanth/sort_rc
Handle overlapping controllers semi-deterministically
2015-06-30 15:56:54 -07:00
Zach Loafman df753b74ed Merge pull request #10509 from nikhiljindal/getToPost
Support both GET and POST methods in api server for /exec and /portforward
2015-06-30 15:56:31 -07:00
Zach Loafman a902a2f014 Merge pull request #10246 from nikhiljindal/minionPrefix
Return api/errors instead of raw etcd errors
2015-06-30 15:47:58 -07:00
Zach Loafman 7df8d76a93 Merge pull request #10169 from saad-ali/fixPDIssue2
Work around for PDs stop mounting after a few hours issue
2015-06-30 15:47:21 -07:00
Zach Loafman a80cbe6069 Merge pull request #10567 from alex-mohr/merge-release-0.20-to-master
Merge release 0.20.2 to master
2015-06-30 15:10:21 -07:00
Alex Mohr 63913da73e Update version to 0.20.2+ 2015-06-30 14:24:14 -07:00
Janet Kuo 682734bcc7 Implement 'kubectl get ... -o wide' 2015-06-30 14:06:47 -07:00
Zach Loafman 5529f11eb9 Merge pull request #10533 from thockin/better-errors
Don't repeat field name in errors
2015-06-30 14:01:39 -07:00
Zach Loafman 686f5a3084 Merge pull request #10556 from smarterclayton/remove_hardcoded_version
Do not hardcode version
2015-06-30 13:53:35 -07:00
saadali c952ee23a7 Work around for PDs stop mounting after a few hours issue 2015-06-30 13:31:03 -07:00
Janet Kuo 62b488359f Enable -c for kubectl logs container arg 2015-06-30 13:25:54 -07:00
markturansky c39be4bc74 Removed extraneous json desc 2015-06-30 15:28:12 -04:00
Tim Hockin 15766bfbbc Don't repeat field name in errors 2015-06-30 11:58:21 -07:00
Satnam Singh 4e58e001da Change port names to avoid validation failure 2015-06-30 10:56:20 -07:00
Daniel Smith eabc344eed Fix logging; extend queue length to 100 2015-06-30 10:27:24 -07:00
Jordan Liggitt f265d5c5ee Switch token bucket rate limiter to github.com/juju/ratelimit 2015-06-30 10:34:41 -04:00
Clayton Coleman 873fa1067e Do not hardcode version
The version is inferred automatically by client.New in
SetKubernetesDefaults(), and also negotiated.
2015-06-30 10:30:58 -04:00
Marek Biskup 88c70d2ae0 correct typo 2015-06-30 11:23:48 +02:00
feihujiang 55db7ec369 Output error when using kubectl describe for a nonexisting resource 2015-06-30 14:12:58 +08:00
Alex Robinson 835eded294 Merge pull request #10526 from mikedanese/nil-deref-test
bug: fix possible nil pointer derefrence in test
2015-06-29 21:01:37 -07:00
Mike Danese 5a48eee611 bug: fix possible nil pointer derefrence in test 2015-06-29 20:34:26 -07:00
BC Broussard d1893bc366 Update Web UI Explore
Hide blank label dropdowns
Escape characters in group descriptions and label selectors
Update label selectors
2015-06-29 16:51:48 -07:00
Chao Xu 7f89a29aad add "kubectl patch". It will replace "kubectl udpate --patch" in the future 2015-06-29 16:36:45 -07:00
nikhiljindal 4b7f7ce535 Dont return raw etcd errors 2015-06-29 16:18:46 -07:00
CJ Cullen ea2d617944 Don't hold lock while opening new sshTunnels. 2015-06-29 16:16:25 -07:00
Alex Robinson 764d34d363 Merge pull request #10468 from caesarxuchao/add-cmd-replace
Add command "kubectl replace"
2015-06-29 16:06:33 -07:00
nikhiljindal e0d48d4983 Support both GET and POST methods for /exec and /portforward 2015-06-29 16:01:01 -07:00
Prashanth Balasubramanian 90ebc1ad29 Sort overlapping rcs 2015-06-29 15:30:19 -07:00
Alex Robinson 68bbf6c129 Merge pull request #10447 from feihujiang/helpfulErrorForUnsupportedVersion
Provide more helpful error when using unsupported api version
2015-06-29 15:00:58 -07:00
Alex Robinson 5d13e78572 Merge pull request #9781 from andronat/5840_yaml_2
Fixes ignored objects in one YAML file
2015-06-29 14:29:59 -07:00
Alex Robinson b758be0daf Merge pull request #9047 from kazegusuri/allocator_test
add unit test for allocator
2015-06-29 14:11:48 -07:00
Anastasis Andronidis 697e07f864 Correctly parse multiple resources from files
Refactored how files, directories and stdin are handled. Every file must pass
through the FileVisitor and then streamed through StreamVisitor. FileVisitor
takes care of opening/closing files and StreamVisitor is parsing multiple
resources.
2015-06-29 23:11:46 +02:00
Alex Robinson b3aad24d40 Merge pull request #10414 from swagiaal/iscsi-print-error
iscsi plugin: print error messages not just exit status.
2015-06-29 14:06:09 -07:00
Alex Robinson 10a0dc9aae Merge pull request #9928 from jlowdermilk/version-negotiate-tests
Unittest for #9762
2015-06-29 13:34:13 -07:00
Alex Robinson 83f0bd668c Merge pull request #10427 from lavalamp/etcdChanFix
Don't block etcd client
2015-06-29 13:28:48 -07:00
Chao Xu 9b3d42c090 Add command "kubectl replace". "kubectl update" is still supported as an alias.
"kubectl replace --patch" is NOT supported. It's moved to "kubectl patch" as a separate command in another commit.
2015-06-29 12:14:24 -07:00
Yu-Ju Hong de75a42cb2 Add a kubelet /runningpods endpoint
/runningpods returns a list of pods currently running on the kubelet. The list
is composed by examining the container runtime, and may be different from the
desired pods to run known by kubelet.

This is useful for tests to verify that pods are indeed deleted on nodes.
2015-06-29 11:29:23 -07:00
Alex Robinson 21f750fdc3 Merge pull request #10287 from wojtek-t/changes_to_registry
Remove some dead code
2015-06-29 11:02:41 -07:00
Alex Robinson 143bfeb40e Merge pull request #10471 from bprashanth/master_list
Kubelet doesn't fight apiserver for cputime on the master.
2015-06-29 10:22:00 -07:00
Alex Robinson fa1d0e59e8 Merge pull request #10422 from bcbroussard/gauge-colors
Update Web UI Bar Gauge Graphs
2015-06-29 09:25:47 -07:00
Sami Wagiaalla a317b5ffc8 iscsi plugin: print error messages not just exit status.
Signed-off-by: Sami Wagiaalla <swagiaal@redhat.com>
2015-06-29 11:28:56 -04:00
feihujiang 878a72228f Provide more helpful error when using unsupported api version 2015-06-29 15:32:54 +08:00
Tim Hockin 025f728e50 Fix 'a' vs 'an' 2015-06-28 20:51:36 -07:00
Prashanth Balasubramanian 029e0ad350 Kubelet doesn't fight apiserver for cputime on the master. 2015-06-28 19:53:35 -07:00
hurf b13d29fbe8 Display namespace while describing resources.
Display namespace while describing pod, rc, secret, service,
serviceAccount, limitRange, resourceQuota and pvc.

For containers and events are always displayed with other
resources, it's not necessary to show namespace for them.
2015-06-29 09:17:12 +08:00
Tim Hockin 08f66f04d6 Fix error message 2015-06-28 14:49:38 -07:00
Robert Bailey 6b97ac0880 Merge pull request #10131 from thockin/svc-docs
Hopefully make NodePort docs clearer
2015-06-26 21:50:46 -07:00
Robert Bailey ed03973ae0 Merge pull request #10269 from nikhiljindal/eventsErrors
Returning api/errors from event/rest.go
2015-06-26 17:12:09 -07:00
Robert Bailey 8ee63307e4 Merge pull request #9958 from smarterclayton/use_copier
Use runtime.Copier instead of hardcoding api.Scheme
2015-06-26 17:11:48 -07:00
Daniel Smith 45ac0cf25e Don't block etcd client 2015-06-26 14:27:13 -07:00
BC Broussard 2f43fc72db Update Web UI Bar Gauge Graphs
- Changed file system abbreviation from 'FS' to Filesystem
- Made chart height dynamic and incorporated legend height change into the master code/datafile.go binary
- Updated the max colors for the graph
- Realigned graph numbers
2015-06-26 13:52:08 -07:00
nikhiljindal 7b56d89e80 Returning api/errors from event 2015-06-26 13:51:55 -07:00
Robert Bailey f9db614f95 Merge pull request #10234 from mikedanese/rolling-update-weird
Detect if replicas have been defaulted in rolling-update and use old replica count
2015-06-26 12:54:35 -07:00
Clayton Coleman 6970dda54e Use runtime.Copier instead of hardcoding api.Scheme
Allow other schemes to be supported by etcd_helper.go

runtime.Scheme.Copy() should be using the built in DeepCopy()
2015-06-26 14:50:33 -04:00
Robert Bailey 8ebd896351 Merge pull request #10274 from brendandburns/release-0.20
Release 0.20
2015-06-26 11:34:10 -07:00
Robert Bailey 508f7f1697 Merge pull request #10358 from caesarxuchao/add-force-update
Add --force to `kubectl update`
2015-06-26 10:49:04 -07:00
Robert Bailey 54a3ebef3c Merge pull request #10315 from nikhiljindal/invalidValue
Updating the "invalid value" error message to include the list of valid values
2015-06-26 10:46:59 -07:00
Robert Bailey 0048eae8eb Merge pull request #9965 from stevekuznetsov/skuznets/allow-https
Allowing for HTTPS Probes
2015-06-26 10:43:37 -07:00
Wojciech Tyczynski 4c4d59a236 Increase the length of sliding window for latency metrics 2015-06-26 13:08:21 +02:00
Brendan Burns 8972a4865b Kubernetes version v0.20.0-dev 2015-06-25 20:10:17 -07:00
Brendan Burns c17a15a0cb Kubernetes version v0.20.0 2015-06-25 20:08:58 -07:00
Maxwell Forbes 712f303350 Merge pull request #9736 from sdminonne/bug_fix2
To add validation for service ports when defined as string
2015-06-25 19:37:04 -07:00
Chao Xu ef5de91fd7 add "--force" flag to "kubectl update";
update relevant tests
2015-06-25 17:16:20 -07:00
Maxwell Forbes 03121c2536 Merge pull request #10252 from akramer/patch-1
Fixing spacing in documentation comments
2015-06-25 15:09:41 -07:00
Steve Kuznetsov 3008ff6150 Changed HTTPGetAction to allow user-defined schemes 2015-06-25 16:59:12 -04:00
Maxwell Forbes 5e748c1d47 Merge pull request #10070 from lavalamp/e2eProxyFix
proxy e2e test improvements
2015-06-25 13:15:03 -07:00
nikhiljindal 3b3ee0ed77 Improving an error message 2015-06-25 13:08:09 -07:00
Sami Wagiaalla 4a6a492281 Use instance availability zone for AWS EBS
Signed-off-by: Sami Wagiaalla <swagiaal@redhat.com>
2015-06-25 16:00:30 -04:00
Mike Danese 0c8f71aa0b make rolling update check if the replication controller has been defaulted 2015-06-25 12:29:21 -07:00
Mike Danese f79736d767 make replicas a pointer in v1beta3 api 2015-06-25 11:53:18 -07:00