Commit Graph

5258 Commits (0076c181c7ffa757401db6df256492b5ce6ec415)

Author SHA1 Message Date
nikhiljindal 8b278202fe Updating the code to set the latest version based on KUBE_LATEST_API_VERSION env flag 2015-05-13 10:53:00 -07:00
Yifan Gu 2617cb26b8 kubelet/container: Add tests for kubelet.makePortMappings(). 2015-05-13 10:01:01 -07:00
Yifan Gu d164ac0ba0 kubelet/container: Refactor RunContainerOptions.
Make Envs, Mounts, PortMappings more generic.
Also add default name for PortMapping if it's not specified.
2015-05-13 10:01:00 -07:00
Rohit Jnagal d85d7de444 Merge pull request #8056 from wojtek-t/generate_conversions_for_v1
Generate conversion methods for v1 api.
2015-05-13 09:25:54 -07:00
Brendan Burns ea3852ec69 Fix a bug where IgnoreErrors was inverted.
Also make an error message a little more verbose.
2015-05-13 16:26:01 +01:00
Victor Marmol 67d576cf48 Merge pull request #8161 from rjnagal/rc
Use non-root available space to trigger out-of-disk events.
2015-05-13 08:07:37 -07:00
Victor Marmol 2c00d9f07c Merge pull request #7421 from brendandburns/prestop
Implement PreStop hooks.
2015-05-13 08:06:43 -07:00
Wojciech Tyczynski c2f2faeb07 Generate conversion methods for v1 api. 2015-05-13 14:20:59 +02:00
Robert Bailey c47b9178b4 Replace the auth config file with a kubeconfig file when
starting the kubelet on GCE.
2015-05-13 01:03:28 -07:00
hurf 6203ce9f85 Move pkg/scheduler to plugin/pkg/scheduler
As the TODO in plugin/pkg/scheduler/scheduler.go described:

move everything from pkg/scheduler into this package. Remove
references from registry.
2015-05-13 14:03:25 +08:00
CJ Cullen 31ea7d1295 Put cbr0-modifying stuff behind a flag. Address some other comments. 2015-05-12 23:00:28 -07:00
CJ Cullen 5e3d2b9138 Kubelet configure cbr0 instead of configure-vm.sh 2015-05-12 23:00:12 -07:00
Rohit Jnagal 7a2add5e0a Use non-root available space to trigger out-of-disk events. 2015-05-13 05:46:03 +00:00
Brendan Burns 3f49c556e6 Second try at implementing prestop. 2015-05-12 17:17:03 -07:00
Nikhil Jindal c2fecff3d5 Merge pull request #8067 from piosz/kubectl
Added label kubernetes.io/name to cluster services
2015-05-12 17:09:22 -07:00
Victor Marmol 40ec627cd4 Merge pull request #8108 from rjnagal/kubelet
Handle out of disk situation on kubelet.
2015-05-12 15:49:31 -07:00
Prashanth Balasubramanian 54b6501349 Check expectations before filtering through active pods. 2015-05-12 14:42:08 -07:00
Victor Marmol 3481db8aee Merge pull request #8136 from yifan-gu/runtime_opt
kubelet/container: Remove ipcMode and netMode from  RunContainerOptions.
2015-05-12 14:41:49 -07:00
Yifan Gu a2dac158c2 kubelet/container: Remove ipcMode and netMode from RunContainerOptions.
Since createPodInfraContainer() is moved into dockertools. There is no
need to pass the ipcMode or netMode via RunContainerOptions.
2015-05-12 14:18:00 -07:00
Paul Morie 6ac55002d8 Improve kubelet test for env vars 2015-05-12 17:14:32 -04:00
Rohit Jnagal fab980598a Merge pull request #8122 from vmarmol/docker-container
Run Docker Daemon in a Resource-only Container
2015-05-12 13:16:05 -07:00
Vish Kannan a74522a738 Merge pull request #8011 from brendandburns/exec
Switch exec to look at exit code not output status.
2015-05-12 12:43:11 -07:00
Rohit Jnagal 2cf0dfb79d Handle out of disk situation on kubelets.
Kubelet will stop accepting new pods if it detects low disk space on root fs or fs holding docker images.
Running pods are not affected. low-diskspace-threshold-mb is used to configure the low diskspace threshold.
2015-05-12 18:23:09 +00:00
Quinton Hoole 2f2816368f Merge pull request #8062 from smarterclayton/fix_service_flake
ServiceIP allocation test is flaky
2015-05-12 11:18:47 -07:00
Brian Grant 572b819944 Merge pull request #8052 from dkorn/PodConditions
Inconsistency in api terminology of pod conditions
2015-05-12 11:03:59 -07:00
deads2k bd66e9011d expose FlagInfo binding methods 2015-05-12 13:33:11 -04:00
Nikhil Jindal d75bd8bf2a Merge pull request #7101 from liggitt/service_account
ServiceAccounts
2015-05-12 10:23:41 -07:00
Victor Marmol e1447618f4 Integrating ContainerManager into Kubelet 2015-05-12 10:13:23 -07:00
James DeFelice 7387a2d0cd address review comments of @davidopp 2015-05-12 17:05:34 +00:00
Victor Marmol a9db69ecfa Implementation of ContainerManager
Implementation maintains a thread which ensures that the Docker daemon
is in a container.
2015-05-12 09:59:47 -07:00
Victor Marmol 0570480242 Kubelet: Add ContainerManager interface.
This component will manage containers on the machine not managed by the
runtime.
2015-05-12 09:58:21 -07:00
Tim Hockin 81aab06e3d Merge pull request #7486 from feihujiang/master
Duplicate service port name can't be validated
2015-05-12 09:12:01 -07:00
James DeFelice eca9fd58c7 mesos cloud provider implementation 2015-05-12 16:02:26 +00:00
Victor Marmol 1880f73658 Merge pull request #8106 from rjnagal/podinfo
Make SyncPodSync as the default SyncPodType.
2015-05-12 08:20:19 -07:00
Derek Carr c1158fa696 Merge pull request #7969 from smarterclayton/rest_fixes
Fixes to apiserver for subresources and naming
2015-05-12 10:57:34 -04:00
Derek Carr 3e4713787a Merge pull request #7436 from akram/fix_port_forward_listens_ipv_and_ipv4
Port forward now listens on IPv4 and IPv6 localhost address
2015-05-12 10:27:56 -04:00
Eric Paris d80b43838c Merge pull request #8059 from pmorie/volume-cleanup
NFS plugin should use correct mounter
2015-05-12 09:24:00 -05:00
Derek Carr a11819e4a6 Merge pull request #8057 from kargakis/rework-resize
resize: Use Resize method
2015-05-12 10:17:31 -04:00
dkorn 25ada0e118 Inconsistency in api terminology of pod conditions
While nodes returns the "conditions" key in api requests, pods returns
"Condition". Also, from pods states docs it seems that the right
terminology should be "conditions".

Fixes #8038
2015-05-12 10:52:52 +03:00
Piotr Szczesniak 962f10ee58 Merge pull request #7771 from piosz/load_generator
Implemented first version of load test
2015-05-12 09:24:19 +02:00
feihujiang 4bb594b34d Duplicate service port name can't be validated
Duplicate service port name can't be validated

Duplicate service port name can't be validated

Duplicate service port name can't be validated
2015-05-12 15:18:27 +08:00
Rohit Jnagal 9eb01a6da1 Make SyncPodSync as the default SyncPodType.
We would like the default to be sync instead of create to easily differentiate
create operations in empty metrics map.
2015-05-12 06:25:48 +00:00
Brendan Burns be15e84e83 Kubernetes version v0.17.0-dev 2015-05-11 21:43:34 -07:00
Brendan Burns 82f8bdac06 Kubernetes version v0.17.0 2015-05-11 21:43:34 -07:00
Nikhil Jindal 442412e3ad Merge pull request #8089 from thockin/dns
Introduce an 'svc' segment for DNS search
2015-05-11 17:39:12 -07:00
Nikhil Jindal 3d31883829 Merge pull request #8083 from brendandburns/kubectl
Add a flag to disable legacy APIs
2015-05-11 17:35:28 -07:00
Tim Hockin 41033af256 Introduce an 'svc' segment for DNS search 2015-05-11 17:20:44 -07:00
Victor Marmol 43029345f9 Merge pull request #7973 from dchen1107/podstatus
Add kubectl log --previous support to view last terminated container log
2015-05-11 17:08:45 -07:00
Brendan Burns fbd0143fa8 Merge pull request #7971 from deads2k/make-docker-keyring-handle-multiple-hits
make the dockerkeyring handle mutiple matching credentials
2015-05-11 17:01:37 -07:00
Daniel Smith 5a6b079515 Merge pull request #8085 from smarterclayton/read_only_port_wrong
Public read only port is incorrect in master
2015-05-11 16:35:12 -07:00
Clayton Coleman 0617951ead Public read only port is incorrect in master 2015-05-11 19:20:38 -04:00
Brendan Burns d8f48290e9 Add a flag to disable legacy APIs 2015-05-11 16:09:25 -07:00
Victor Marmol 1465475401 Merge pull request #8079 from yifan-gu/rm_command_runner
kubelet/container: Move prober.ContainerCommandRunner to container.
2015-05-11 16:05:25 -07:00
Jeff Lowdermilk ac87ed6516 Merge pull request #8064 from deads2k/death-to-auth-path
eliminate auth-path
2015-05-11 15:41:41 -07:00
Yifan Gu 7831b7da72 kubelet/container: Move prober.ContainerCommandRunner to container.
Also include the ContainerCommandRunner in Runtime interface, but
still keep the ContainerCommandRunner interface for testability.
2015-05-11 15:32:51 -07:00
Yu-Ju Hong 3f791db886 Kubelet: remove unused getHostFieldLabel function 2015-05-11 14:39:22 -07:00
Jordan Liggitt 92bd58ede6 ServiceAccount e2e/integration tests 2015-05-11 17:18:06 -04:00
Jordan Liggitt db1f0dc906 JWT token generation/verification 2015-05-11 17:18:06 -04:00
Jordan Liggitt 6e570732f5 ServiceAccounts controller 2015-05-11 17:18:05 -04:00
Jordan Liggitt 0955808668 ServiceAccountTokens controller 2015-05-11 17:18:05 -04:00
Jordan Liggitt 53d55f4192 Add ServiceAccount API type, client 2015-05-11 17:18:05 -04:00
Jordan Liggitt 6e1e7dbb24 Add ServiceAccountToken SecretType 2015-05-11 17:18:05 -04:00
Yu-Ju Hong 8b3130b112 Merge pull request #7980 from yifan-gu/fix_kubelet_tests
kubelet: Fix racy kubelet tests.
2015-05-11 14:09:44 -07:00
Dawn Chen 86479cc56c Add support to pull log for last terminated container 2015-05-11 12:54:04 -07:00
Clayton Coleman ecbca9eb17 Allow v1beta3 to POST events to all namespaces
A namespaced resource that supports ALL may allow creation
on the root (all namespaces) collection, thus adding POST
here.

We need to better formalize the definition of calls on namespaced
resources at the root scope, so Storage objects that do not support
that call pattern can do so at definition time and reject those
calls.
2015-05-11 15:51:05 -04:00
Clayton Coleman 84d1f19016 Subresources should be in their parent rest scope
A subresource like "Binding" does not necessarily have
to have a namespace.  The RESTScope of a subresource
should always be its parent resource.
2015-05-11 15:51:05 -04:00
Clayton Coleman b2a2ce0bb3 Legacy scope naming should NEVER set namespace for root
... resources.
2015-05-11 15:51:04 -04:00
Clayton Coleman 964bc8afda Verify namespace is not set on root objects 2015-05-11 15:51:04 -04:00
Yifan Gu 85b453091b kubelet: Add tests for fakePodWorkders. 2015-05-11 12:50:33 -07:00
Yifan Gu 52af792852 kubelet: Fix racy kubelet tests.
Add fakePodWorkders to run syncPod() in serial for testing.
2015-05-11 12:50:33 -07:00
Victor Marmol 65cf37ab6d Merge pull request #8069 from yujuhong/runcontainer
Kubelet: minor cleanups
2015-05-11 12:34:33 -07:00
kargakis 69a96f3ea1 resize: Use Resize method 2015-05-11 21:12:49 +02:00
Nikhil Jindal 0da12c1ba9 Merge pull request #7869 from bprashanth/rc_rl
Rate limit replica creation
2015-05-11 11:24:02 -07:00
Yu-Ju Hong a9c9505206 Use VirtualSize of the docker image as the image size 2015-05-11 11:03:47 -07:00
Yu-Ju Hong 3599d81ef1 Remove some docker references 2015-05-11 11:03:47 -07:00
Yu-Ju Hong 3487a165b8 Unexport DockerManager.RunContainer 2015-05-11 11:03:41 -07:00
Paul Morie e2dd95a8b3 Make nfs volume plugin use injected mounter 2015-05-11 13:36:36 -04:00
Piotr Szczesniak 12e44ff8a9 Added label kubernetes.io/name to cluster services
The label specifies service name which is displayed in kubectl cluster-info
2015-05-11 19:35:53 +02:00
Nikhil Jindal 2cc8696425 Merge pull request #7919 from brendandburns/kubectl
Fix validation by moving it into the resource builder.
2015-05-11 10:20:14 -07:00
Nikhil Jindal 48dfad6701 Merge pull request #8050 from fgrzadkowski/cache
Add cache with multiple shards to decrease lock contention
2015-05-11 10:18:34 -07:00
Dawn Chen ffa5947010 Introduce Previous as PodLogOptions 2015-05-11 10:14:22 -07:00
Dawn Chen ecaf0874b2 Introduce --previous option to kubectl log 2015-05-11 10:14:22 -07:00
Nikhil Jindal 9c0fdc7afd Merge pull request #8039 from nak3/delete-status
Delete status from displayable resources
2015-05-11 10:11:42 -07:00
Nikhil Jindal 6bf5acd109 Merge pull request #8044 from pmorie/pod-volume-injection
Refactor volume interfaces to receive pod instead of ObjectReference
2015-05-11 10:11:00 -07:00
Clayton Coleman 6ba6af2d1c ServiceIP allocation test is flaky
Choose a possible IP out of a list, instead of assuming it
can't be chosen randomly.
2015-05-11 13:05:56 -04:00
Vish Kannan b7289b606e Merge pull request #7786 from thockin/ports
Service port names are required for multi-port
2015-05-11 09:46:02 -07:00
Victor Marmol 307d677e06 Merge pull request #8022 from ddysher/kubelet-privilege
Check Pod privileged container
2015-05-11 09:01:58 -07:00
Paul Morie 14243d3bd6 Fix typo in nsenter_mount.go 2015-05-11 11:41:01 -04:00
Eric Paris 630aed6db1 Merge pull request #8016 from nak3/delete-empty-first-column-lines
Use template to get first column in __kubectl_parse_get()
2015-05-11 10:01:13 -05:00
Piotr Szczesniak aa116e2033 Implemented first version of load test
As for now it creates a bunch of Replication Controllers and play with them

Partially addresses #3139
2015-05-11 16:40:59 +02:00
deads2k 19784dbc4f remove auth-path from kubeconfig 2015-05-11 10:40:23 -04:00
Clayton Coleman 2e3c40b5c2 Merge pull request #7774 from kargakis/load-object-for-more-safety
expose: Load input object for increased safety
2015-05-11 10:16:20 -04:00
Clayton Coleman 382623f3fa Merge pull request #7896 from wojtek-t/generated_calling_manual
Improments to conversion methods generator
2015-05-11 10:15:32 -04:00
Clayton Coleman 8755ea8ec9 Merge pull request #7704 from smarterclayton/parallel_allocator
Use etcd to allocate PortalIPs instead of in-mem
2015-05-11 09:56:10 -04:00
deads2k 2ecb0ebd73 make the dockerkeyring handle mutiple matching credentials 2015-05-11 09:54:03 -04:00
Filip Grzadkowski 50de4d0081 Add cache with multiple shards to decrease lock contention 2015-05-11 15:07:50 +02:00
Marek Grabowski 16a76f1bd3 Merge pull request #8028 from shawnps/patch-1
Fix struct tag
2015-05-11 14:00:18 +02:00
Marek Grabowski 141e6977d6 Merge pull request #8029 from shawnps/patch-2
Fix struct tag
2015-05-11 13:59:56 +02:00
Marek Grabowski a0a68b0581 Merge pull request #8031 from shawnps/patch-4
Fix struct tag
2015-05-11 13:58:48 +02:00
Marek Grabowski c28a83f264 Merge pull request #8032 from shawnps/patch-5
Use Fprintf
2015-05-11 13:57:46 +02:00
Marek Grabowski 01457a92af Merge pull request #8033 from shawnps/patch-6
Fix unused fmt.Errorf result
2015-05-11 13:55:07 +02:00
Marek Grabowski 035daa7fbf Merge pull request #8034 from shawnps/patch-7
Fix printf verb
2015-05-11 13:54:16 +02:00
Wojciech Tyczynski 5578dc99e3 Improvements for conversions generator 2015-05-11 12:21:11 +02:00
Jerzy Szczepkowski 36ab4b4c2f Merge pull request #8036 from shawnps/patch-10
Use Errorf in persistent_volume_claim_binder_test.
2015-05-11 11:17:04 +02:00
Paul Morie cd359ffa73 Refactor volume interfaces to receive pod instead of ObjectReference 2015-05-10 20:12:57 -04:00
Kenjiro Nakayama c13f457885 Use template to get first column in __kubectl_parse_get() 2015-05-10 23:32:24 +09:00
Kenjiro Nakayama 5a0acecc54 Delete status from displayable resources 2015-05-10 19:28:02 +09:00
Shawn Smith 50f34d013e Use Errorf 2015-05-10 13:23:03 +09:00
Shawn Smith 295286cdc8 Fix printf verb 2015-05-10 13:18:26 +09:00
Shawn Smith 02d136173a Fix unused fmt.Errorf result 2015-05-10 13:17:00 +09:00
Shawn Smith 555ff0d1bc Use Fprintf 2015-05-10 13:14:05 +09:00
Shawn Smith 48927cb209 Fix struct tag 2015-05-10 13:09:13 +09:00
Shawn Smith 97cdd064c8 Fix struct tag 2015-05-10 13:08:25 +09:00
Shawn Smith 8105ac5346 Fix struct tag 2015-05-10 13:06:20 +09:00
Tim Hockin 3aa39d54b6 Service port names are required for multi-port
There is no provision for the first port to be unnamed.  I think I
initially allowed that, but then the Subset struct became a sorted
struct, so the first-ness of the port got lost.  If you have a Service
with one named and one unnamed port, what happens is that the
EndpointController fails to create Endpoints (validation error).
2015-05-09 20:11:48 -07:00
Deyuan Deng 2f7183cba5 Check Pod privileged container 2015-05-09 17:30:35 -04:00
Deyuan Deng 72a563f618 Use error type from docker go-client instead of string 2015-05-09 15:20:45 -04:00
Victor Marmol 9ded52ac79 Merge pull request #7981 from yujuhong/reasons
Record failure reasons for image pulling
2015-05-08 18:00:46 -07:00
Yu-Ju Hong d185bfd56a Record failure reason for image pulling 2015-05-08 17:37:11 -07:00
Brendan Burns c9324e6e38 Switch exec to look at exit code not output status. 2015-05-08 16:51:37 -07:00
Prashanth Balasubramanian 4fdd5bc3f3 Ratelimit replica creation 2015-05-08 14:24:25 -07:00
Daniel Smith b02149d3d2 Merge pull request #7950 from satnam6502/head2
Make the API server deal with HEAD requests via the service proxy
2015-05-08 14:13:21 -07:00
Brendan Burns 7f11585972 Fix validation by moving it into the resource builder.
Also always print an error for unknown field.
2015-05-08 14:00:33 -07:00
Abhi Shah 1014831a4f Merge pull request #7959 from eparis/bash-completions-fun-if-crap
Remove useless bash conditional
2015-05-08 13:33:40 -07:00
deads2k 6498fc1fda remove cmd respect for auth-path 2015-05-08 16:33:33 -04:00
Clayton Coleman 8bbb64cd8b Generated conversion functions 2015-05-08 16:04:03 -04:00
Clayton Coleman 5bcb96dae1 Separate out the master's control loops
These are "Bootstrap Controllers" as distinct from
the controllers in the controller-manager binary - they
are necessary for the cluster to start running.
2015-05-08 16:04:03 -04:00
Abhi Shah 87e85e25f1 Revert "Added ISCSI to PV structs" 2015-05-08 11:31:35 -07:00
Abhi Shah 9b2a0df811 Merge pull request #7734 from markturansky/iscsi_pv2
Added ISCSI to PV structs
2015-05-08 10:55:41 -07:00
Clayton Coleman e200d5a317 Make PortalIP alloc HA
* Add an allocator which saves state in etcd
* Perform PortalIP allocation check on startup and periodically afterwards

Also expose methods in master for downstream components to handle IP allocation
/ master registration themselves.
2015-05-08 13:34:16 -04:00
Satnam Singh 220e754f3e Make the API server deal with HEAD requests 2015-05-08 10:33:51 -07:00
Yu-Ju Hong 170f426fb6 Don't use the first token `uname -n` as the hostname
This change partially reverts the change made in #7910, which takes only the
first token of `uname -n` as the hostname.
2015-05-08 10:09:06 -07:00
Eric Paris d28660ae49 Remove useless bash conditional
bash just returns the last return code, why are we testing and then
doing the same?
2015-05-08 12:22:07 -04:00
Yifan Gu 7e9ba26103 kubelet: Add container runtime option for rkt. 2015-05-07 23:39:37 -07:00
Yifan Gu 8b1174a3a7 kubelet/container: Move pty*.go to container runtime package.
This makes the labeld pty wrapper available for both container runtime.
2015-05-07 23:36:47 -07:00
kargakis 93dc839b19 Load input object for increased safety 2015-05-08 03:17:54 +02:00
markturansky 6cdec4c093 rebased and updated 2015-05-07 20:54:35 -04:00
Abhi Shah 589154a557 Merge pull request #7821 from lavalamp/deleteEndpoints
Add old endpoint cleanup function
2015-05-07 16:54:41 -07:00
Victor Marmol 65bd04fc51 Merge pull request #7916 from yifan-gu/rkt_rm_label
kubelet/rkt: Remove build label.
2015-05-07 16:24:32 -07:00
Abhi Shah 7b1e9adb47 Merge pull request #7620 from brendandburns/fix
Support recovery from in the middle of a rename.
2015-05-07 16:04:26 -07:00
Clayton Coleman f2b6c41345 Merge pull request #7715 from csrwng/exec_portfw_client
Update Exec and Portforward client to use pod subresource
2015-05-07 18:57:10 -04:00
markturansky 4c9eac6c3d Added ISCSI to PV structs 2015-05-07 18:13:03 -04:00
Victor Marmol 5074e98ee9 Merge pull request #7910 from yujuhong/hostname
Use the full hostname for mirror pod name.
2015-05-07 14:43:16 -07:00
Abhi Shah 42aa4ead7e Merge pull request #7564 from markturansky/nfs_pv
Added NFS to PV structs
2015-05-07 13:51:40 -07:00
Yifan Gu 41f8c79490 kubelet/rkt: Remove build label.
As we removed the linux specific dependency, now rkt can be built
on other platforms as well.
2015-05-07 13:42:05 -07:00
Victor Marmol ecf8348609 Revert "kubelet: Add container runtime option for rkt." 2015-05-07 13:01:37 -07:00
Yu-Ju Hong ab5e0e0b5c Use the full hostname for mirror pod name.
This change appends the full hostname to the mirror pod name (instead of taking
the first token) so that if the hostname is overriden, we'd not be creating
unncessary name conflicts. An example would be that a user overrides the
hostnames to be "127.0.0.1" and "127.0.0.2", and both of them were resolved to
"127" for the mirror pod name suffix.

Also, because `uname -n` could return a FQDN or not, this change takes only
the first token of it as the hostname for consistency.
2015-05-07 12:59:49 -07:00
Victor Marmol 3d0f54f1f6 Merge pull request #7900 from yifan-gu/rkt_switch
kubelet: Add container runtime option for rkt.
2015-05-07 12:22:31 -07:00
Cesar Wong d954c31b22 Update Exec and Portforward client to use pod subresource 2015-05-07 14:25:14 -04:00
Cesar Wong 619332d58e Utility to convert versioned runtime objects to a set query parameters
JSON struct tags are used as parameter names, fields that do not have
the omitempty marker are always included.
2015-05-07 14:25:14 -04:00
Daniel Smith 6ab51f3bc0 Merge pull request #7668 from bprashanth/scheduling_minions
Scheduler ignores nodes that are in a bad state
2015-05-07 10:58:02 -07:00
Brendan Burns 63cbc715dd Support recovery from in the middle of a rename. 2015-05-07 10:39:15 -07:00
markturansky dc0b49d960 rebased and updated 2015-05-07 13:33:52 -04:00
Yifan Gu 4f6535ed8a kubelet: Add container runtime option for rkt. 2015-05-07 10:31:58 -07:00
Brendan Burns 5461231c1c Merge pull request #7567 from endocode/kbeecher/wip_etcd_migrate_keys
WIP: Add startup code to apiserver to migrate etcd keys
2015-05-07 10:05:41 -07:00
markturansky 68ce264a6d Added NFS to PV structs 2015-05-07 12:38:27 -04:00
Victor Marmol 35c644a45f Merge pull request #7870 from yifan-gu/rkt_volume
Add volumeGetter to rkt.
2015-05-07 08:58:00 -07:00
Victor Marmol 581821da23 Merge pull request #7763 from wojtek-t/kubelet_removing_nodes
Set NodeReady=False when docker is dead
2015-05-07 08:56:44 -07:00
Clayton Coleman b6fb8c861e Merge pull request #7556 from wojtek-t/conversions_with_defaulting
Auto-generated conversion methods calling one another
2015-05-07 11:28:35 -04:00
Wojciech Tyczynski 9ab167981f Merge pull request #7833 from fgrzadkowski/etcd_metrics
Add latency metrics for etcd operations
2015-05-07 10:32:26 +02:00
Wojciech Tyczynski 128835ec40 Merge pull request #7885 from hurf/master
Update errors_test.go
2015-05-07 10:06:26 +02:00
Wojciech Tyczynski e26da316dc Set NodeReady=False when docker is dead 2015-05-07 09:30:25 +02:00
Wojciech Tyczynski 156795f298 Update conversion functions 2015-05-07 09:27:58 +02:00
Wojciech Tyczynski 5173ee07e1 Chain conversion functions while generation 2015-05-07 09:27:58 +02:00
Victor HU f42a18d3c2 Update errors_test.go
minor change in log message
2015-05-07 15:06:15 +08:00
Filip Grzadkowski 970e972cd8 Add latency metrics for etcd operations 2015-05-07 08:58:28 +02:00
Yifan Gu a8f86da35b kubelet/rkt: Add volumeGetter to rkt.
This enable rkt to fetch the volume mounts by the kubelet.
2015-05-06 19:30:33 -07:00
Prashanth Balasubramanian 4b0607cf0b Scheduler ignored nodes with unknown condition status 2015-05-06 18:32:52 -07:00
Victor Marmol f6b7029475 Merge pull request #7859 from yifan-gu/rkt_remove_store
kubelet/rkt: Remove dependencies on rkt.store
2015-05-06 17:45:29 -07:00
Daniel Smith 1177adfdc8 Merge pull request #7867 from bprashanth/testWatchControllers
Fix controller unittests
2015-05-06 17:18:15 -07:00
Yifan Gu 8715c54bd3 kubelet/container: Move kubelet.volumeMap to container.VolumeMap.
This is a quick fix to solve circular dependency problem when
rkt references volume maps.
2015-05-06 16:50:57 -07:00
Prashanth Balasubramanian 8bf0adf147 Add a getter to pod expectations and use it in unittests 2015-05-06 16:01:03 -07:00
Victor Marmol d6ea33fbb5 Merge pull request #7849 from yifan-gu/rkt_components
kubelet/rkt: Inject dependencies to rkt.
2015-05-06 16:00:02 -07:00
Yifan Gu 8cbe8938c9 kubelet/rkt: Remove getImageID().
Replace getImageID() with getImageByName(), this can remove the
dependency on rkt.store.
2015-05-06 15:59:31 -07:00
Victor Marmol d46a2b1349 Merge pull request #7861 from pmorie/pull-secrets
Change signature of container runtime PullImage to allow pull w/ secret
2015-05-06 15:56:56 -07:00
CJ Cullen fbd125e4e2 Remove restriction that cluster-cidr be a class-b 2015-05-06 15:01:13 -07:00
Paul Morie df08b15121 Change signature of container runtime PullImage to allow pull w/ secret 2015-05-06 17:42:03 -04:00
Daniel Smith b49dd0ad1e Add old endpoint cleanup function 2015-05-06 13:03:18 -07:00
Clayton Coleman b60a90c3f4 Merge pull request #7718 from csrwng/create_sub_name
API Server - pass path name in context of create request for subresource
2015-05-06 15:42:03 -04:00
Sami Wagiaalla a85451addc Support default udev GCE PD device path
The expected GCE PD device name is google-{name of disk}. This is
because standard GCE images contain a udev rules file which renames
the GCE PD device to google-{name of disk} https://github.com/GoogleCloudPlatform/compute-image-packages/blob/master/google-startup-scripts/lib/udev/rules.d/65-gce-disk-naming.rules. In custome images which do not have that udev rules file
the device gets the default rules apply http://cgit.freedesktop.org/systemd/systemd/tree/rules/60-persistent-storage.rules
and the GCE PD device ends up with a name which looks like scsi-0Google_PersistentDisk_{name of disk}
This patch adds support for that scenario.

Signed-off-by: Sami Wagiaalla <swagiaal@redhat.com>
2015-05-06 15:09:15 -04:00
Brian Grant 32b4b1cdd7 Merge pull request #7575 from brendandburns/kubectl
Rolling Updates: Add support for --rollback.
2015-05-06 11:35:57 -07:00
Yifan Gu dee060c8fd kubelet/rkt: Inject dependencies to rkt.
Add necessary components rkt.
2015-05-06 11:28:01 -07:00
Cesar Wong fd65427e28 API Server - pass path name in context of create request for subresource
Allows a REST storage for a subresource to obtain name in path from
request.
2015-05-06 13:40:18 -04:00
Brendan Burns c9e33e197d Add support for --rollback. 2015-05-06 10:21:35 -07:00
Clayton Coleman 800de8cb7e Merge pull request #7832 from wojtek-t/separate_generated_conversion
Support manually-created and generated conversion functions
2015-05-06 12:53:46 -04:00
Prashanth B da42f13941 Merge pull request #7749 from yujuhong/stale_cache
Kubelet: record the timestamp correctly in the runtime cache
2015-05-06 09:20:30 -07:00
Victor Marmol b4ae750e5d Merge pull request #7830 from rhcarvalho/fix-metric-label
Fix metric label
2015-05-06 09:08:29 -07:00
Paul Morie 5bcdecbb6b Fix v1beta1 typos in v1beta2 conversions 2015-05-06 11:21:39 -04:00
Wojciech Tyczynski 458fec6c99 Generate conversion functions for v1beta3 2015-05-06 16:43:15 +02:00
Wojciech Tyczynski d4b32a8371 Support both manual and generate conversions 2015-05-06 16:43:15 +02:00
Rodolfo Carvalho 075ae79826 Fix metric label
Signed-off-by: Rodolfo Carvalho <rcarvalh@redhat.com>
2015-05-06 10:29:50 +02:00
Jerzy Szczepkowski 4d655e3fcf Merge pull request #7803 from yifan-gu/rkt_docker_image
kubelet/rkt: Add docker prefix to image string.
2015-05-06 09:22:50 +02:00
Robert Bailey 06c2f4e3d5 Merge pull request #7799 from cjcullen/test_pull_5246
Fix sync problems in #5246
2015-05-05 22:31:10 -07:00
Yu-Ju Hong c075719f05 Kubelet: fix the runtime cache to not cache the stale pods
If a pod worker sees stale pods from the runtime cache which were retrieved
before their last sync finished, it may think that the pod were not started
correctly, and attemp to fix that by killing/restarting containers.
There are two issues that may cause runtime cache to store stale pods:
  1. The timstamp is recorded *after* getting the pods from the container
     runtime. This may lead the consumer to think the pods are newer than they
     actually are.
  2. The cache updates are triggered by many goroutines (pod workers, and the
     updating thread). There is no mechanism to enforece that the cache would
     only be updated to newer pods.

This change fixes the above two issues by making sure one always record the
timestamp before getting pods from the container runtime, and updates the
cached pods only if the timestamp is newer.
2015-05-05 18:28:38 -07:00
CJ Cullen 292d33e33c Add synchronization around nodeMap 2015-05-05 17:11:38 -07:00
Daniel Smith 8a47574644 Merge pull request #7468 from simon3z/serialized-reference
replica: serialize created-by reference
2015-05-05 16:42:42 -07:00
Jerzy Szczepkowski e967ffd522 Added flag to set cluster class B network address for pods, add flag to disable allocation CIDRs for Pods. Fixed synchornization bug in NodeController registerNodes(). 2015-05-05 16:10:43 -07:00
Tomek Kulczynski 290c7b94ef Make nodecontroller configure nodes' pod IP ranges 2015-05-05 16:10:42 -07:00
Zach Loafman 875e83a741 Revert "Revert "Security context - types, kubelet, admission"" 2015-05-05 16:02:13 -07:00
Zach Loafman 3fcea23185 Revert "Revert "Revert "Kubelet: Add rkt as a runtime option""" 2015-05-05 15:55:12 -07:00
Yifan Gu ec68f1a85a kubelet/rkt: Add docker prefix to image string.
This change makes rkt to run only docker image for now,
which enables us to test with all existing pods.
2015-05-05 15:41:13 -07:00
Zach Loafman 92ca92f43a Revert "Revert "Kubelet: Add rkt as a runtime option"" 2015-05-05 15:28:09 -07:00
Alex Robinson 5be3a5a9dc Merge pull request #7783 from GoogleCloudPlatform/revert-7609-lb
Revert "Truncate GCE load balancer names to 63 chars"
2015-05-05 15:23:35 -07:00
Zach Loafman f48904fd5e Revert "Security context - types, kubelet, admission" 2015-05-05 15:20:39 -07:00
Zach Loafman 6016408096 Revert "Kubelet: Add rkt as a runtime option" 2015-05-05 15:15:15 -07:00
Yu-Ju Hong b2c0ea37b4 Merge pull request #7743 from vmarmol/runtime-switch
Kubelet: Add rkt as a runtime option
2015-05-05 13:36:46 -07:00
Paul Morie 1625e231dd Merge pull request #7343 from pweil-/security-context-types
Security context - types, kubelet, admission
2015-05-05 16:26:09 -04:00
Federico Simoncelli 37038c4877 replica: serialize created-by reference
Fixes #7322

Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-05-05 16:06:41 -04:00
Clayton Coleman 6e031ae01a Merge pull request #7780 from derekwaynecarr/incorrect_error
Throw an API error when deleting namespace in termination
2015-05-05 15:17:46 -04:00
Maxwell Forbes 39f3260ce0 Merge pull request #7773 from csrwng/fix_podexecopt
Fix command field PodExecOptions
2015-05-05 12:14:58 -07:00
Clayton Coleman c30428a117 Merge pull request #7769 from deads2k/fix-deep-copy
fix DeepCopy to properly support runtime.EmbeddedObject
2015-05-05 15:03:42 -04:00
Yu-Ju Hong 08d25c3ed4 Merge pull request #7785 from vmarmol/fix-start
Start ImageManager housekeeping in Run().
2015-05-05 12:00:00 -07:00
Quinton Hoole 8a4a39d9b4 Merge pull request #7273 from lavalamp/fix7
fix master service endpoint system for multiple masters
2015-05-05 11:59:30 -07:00
Quinton Hoole 8bc481d65c Merge pull request #7669 from a-robinson/lb
Change the cloud provider TCPLoadBalancerExists function to GetTCPLoadBalancer...
2015-05-05 11:42:06 -07:00
Victor Marmol 9f283f356f Start ImageManager housekeeping in Run().
Fixes #7762
Fixes #5634
2015-05-05 11:15:12 -07:00
Quinton Hoole 1c7f6b82c7 Revert "Truncate GCE load balancer names to 63 chars" 2015-05-05 11:02:18 -07:00
Victor Marmol 22297d316a Add rkt runtime to Kubelet init 2015-05-05 10:55:21 -07:00
Victor Marmol 5d0e5d7d61 Inject dependencies to rkt 2015-05-05 10:55:11 -07:00
Paul Weil 982bf19c20 security context initial implementation - squash 2015-05-05 13:46:13 -04:00
Victor Marmol ba438a808b Merge pull request #7772 from pmorie/containerized
Add containerized option to kubelet binary
2015-05-05 10:43:00 -07:00
Cesar Wong 283049f679 Fix pod exec options
Change the command field to an array of strings.
2015-05-05 13:20:08 -04:00
Paul Morie 553265ce0c Add containerized option to kubelet binary 2015-05-05 13:10:06 -04:00
Brian Grant 1b7749b8d9 Merge pull request #7779 from pmorie/swagger-spec
Fix swagger spec
2015-05-05 09:51:18 -07:00
derekwaynecarr d6a4b2427a Throw an API error when deleting namespace in termination 2015-05-05 12:49:51 -04:00
Yu-Ju Hong a7dadfcc97 Merge pull request #7752 from vmarmol/rkt-compile
Add build labels to rkt
2015-05-05 09:26:59 -07:00
Jeff Lowdermilk c1ae69da14 Merge pull request #7705 from bprashanth/rollingupdate_2
Reliable updates in rollingupdate
2015-05-05 09:23:25 -07:00
Paul Morie f6f34d0493 Allow int64 types in API; update swagger spec 2015-05-05 12:15:12 -04:00
Quinton Hoole 74c07f1094 Merge pull request #7742 from cjcullen/cbr0
Make changes suggested in #7675
2015-05-05 08:00:24 -07:00
deads2k 0d796c184d fix DeepCopy to properly support runtime.EmbeddedObject 2015-05-05 10:36:39 -04:00
Karl Beecher 0473f652fd Add startup code to apiserver to migrate etcd keys
Refs: #3476
2015-05-05 12:28:14 +02:00
kargakis c9e79a3c28 Setup generators in factory 2015-05-05 12:00:13 +02:00
Wojciech Tyczynski bd3d853242 Merge pull request #7737 from lavalamp/fixTimeAfter
Reduce usage of time.After
2015-05-05 09:28:07 +02:00
Daniel Smith a41a57cfe1 fix master service endpoint system for multiple masters 2015-05-04 22:55:51 -07:00
CJ Cullen 1ec0fb2e3d Make changes suggested in #7675 2015-05-04 21:58:13 -07:00
Robert Bailey 72048a824c Merge pull request #7735 from fabioy/yank-nodes-status.fix
Remove node status from "componentstatuses" call.
2015-05-04 20:43:01 -07:00
Victor Marmol d84aac6498 rkt: Unexport runtime, use Runtime interface 2015-05-04 17:28:02 -07:00
Victor Marmol f012d7f506 Add unsupported version of rkt. 2015-05-04 17:22:45 -07:00
Robert Bailey 5fe07e69b7 Merge pull request #7725 from pmorie/typo
Fix typo in runtime_cache.go
2015-05-04 17:03:42 -07:00
Brian Grant df8521c468 Merge pull request #7592 from pmorie/dapi-example
Rename EnvVarSource.FieldPath -> FieldRef and add example
2015-05-04 17:02:17 -07:00
Victor Marmol de2212983f Refactor rkt into one file.
This will make it easy to add build labels and stub out in non-Linux
builds.
2015-05-04 16:51:31 -07:00
Victor Marmol fe7cb95be6 Merge pull request #7746 from vishh/exec_fix
Fix kubelet's docker RunInContainer implementation
2015-05-04 16:49:57 -07:00
Victor Marmol a32d31d045 Merge pull request #7729 from yujuhong/runtime_up
Kubelet: wait until container runtime is up
2015-05-04 16:02:30 -07:00
Vishnu Kannan ec01265643 Fix docker exec logic. Without this patch, kubelet was not receiving any output from docker exec
and was incorrectly handling the output.
2015-05-04 16:01:32 -07:00
Paul Morie e949a623ff Change EnvVarSource.FieldPath -> FieldRef and add example 2015-05-04 18:41:09 -04:00
Prashanth Balasubramanian faa65cbd20 More reliable updates in rollingupdate 2015-05-04 15:29:30 -07:00
Yu-Ju Hong d231eb6bef Kubelet: wait until container runtime is up
Instead of waiting for the docker client to be up, we wait for the container
runtime to be up.
2015-05-04 15:16:38 -07:00
Victor Marmol b0129089da Merge pull request #7712 from rjnagal/kubelet
Expose pod name as a label on containers.
2015-05-04 14:52:16 -07:00
Fabio Yeon 1709cf0dbb Remove node status from "componentstatuses" call.
The legacy "/validate" behavior remains unchanged.
2015-05-04 14:34:20 -07:00
Brian Grant f7a2a02ebb Merge pull request #7443 from vishh/comments
Explicitly state the lack of support for 'Requests' for the purposes of scheduling
2015-05-04 14:33:13 -07:00
Daniel Smith 16a6fb8ef7 Replace calls to time.After with time.NewTimer for explicit stopping 2015-05-04 14:29:33 -07:00