Commit Graph

4776 Commits (fbe3ec751364656ca9b024cbfec4be6a7ef5af27)

Author SHA1 Message Date
Clayton Coleman aa810e4e88 Merge pull request #7467 from brendandburns/qps
Augment describe to search for matching things if it doesn't match the original resource.
2015-04-30 20:17:34 -04:00
Victor Marmol 3235799595 Merge pull request #7601 from yujuhong/kill_container
Add KillContainerInPod in DockerManager
2015-04-30 17:05:00 -07:00
Victor Marmol df8490f52f Merge pull request #7555 from yifan-gu/rkt_pod_info
kubelet/rkt: Add podInfo.
2015-04-30 17:04:51 -07:00
Yu-Ju Hong b37f23f1eb Add KillContainerInPod in DockerManager
This changes adds one of the functions that DockerManager needs to implement
the Runtime interface.
2015-04-30 16:23:39 -07:00
Victor Marmol 441a4e6f30 Merge pull request #7578 from yujuhong/docker_manager
Add image-related methods to DockerManager
2015-04-30 16:16:39 -07:00
Victor Marmol a94aeb27fa Merge pull request #7586 from yujuhong/container_info
Remove more docker references in kubelet
2015-04-30 16:16:23 -07:00
Yifan Gu 7e8afc7c96 kubelet/rkt: Add routines for converting kubelet pod to rkt pod. 2015-04-30 15:24:47 -07:00
Clayton Coleman f41e03ce9f Merge pull request #7582 from smarterclayton/example_typo
Correct the capitalization of KubeProxyVersion
2015-04-30 18:20:10 -04:00
Victor Marmol 0e89d65563 Merge pull request #7545 from yifan-gu/getlog
Getlog
2015-04-30 15:15:44 -07:00
Victor Marmol 57cc1218ca Merge pull request #7549 from yifan-gu/rkt_gc
Rkt gc
2015-04-30 15:15:07 -07:00
Alex Robinson f3352d96e6 Merge pull request #7595 from a-robinson/typo
Fix typo in kubelet prober code
2015-04-30 14:42:18 -07:00
Yifan Gu 01841a8c19 kubelet/rkt: Add podInfo.
podInfo reprensents the state of rkt pods.
It is used to for reporting the pod and container status to kubelet.
2015-04-30 14:39:10 -07:00
Vish Kannan 1dead9c670 Merge pull request #6400 from ddysher/nfs-volume-mounter
Implement Mount interface using mount(8) and umount(8)
2015-04-30 14:00:56 -07:00
Yu-Ju Hong 644ec0dbfb Remove ErrNoKubeletContainers
We no longer use it.
2015-04-30 13:35:21 -07:00
Yu-Ju Hong 83c599e4d4 Add image-related methods to DockerManager
This change is part of the efforts to make DockerManager implement the Runtime
interface.

The change also modifies the interface slightly to work with existing
code, and aggregates the type converting functions to convert.go.
2015-04-30 13:27:52 -07:00
Alex Robinson faa3292bb3 Fix typo in kubelet prober code. 2015-04-30 13:17:10 -07:00
Yu-Ju Hong 2f7b951140 Remove more docker references in kubelet
This change also renames TrimRuntimePrefixFromImage to TrimRuntimePrefix to
better reflect that the usage is not limited to images (e.g. ID).
2015-04-30 13:16:11 -07:00
Victor Marmol 2c381a6f6f Merge pull request #7550 from yifan-gu/rkt_pull
Rkt pull
2015-04-30 13:09:14 -07:00
Clayton Coleman 32dfd3e07b Correct the capitalization of KubeProxyVersion 2015-04-30 15:43:14 -04:00
Brian Grant 0a9a10e997 Merge pull request #7535 from smarterclayton/bad_capitalization
Capitalization of KubeProxyVersion wrong in JSON
2015-04-30 12:36:02 -07:00
Brian Grant 2d37650c65 Merge pull request #7530 from mbforbes/nodeExternal
Make nodes report their external IP rather than the master's.
2015-04-30 12:29:45 -07:00
CJ Cullen 015c0656a6 Merge pull request #7568 from yujuhong/rm_getcontainers
Remove GetContainers from Runtime interface
2015-04-30 12:01:58 -07:00
Prashanth Balasubramanian c8ea0c27e9 Fix rollingupdate --image 2015-04-30 11:28:18 -07:00
Yu-Ju Hong 11be6811b3 Merge pull request #7563 from vmarmol/runtime-pre
Move lifecycle handlers to their own subpackage
2015-04-30 11:22:58 -07:00
Clayton Coleman d03b5299f9 Merge pull request #7432 from piosz/termination_notice
Added TerminationGracePeriod field to PodSpec and grace-period flag to kubectl stop
2015-04-30 13:55:51 -04:00
Tobi Knaup b96c4046a8 Add --cgroup_root flag to Kubelet to set the parent cgroup for all pods.
Implements #6991.
2015-04-30 10:32:27 -07:00
Yifan Gu ca4643ef31 kubelet/rkt: Add GetContainerLogs() for rkt. 2015-04-30 10:31:31 -07:00
Yifan Gu 488f49a216 kubelet/rkt: Add GarbageCollection to rkt runtime. 2015-04-30 10:29:38 -07:00
CJ Cullen b11f07be7a Merge pull request #7541 from csrwng/fix_bool_conversion
Handle conversion of boolean query parameters with a value of "false"
2015-04-30 10:14:54 -07:00
Yifan Gu 01693c8233 kubelet/rkt: Add PullImage()/IsImagePresent() to rkt runtime. 2015-04-30 10:01:24 -07:00
Yu-Ju Hong 176fc9b9c6 Remove GetContainers from Runtime interface
This function is no longer considered needed.
2015-04-30 09:33:23 -07:00
Yu-Ju Hong de32785e2e Merge pull request #7532 from vmarmol/runtime-images
Add image-related methods to Runtime interface.
2015-04-30 09:30:59 -07:00
Victor Marmol 5bd2e6d37f Merge pull request #7552 from rjnagal/kubectl
Fix typo in 'kubectl expose' examples.
2015-04-30 09:19:37 -07:00
Piotr Szczesniak 11a2dc496f Added TerminationGracePeriod field to PodSpec and grace-period flag to kubectl stop
Those are changes which touch users required by Termination Notice

Addresses #6804
2015-04-30 18:00:33 +02:00
Victor Marmol 238b3c6f4e Move lifecycle handlers to its own sub package.
This will allow injecting it into the runtimes.
2015-04-30 08:47:23 -07:00
Victor Marmol 4db5127073 Make HttpGetter a shared Kubelet type. 2015-04-30 08:47:23 -07:00
Clayton Coleman dd976a27fb Merge pull request #7560 from wojtek-t/conversion_test
Test whether auto-generated conversions weren't manually edited
2015-04-30 11:39:56 -04:00
Victor Marmol 037295ac4c Merge pull request #7533 from yujuhong/get_containers
Clean up dockertools/manager.go and add more unit tests
2015-04-30 08:38:27 -07:00
Victor Marmol 946dac4f7c Merge pull request #7465 from yifan-gu/split_rkt
kubelet/rkt: Add basic rkt runtime routines.
2015-04-30 08:37:24 -07:00
Victor Marmol 0a6584cafe Merge pull request #7487 from njuicsgz/master
readinessProbe calls livenessProbe.Exec.Command which cause "invalid memory address or nil pointer dereference".
2015-04-30 08:36:54 -07:00
Yu-Ju Hong baaea11cd5 Merge pull request #7520 from vmarmol/runtime-pull
Add RuntimeHooks to abstract Kubelet logic
2015-04-30 08:33:19 -07:00
Clayton Coleman e637cd66e8 Merge pull request #7559 from fgrzadkowski/perf
Add a simple cache for objects stored in etcd.
2015-04-30 11:27:01 -04:00
Wojciech Tyczynski 6d00e336a6 Merge pull request #7546 from smarterclayton/get_urls_from_request
Expose URL() on Request to allow building URLs
2015-04-30 16:05:16 +02:00
Cesar Wong f72ee1f72b Handle conversion of boolean query parameters with a value of "false" 2015-04-30 09:26:06 -04:00
Wojciech Tyczynski 3b84bae544 Auto-generated conversion not manually edited 2015-04-30 14:05:42 +02:00
Wojciech Tyczynski c455600784 Merge pull request #7557 from piosz/kubectl
Added displaying external IPs to kubectl cluster-info
2015-04-30 13:48:55 +02:00
Filip Grzadkowski 15e9bfd9ae Add a simple cache for objects stored in etcd. 2015-04-30 12:08:56 +02:00
Piotr Szczesniak cfc73878b9 Added displaying external IPs to kubectl cluster-info
Fixes #7521
2015-04-30 10:47:58 +02:00
Gao Zheng b445afdf11 Merge remote-tracking branch 'upstream/master' 2015-04-30 15:42:14 +08:00
Filip Grzadkowski 231284187e Merge pull request #7431 from wojtek-t/conversion_chains
Prepare for chaining autogenerated conversion methods
2015-04-30 09:08:40 +02:00
Rohit Jnagal 0a8b136ee6 Fix typo in 'kubectl expose' examples. 2015-04-30 06:02:16 +00:00
Clayton Coleman 53ca1fcc7a Expose URL() on Request to allow building URLs
The client/Request type is the appropriate place to build
URLs, this allows callers to generate URLs for providing to
others (such as SelfLinks or relative links to objects).
2015-04-29 23:27:13 -04:00
Jeff Lowdermilk 6f5e08114a Merge pull request #7407 from brendandburns/recovery2
Support recovery for anonymous roll outs
2015-04-29 20:08:23 -07:00
Gao Zheng 95f2d1378f change probe.runner to probe.Runner as based 2015-04-30 10:36:38 +08:00
Gao Zheng 74975eff03 Fixes issue #7352
readinessProbe calls livenessProbe.Exec.Command which cause
"invalid memory address or nil pointer dereference".
2015-04-30 10:19:49 +08:00
Yu-Ju Hong 919d78281f Clean up dockertools/manager.go and add more unit tests.
This change refactors the GetPods function and add some basic unit tests.
We should start migrating docker specific tests from kubelet_test to
manager_test.go.
2015-04-29 18:32:52 -07:00
Victor Marmol 090d0c95fa Remove ImagePull metric in Kubelet.
There is an equivalent metric from our Docker metrics and this one is
harder to maintain with the RuntimeHooks.
2015-04-29 17:12:03 -07:00
Yifan Gu 305345efe1 kubelet/rkt: Add basic rkt runtime routines. 2015-04-29 17:09:32 -07:00
Victor Marmol 2a01a2c7e9 Use RuntimeHooks in Kubelet.
Used in functionality that will be moved to the runtimes.
2015-04-29 17:06:49 -07:00
Victor Marmol 61d51243c5 Add RuntimeHooks interface and Kubelet implementation.
This interface will be used to inject functionality and logic into the
runtimes that should be shared accross runtimes.
2015-04-29 17:06:49 -07:00
Brendan Burns 83cbd0cf4c Add recovery for anonymous rollouts. 2015-04-29 16:53:30 -07:00
Clayton Coleman 1042ab32a5 Capitalization of KubeProxyVersion wrong in JSON 2015-04-29 19:52:51 -04:00
Brendan Burns 3a8a98c319 Augment describe to search for matching things if it doesn't match the original resource 2015-04-29 16:47:10 -07:00
Yu-Ju Hong d81ecc58f8 Adapt pod killing and cleanup for generic container runtime
This change removes docker-specifc code in killUnwantedPods. It
also instructs the cleanup code to move away from interacting with
containers directly. They should always deal with the pod-level
abstraction if at all possible.
2015-04-29 16:08:09 -07:00
Yu-Ju Hong ba1140a54f Merge pull request #7480 from vmarmol/runtime-syncpod
Move ComputePodChanges to the Docker runtime
2015-04-29 16:05:20 -07:00
Victor Marmol 4d09b79529 Add image-related methods to Runtime interface.
This includes RemoveImage() and ListImages().
2015-04-29 16:00:36 -07:00
Max Forbes e1c2e6b4b1 Make nodes report their external IP rather than the master's. 2015-04-29 15:44:25 -07:00
Jeff Lowdermilk 9fd8cbae64 Merge pull request #7510 from eparis/cobra-rebase
Cobra rebase
2015-04-29 15:08:41 -07:00
Victor Marmol 293828c93c Merge pull request #7515 from brendandburns/kubelet
Fix YAML parsing for v1beta3 objects in the kubelet for file/http
2015-04-29 14:31:49 -07:00
Victor Marmol 209b4fcbef Merge pull request #6718 from vishh/sys_oom1
Adding system oom events from kubelet
2015-04-29 14:29:38 -07:00
Victor Marmol fe4600ba17 Move ComputePodChanges to DockerManager.
This logic is specific to the Docker runtime. This move is the first
step towards making syncPod() runtime-agnostic.
2015-04-29 14:00:37 -07:00
Yu-Ju Hong 134e585195 Merge pull request #7479 from vmarmol/runtime-prefactor
Move Prober to its own subpackage
2015-04-29 13:53:35 -07:00
CJ Cullen 182f47ee3d Revert "Add a simple cache for objects stored in etcd" 2015-04-29 12:06:52 -07:00
Brendan Burns 48d269e6ab Fix YAML parsing for v1beta3 objects in the kubelet for file/http 2015-04-29 11:38:36 -07:00
Vishnu Kannan 020950fd0f Adding events for system ooms.
Kubelet will continuously watch for system OOMs and generate events whenever it
encounters a system OOM.
2015-04-29 11:19:11 -07:00
Victor Marmol f38c607285 Move Prober to its own subpackage.
This will allow it to be reused by the runtimes.
2015-04-29 10:11:28 -07:00
Yu-Ju Hong 33b8f487f6 Merge pull request #7449 from vmarmol/runtime-network-plugins
Move network plugin TearDown to DockerManager
2015-04-29 10:09:58 -07:00
Victor Marmol 02231ea75d Merge pull request #7503 from jsafrane/devel/fix-volume-rm
Fixed kubelet deleting data from volumes on stop (#7317).
2015-04-29 10:01:16 -07:00
Brian Grant 4071868581 Merge pull request #7482 from nikhiljindal/verifyDescription
Fixing hooks/description to catch API fields without description tags
2015-04-29 09:56:08 -07:00
Clayton Coleman 12ba4e2452 Do not automatically decode runtime.RawExtension
Make clients opt in to decoding objects that are stored
in the generic api.List object by invoking runtime.DecodeList()
with a set of schemes. Makes it easier to handle unknown
schema objects because decoding is in the control of the code.

Add runtime.Unstructured, which is a simple in memory
representation of an external object.
2015-04-29 12:53:07 -04:00
Daniel Smith 4d2f7a38c2 Merge pull request #6866 from bprashanth/rc_watch_pods
RcManager watches pods and RCs instead of polling every 10s
2015-04-29 09:10:55 -07:00
Daniel Smith 2802b18b0a Merge pull request #7288 from fgrzadkowski/perf
Add a simple cache for objects stored in etcd
2015-04-29 09:00:33 -07:00
Eric Paris a17a26643b Update kube to support new pflag/cobra 2015-04-29 11:26:30 -04:00
Victor Marmol dfadc10fcb Merge pull request #7488 from yifan-gu/get_container_logs
kubelet/container: Add GetContainerLogs to runtime interface.
2015-04-29 08:24:20 -07:00
Victor Marmol 38831237b2 Merge pull request #7477 from yifan-gu/refactor_runonce
kubelet: Refactor isPodRunning() in runonce.go
2015-04-29 08:24:09 -07:00
Victor Marmol fc918cc896 Merge pull request #7466 from yifan-gu/refactor_kube
kubelet/container: Update the runtime interface.
2015-04-29 08:23:50 -07:00
Victor Marmol 587d5a6b85 Merge pull request #7408 from vishh/kubelet_namespace
Set the default namespace for events to be "default"
2015-04-29 08:23:27 -07:00
Deyuan Deng 6897095e56 Change mount.Interface.Mount to exec('mount'), instead of syscall 2015-04-29 10:46:32 -04:00
Wojciech Tyczynski fc6fb0953a Generate conversions 2015-04-29 16:32:56 +02:00
Wojciech Tyczynski 8eca76298f Improvements to conversions generator. 2015-04-29 16:32:31 +02:00
Paul Morie 8fa21ebd62 Merge pull request #7419 from liggitt/secrets_etcd
Convert Secret registry to use update/create strategy, allow filtering by Type
2015-04-29 09:59:22 -04:00
Filip Grzadkowski 016e20167b Add a simple cache for objects stored in etcd. 2015-04-29 13:14:31 +02:00
Piotr Szczesniak 9272fe2aea Updated kubectl cluster-info to show v1beta3 addresses
Fixes #7016
2015-04-29 10:54:36 +02:00
Jan Safranek 9b9e98a22f Fixed kubelet deleting data from volumes on stop (#7317).
We must not clear the pod directory in killUnwantedPods(), volumes are still
mounted there at this time. There already is cleanupOrphanedPodDirs(),
called later in the SyncPods() sequence, which should remove these pod
directories.
2015-04-29 10:41:19 +02:00
Brendan Burns fc76242f4a Kubernetes version v0.16.0-dev 2015-04-28 21:20:33 -07:00
Brendan Burns 2cea8f22b3 Kubernetes version v0.16.0 2015-04-28 21:20:12 -07:00
Yifan Gu fb1c55aa11 kubelet/container: Add GetContainerLogs to runtime interface. 2015-04-28 20:26:16 -07:00
nikhiljindal 7c99865c94 Fixing hooks/description to catch API fields without description tags 2015-04-28 18:32:15 -07:00
Brian Grant a4316aa638 Merge pull request #7454 from nikhiljindal/v1
Cloning v1beta3 as v1 and exposing it in the apiserver
2015-04-28 18:06:57 -07:00
Yifan Gu ba1389de3c kubelet/container: Update the runtime interface.
Make some of them (RunInContainer, ExecInContainer, etc) to have
same function signatures as current docker and rkt implementation.
2015-04-28 17:55:41 -07:00