Commit Graph

5258 Commits (0076c181c7ffa757401db6df256492b5ce6ec415)

Author SHA1 Message Date
Tim Hockin 97abc19810 Merge pull request #8299 from thockin/import-names
rename imported pkgs for readability
2015-05-19 12:01:57 -07:00
Eric Tune 1f4172d23c Merge pull request #6949 from roberthbailey/node-register
Modify nodes to register directly with the master.
2015-05-19 11:29:43 -07:00
Dawn Chen 349d8b1a67 Merge pull request #8491 from vmarmol/fix-isolation
Fix setting resource isolation in Docker 1.6+
2015-05-19 11:26:27 -07:00
Tim Hockin cb49843ccb Merge pull request #8140 from vishh/namespace
Update Namespace names to follow DNS label format
2015-05-19 11:25:32 -07:00
Tim Hockin 270c031bec Merge pull request #8484 from thockin/proxier-old-iptables
Clean up old iptables (pre-ip-per-service) legacy
2015-05-19 11:21:46 -07:00
Tim Hockin 70c94fad6d Don't rename api imports in conversions 2015-05-19 11:21:21 -07:00
Tim Hockin d689ba9b01 Rename versioned pkg imports in defaults tests 2015-05-19 11:18:55 -07:00
Vishnu Kannan d10af89493 Updating namespaces to be DNS labels instead of DNS names. 2015-05-19 11:09:09 -07:00
Daniel Smith 181124bc9b Merge pull request #7974 from deads2k/attach-pull-secrets-to-pods
Attach pull secrets to pods
2015-05-19 10:26:39 -07:00
Tim Hockin 711fa2f2c6 fix 2015-05-19 10:17:53 -07:00
Tim Hockin c7bf373d98 Allow same-hostport-different-protocol 2015-05-19 10:00:35 -07:00
Robert Bailey 01467e0bb8 Modify nodes to register directly with the master.
- Delete nodes when they are no longer ready and don't exist in the
cloud provider.
 - Label each node with it's hostname.
 - Add flag to skip node registration.
 - Add a test for registering an existing node.
2015-05-19 09:55:07 -07:00
Tim Hockin 9f808d8e16 Merge pull request #8498 from justinsb/proxier_lock_cleanupstalestickysessions
Add mutex lock to cleanupStaleStickySessions
2015-05-19 09:51:37 -07:00
deads2k 72c0709f18 reduce scope of DockerConfigEntryWithAuth 2015-05-19 12:41:03 -04:00
Victor Marmol deaa0e569d Set CPU and memory in Create() and Start().
This allows for backwards and forwards compatability since old Docker
versions expect it in Create() and newer ones do so in Start().

Fixes #8358
2015-05-19 09:26:15 -07:00
Brian Grant 2c81050e6f Merge pull request #8457 from davidopp/master
Fix stylistic isues with #5547. Closes #4910.
2015-05-19 07:43:21 -07:00
Justin Santa Barbara 2473a81412 Add mutex lock to cleanupStaleStickySessions
Proxier.serviceMap is supposed to be guarded by the mutex
2015-05-19 09:11:05 -04:00
deads2k 5458f05679 create LocalObjectReference 2015-05-19 08:39:46 -04:00
David Oppenheimer 44b1e1ca0c Fix stylistic isues with #5547. Closes #4910. 2015-05-18 23:32:06 -07:00
Tim Hockin b64868f23b Clean up old iptables (pre-ip-per-service) legacy 2015-05-18 20:27:40 -07:00
Jordan Liggitt a6401fa433 Update generic etcd tests for cluster-scoped objects 2015-05-18 23:17:51 -04:00
Clayton Coleman 2e8b7f9797 Serialization of 'IP' should be 'ip'
CamelCase rules are "initialsUpperCase"
2015-05-18 22:56:12 -04:00
Brian Grant 03535478a2 Merge pull request #8440 from thockin/api-type-names
Rename a few API types (non-breaking change)
2015-05-18 18:48:16 -07:00
Victor Marmol c5da035d51 Merge pull request #8421 from yujuhong/active_deadline
Kubelet: move active deadline check to per pod worker
2015-05-18 17:42:21 -07:00
Tim Hockin 2307350d1b Merge pull request #8443 from wojtek-t/conversion_improvements
Script for regenerate auto-generated conversions.
2015-05-18 17:24:08 -07:00
Tim Hockin 65833e42c4 rename CapabilityType Capability 2015-05-18 17:21:30 -07:00
Tim Hockin fd22f48f5b rename StorageType StorageMedium 2015-05-18 17:21:30 -07:00
Tim Hockin f66ca25d9f Rename AccessMode to PersistentVolumeAccessMode 2015-05-18 17:21:30 -07:00
Tim Hockin a548d542db Rename AffinityType to ServiceAffinity 2015-05-18 17:21:30 -07:00
Wojciech Tyczynski 9a93206774 Script for automatically generate conversions. 2015-05-19 02:17:58 +02:00
Victor Marmol 1e1092ddbc Merge pull request #8461 from pmorie/rkt
rename rkt makeruntimePod
2015-05-18 17:12:05 -07:00
Nikhil Jindal fadc76422a Merge pull request #8437 from caesarxuchao/kubectl_run-container-doc
update the docs for kubectl-run-container to v1beta3
2015-05-18 16:41:14 -07:00
Paul Morie a58c7a0de7 rename rkt makeruntimePod 2015-05-18 19:24:10 -04:00
Daniel Smith c72eedf50a Merge pull request #8138 from bprashanth/rc_race
Check expectations before filtering through active pods.
2015-05-18 15:36:21 -07:00
Daniel Smith 5e056f119d Merge pull request #6694 from bprashanth/bench
Add a simple master benchmark and a wrapper to run it.
2015-05-18 14:42:24 -07:00
Vish Kannan c5f7ee6f96 Merge pull request #8430 from vmarmol/logging
Don't run OOM watcher is cAdvisor is not available.
2015-05-18 14:41:24 -07:00
Victor Marmol 832842a22e Merge pull request #8436 from yujuhong/rm_poddirs
Kubelet: do not remove directories of terminated pods
2015-05-18 14:21:58 -07:00
Chao Xu 013130f150 update the docs for kubectl-run-container to v1beta3 2015-05-18 13:29:24 -07:00
Yu-Ju Hong 2bf0646c76 Kubelet: do not remove directories of terminated pods
We recently changed `SyncPods` to filter out terminated pods at the beginning
for two reasons:

 * performance: kubelet no longer keeps goroutines to checks containers for
   terminated pods.
 * correctness: kubelet relies on inspecting dead containers to generate
   pod status. Because dead containers may get garbage collected and
   kubelet does not have checkpoints yet, syncing terminated pod could
   lead to modifying the status of a terminated pod.

However, even though kubelet should not *sync* the terminated pods, it
should not attempt to remove the directories and volumes for such
pods as long as they have not been deleted. This change fixes aggresive
directory removal by passing all pods (including terminated pods) to the
cleanup functions.
2015-05-18 13:23:49 -07:00
deads2k 0c14e0cbdb add pull secret references to pods 2015-05-18 16:18:16 -04:00
Brendan Burns c4ab34f7f9 Merge pull request #8368 from bcbroussard/web-ui-updates
Update web ui listing pages
2015-05-18 13:16:54 -07:00
Wojciech Tyczynski d7834f5033 Merge pull request #8414 from pweil-/dedupe-sc
remove deprecated fields from v1 types
2015-05-18 12:57:38 -07:00
Victor Marmol 4a1100bb66 Don't run OOM watcher is cAdvisor is not available.
Fixes #8424.
2015-05-18 12:18:12 -07:00
Victor Marmol a7341cfb77 Merge pull request #8386 from smarterclayton/make_kubelet_consumable
Make it easier to reuse kubelet server code
2015-05-18 11:26:55 -07:00
Daniel Smith 6dbecc2a33 Merge pull request #8165 from feihujiang/checkjsonformat
Check json format firstly
2015-05-18 11:24:56 -07:00
Daniel Smith c27999da07 Merge pull request #7966 from deads2k/add-dockercfg-secrets
add dockercfg secret types
2015-05-18 11:24:02 -07:00
Victor Marmol 45874d5f76 Merge pull request #5547 from gmarek/client3
Add a resource specifying number of Pods that are allowed to run on Kubelet.
2015-05-18 11:11:43 -07:00
Paul Weil ad4e4c90ce remove deprecated fields from v1 types 2015-05-18 14:07:36 -04:00
Yu-Ju Hong 050b8ba60b Kubelet: move active deadline check to per pod worker
Per-pod workers have sufficient knowledge to determine whether a pod has
exceeded the active deadline, and they set the status at the end of each sync.
Move the active deadline check to generatePodStatus so that per pod workers
can update the pod status directly. This eliminates the possibility of a race
condition where both SyncPods and the pod worker are updating the status, which
could lead to temporary erratic pod status behavior (pod phase: failed ->
running -> failed).
2015-05-18 10:52:41 -07:00
Yu-Ju Hong 25668ccc11 Kubelet: remove the getPodstatus method
Pod statuses are periodically writtien to the status manager, and status
manager sets the start time of the pod. All non-status-modifying code should
perform cache lookup and should not attempt to generate pod status on its own.
2015-05-18 10:52:36 -07:00
Vish Kannan 969023f3ec Merge pull request #8389 from smarterclayton/chatty_endpoints_controller
Endpoints controller is logging too much
2015-05-18 09:40:57 -07:00
Satnam Singh 26b27b5e0f Merge pull request #8374 from jimmidyson/docker-log-symlink-separator
Docker log symlinks should use underscore separator
2015-05-18 08:59:07 -07:00
Victor Marmol 0e804b03a4 Merge pull request #8220 from thockin/label-validation
Add test case for qname validation, fix impl
2015-05-18 08:40:56 -07:00
Victor Marmol 4ba22e713a Merge pull request #8296 from jlowdermilk/gen-analytics
Add ga-beacon analytics to gendocs scripts
2015-05-18 08:40:02 -07:00
Victor Marmol bf912e0d82 Merge pull request #8338 from nikhiljindal/omitEmpty
Fixing the omitempty tag
2015-05-18 08:39:47 -07:00
Victor Marmol fa716a1b48 Merge pull request #8344 from jlowdermilk/clientcmd-api
Remove dependency on pkg/api from pkg/client/clientcmd/api
2015-05-18 08:39:18 -07:00
Victor Marmol 315d9a32a7 Merge pull request #8380 from justinsb/visibility_1_util_portrange
Add util.PortRange, so that a port range can be a flag.  Format: lo-hi
2015-05-18 08:37:57 -07:00
Victor Marmol 90d6080fe8 Merge pull request #8392 from liggitt/ttlfunc
Pass correct update flag to TTLFunc
2015-05-18 08:36:19 -07:00
Victor Marmol 618c5c567f Merge pull request #8400 from a-robinson/bug
Properly handle nil cached services in the service controller's node reconciler
2015-05-18 08:35:50 -07:00
Clayton Coleman 3b10d82864 Merge pull request #8391 from liggitt/etcd_token_lookup
Make serviceaccount/token lookup more flexible
2015-05-18 11:08:30 -04:00
Clayton Coleman 485a420326 Merge pull request #8257 from liggitt/multi_user_controller
Allow ServiceAccountsController to manage multiple named service accounts
2015-05-18 10:39:50 -04:00
Clayton Coleman a2e4f95e32 Merge pull request #8269 from smarterclayton/add_proxier_error
Proxier should return typed errors
2015-05-18 10:00:44 -04:00
Clayton Coleman 4a47e89e8a Merge pull request #8407 from mfojtik/double-timestamps
Disable 'Timestamps' in Docker logs to prevent double-timestamps
2015-05-18 09:59:50 -04:00
deads2k be0f2d2930 add dockercfg secret types 2015-05-18 08:25:27 -04:00
Derek Carr eb12565960 Merge pull request #8203 from pweil-/expose-context-to-admission
Expose user info to admission controllers
2015-05-18 08:25:10 -04:00
deads2k d404a17f0a allow leading dots in secret keys 2015-05-18 08:17:58 -04:00
Michal Fojtik 7d11e226b7 Disable 'Timestamps' in Docker logs to prevent double-timestamps 2015-05-18 12:27:19 +02:00
Alex Robinson 3cf80e76c8 Properly handle nil cached services in the service controller's node reconciler.
Add a test that catches the former bug.
2015-05-17 22:36:48 -07:00
feihujiang d36173e855 Check json format firstly
Check json format firstly

check json format firstly

check json format firstly
2015-05-18 10:44:29 +08:00
BC Broussard f62aa79cd5 Only show more button on list pages if scope.moreClick defined
Remove placeholder thumbnails from pod listing page of web ui
Show pods when there are no labels
2015-05-17 15:59:53 -07:00
Jordan Liggitt a2d6dd0467 Pass correct update flag to TTLFunc 2015-05-17 00:42:30 -04:00
Jordan Liggitt d90e7409e4 Prevent auth recursion for service account tokens 2015-05-16 23:39:07 -04:00
Clayton Coleman 78ad32a538 Endpoints controller is logging too much
Pods not having an IP yet or pods that don't have a port aren't v(0)
log items, since the former is usually temporary and the latter has
nothing actionable for an admit.
2015-05-16 19:37:13 -04:00
Clayton Coleman c54097d96c DefaultMux should only register the first time 2015-05-16 16:11:24 -04:00
Clayton Coleman 1f628f2340 Bump fake docker version to emulate Docker 1.6 2015-05-16 16:10:49 -04:00
Justin Santa Barbara 2457c284ed Add util.PortRange, so that a port range can be a flag. Format: lo-hi 2015-05-16 15:52:57 -04:00
Jimmi Dyson 2d4067f1fd Fixes #8374: Underscore separator in docker log symlink 2015-05-16 19:19:27 +01:00
Jordan Liggitt 7e9281fc39 Allow ServiceAccountsController to manage multiple named service accounts 2015-05-15 23:42:00 -04:00
nikhiljindal 0ce0150bde Fixing the omitempty tag 2015-05-15 19:29:14 -07:00
Jeff Lowdermilk db09ceae25 Remove dependency on pkg/api from pkg/client/clientcmd/api 2015-05-15 19:03:34 -07:00
Jeff Lowdermilk 553f9f822b Add ga-beacon analytics to gendocs scripts
hack/run-gendocs.sh puts ga-beacon analytics link into all md files,
hack/verify-gendocs.sh verifies presence of link.
2015-05-15 18:56:38 -07:00
Daniel Smith cf337051e0 Merge pull request #7819 from nikhiljindal/etcdTranslation
Adding a script to update etcd objects as per the latest API Version
2015-05-15 18:28:36 -07:00
Brian Grant c4b20672f2 Merge pull request #8302 from bcbroussard/web-ui-links
Fix misdirected links in Web UI from pod conversion
2015-05-15 17:37:15 -07:00
Prashanth Balasubramanian 4200033c0a Add a simple master benchmark and a wrapper to run it. 2015-05-15 17:30:17 -07:00
Prashanth B 6144b49139 Merge pull request #8336 from brendandburns/kubectl
Add a test for status message generation.
2015-05-15 17:06:21 -07:00
nikhiljindal fa9f864782 Adding a script to update etcd objects 2015-05-15 16:20:35 -07:00
Tim Hockin 71d375e22f Add test case for qname validation, fix impl 2015-05-15 14:45:36 -07:00
Yu-Ju Hong e1a153e841 Merge pull request #8340 from dchen1107/clean
Wait for docker to start cadvisor.
2015-05-15 14:36:10 -07:00
Yu-Ju Hong b8dd790ca1 Merge pull request #8284 from yifan-gu/rkt_fix
kubelet/rkt: Fix rkt status parsing, and resource requirement convert…
2015-05-15 14:30:48 -07:00
Yifan Gu aa7393b55e kubelet/rkt: Fix rkt status parsing, and resource requirement convertion. 2015-05-15 13:42:36 -07:00
derekwaynecarr 8216332611 Kubelet kills a pod that exceeds ActiveDeadlineSeconds 2015-05-15 16:33:37 -04:00
Dawn Chen 85ca8506bb Wait for docker to start cadvisor. 2015-05-15 13:24:24 -07:00
Jeff Lowdermilk 46bd6f298a Merge pull request #8237 from smarterclayton/continue_on_error
Make ContinueOnError actually work
2015-05-15 12:57:29 -07:00
Brendan Burns a197b24fb7 Add a test for status message generation. Fix a bug in reason message handling. 2015-05-15 20:45:16 +01:00
Jeff Lowdermilk a5bc6bdaf3 Merge pull request #8166 from kargakis/labels-for-object
expose: Re-use labels in case none was specified
2015-05-15 11:35:52 -07:00
Prashanth B 0f98a1dd78 Merge pull request #8312 from wojtek-t/remove_gob
Remove gob reference as they are no longer needed after #8188
2015-05-15 11:26:20 -07:00
Clayton Coleman a47716e66d Make ContinueOnError actually work
In resource.Builder ContinueOnError() should actually do so.

Reorganized util.CheckErr() to make it display bulk errors more
effectively and be more reusable. Clarified that CheckErr is not
specific to kubectl in Godoc. Changed the "Error: " prefix to
"error: " to more closely match Unix conventions.
2015-05-15 14:26:14 -04:00
Clayton Coleman de36967c7e Proxier should return typed errors 2015-05-15 13:50:05 -04:00
Victor Marmol 43e4654333 Merge pull request #8292 from yujuhong/rm_podinfo
Remove /podInfo endpoint on kubelet
2015-05-15 08:42:02 -07:00
Victor Marmol e7750fa0c7 Merge pull request #8274 from yujuhong/filter_terminated
kubelet: filter out terminated pods before rejecting pods
2015-05-15 08:02:44 -07:00