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
Nikhil Jindal
2ae13693ab
Merge pull request #7675 from cjcullen/cbr0
...
Fix kube2sky flakes. Fix tools.GetEtcdVersion to work with etcd > 2.0.7
2015-05-04 14:23:29 -07:00
Rohit Jnagal
1511dbf0b5
Expose pod name as a label on containers.
...
Full pod name is exposed under key 'kubernetes.io/pod'.
It helps in introspection by looking at all containers in a pod through
docker ps -a -f label=kubernetes.io/pod=podXXX
We also plan to visualize this in cAdvisor.
2015-05-04 21:20:42 +00:00
Quinton Hoole
cd7a0e5a9f
Merge pull request #7721 from smarterclayton/fix_ipv4
...
Select IPv4-only from host interfaces
2015-05-04 14:09:27 -07:00
Vishnu Kannan
3b5a90852a
Explicitly state the lack of support for 'Requests' for the purposes of scheduling.
2015-05-04 13:39:11 -07:00
Paul Morie
d90689bb71
Fix typo in runtime_cache.go
2015-05-04 16:33:48 -04:00
Clayton Coleman
c07896ee35
Merge pull request #7509 from deads2k/deads-has-any
...
add StringSet.HasAny
2015-05-04 16:21:33 -04:00
Robert Bailey
93a781ff66
Merge pull request #7722 from eparis/minor-bash-fixes
...
Minor bash update found by shellcheck.net
2015-05-04 13:03:26 -07:00
CJ Cullen
a21713a771
Fix kube2sky flakes. Fix tools.GetEtcdVersion to work with etcd > 2.0.7
2015-05-04 13:01:35 -07:00
Victor Marmol
90de73ac7a
Merge pull request #7536 from rjnagal/node
...
Add --hostport to run-container.
2015-05-04 12:55:12 -07:00
Victor Marmol
25004014b1
Merge pull request #7703 from pmorie/nsenter-mount
...
Add NsenterMounter mount implementation
2015-05-04 12:54:02 -07:00
Yu-Ju Hong
7cf7b093a4
Merge pull request #7659 from vmarmol/runtime-switch
...
Have rkt implement the container Runtime interface
2015-05-04 12:45:16 -07:00
Daniel Smith
36977ecb67
Merge pull request #7643 from bprashanth/rc_status
...
Requeue rc if a single get/put retry on status.Replicas fails
2015-05-04 12:15:30 -07:00
Clayton Coleman
dd8184247e
Merge pull request #7629 from caesarxuchao/new-fix-7260-7491
...
Change the order the different versions of API are registered
2015-05-04 15:01:59 -04:00
Clayton Coleman
82b939760e
Merge pull request #7699 from kargakis/make-expose-generic
...
expose: Create objects in a generic way
2015-05-04 15:01:37 -04:00
Eric Paris
87613eee87
Minor bash update found by shellcheck.net
2015-05-04 14:52:50 -04:00
Clayton Coleman
166021e765
Select IPv4-only from host interfaces
2015-05-04 14:46:00 -04:00
Paul Morie
e5521234e4
Add NsenterMounter mount implementation
2015-05-04 14:40:04 -04:00
Zach Loafman
74cc4df81b
Merge remote-tracking branch 'upstream/release-0.16' into merge-release-0.16-to-master
2015-05-04 11:37:23 -07:00
Victor Marmol
ba7e940a57
Make rkt implement the container Runtime
2015-05-04 11:16:33 -07:00
Victor Marmol
e44d9df0f4
Changes to rkt's PortForward to match Runtime API.
2015-05-04 11:16:33 -07:00
Victor Marmol
79fc8bee34
Change GetContainerLogs() signature.
...
This works for both runtimes. We need to eventually unify the ID scheme
for this method.
2015-05-04 11:16:32 -07:00
Victor Marmol
60a77221f5
Add dummy ListImages and RemoveImage to rkt runtime.
2015-05-04 11:14:54 -07:00
Victor Marmol
2ad933e124
Merge pull request #7674 from yujuhong/enable_runtime
...
Kubelet: replace DockerManager with the Runtime interface
2015-05-04 11:10:20 -07:00
Zach Loafman
91bc1637a1
Kubernetes version v0.16.2-dev
2015-05-04 10:42:55 -07:00
Zach Loafman
72a6a94840
Kubernetes version v0.16.2
2015-05-04 10:42:44 -07:00
Brendan Burns
3cc25541d1
Fix YAML parsing for v1beta3 objects in the kubelet for file/http
2015-05-04 10:32:21 -07:00
Yu-Ju Hong
1ad4dd7803
Kubelet: replace DockerManager with the Runtime interface
...
This change instructs kubelet to switch to using the Runtime interface. In order
to do it, the change moves the Prober instantiation to DockerManager.
Note that most of the tests in kubelet_test.go needs to be migrated to
dockertools. For now, we use type assertion to convert the Runtime interface to
DockerManager in most tests.
2015-05-04 10:19:46 -07:00
Paul Morie
b538642464
Inject mounter into volume plugins
2015-05-04 11:28:57 -04:00
Wojciech Tyczynski
72f9e940a8
Merge pull request #7694 from nak3/bash-comp-add-label
...
Add kubectl_label to custom functions in bash completion
2015-05-04 15:11:41 +02:00
kargakis
fa42901798
expose: Create objects in a generic way
2015-05-04 14:21:24 +02:00
Wojciech Tyczynski
0e842f0e0b
Merge pull request #7695 from fgrzadkowski/cache_metrics
...
Add metrics to measure cache hit ratio
2015-05-04 13:59:29 +02:00
Kenjiro Nakayama
c3485ca85c
Add kubectl_label to custom functions of bash completion
2015-05-04 20:57:56 +09:00
Wojciech Tyczynski
a020e054d8
Merge pull request #7662 from jlowdermilk/services-printer
...
Change IP to IP(S) in service columns for kubectl get
2015-05-04 13:35:09 +02:00
Filip Grzadkowski
be2b2466f3
Merge pull request #7076 from eparis/bash-5-kubectl-required-flags
...
annotate required flags for bash_completions
2015-05-04 13:26:11 +02:00
Filip Grzadkowski
6f341eb5ae
Add metrics to measure cache hit ratio
2015-05-04 13:20:15 +02:00
Wojciech Tyczynski
9581aa85e9
Merge pull request #7676 from markturansky/fix_nil_ptr
...
Fixed nil pointer issue in describe when volume is unbound
2015-05-04 10:32:44 +02:00
Piotr Szczesniak
5845743171
Removed unnecessary closing bracket
2015-05-04 09:42:33 +02:00
Wojciech Tyczynski
e225a2e777
Merge pull request #7644 from liggitt/conversion_test
...
Output generated conversion functions/names
2015-05-04 08:17:03 +02:00
Quinton Hoole
83b70c4411
Revert "Revert #7145 now that #7609 is in, and fix the tests that were relying on it"
2015-05-02 23:32:21 -07:00
markturansky
2f5907b504
Fixed nil pointer issue in describe when volume is unbound
2015-05-02 06:49:19 -04:00
Prashanth Balasubramanian
864e12d995
Retry once and requeue on failure to update status.Replicas
2015-05-01 18:10:58 -07:00
Jeff Lowdermilk
b447dc0c54
Merge pull request #7635 from a-robinson/length
...
Revert #7145 now that #7609 is in, and fix the tests that were relying on it
2015-05-01 17:48:41 -07:00
Alex Robinson
a047250b53
Change the cloud provider TCPLoadBalancerExists function to GetTCPLoadBalancer,
...
which returns the IP/DNS address of the load balancer, enabling more
intelligent reconciliation in the service controller.
2015-05-01 17:42:23 -07:00
Daniel Smith
4a6ab7fd36
Merge pull request #7597 from eparis/copyright
...
Use generic copyright holder name in license boilerplate
2015-05-01 17:01:39 -07:00
Brendan Burns
508eb309f8
Merge remote-tracking branch 'upstream/release-0.16' into merge-release-0.16-to-master
2015-05-01 16:55:34 -07:00
Jeff Lowdermilk
cd9e7fbc4f
Change IP to IP(S) in service columns for kubectl get
2015-05-01 16:47:21 -07:00
Rohit Jnagal
9cbfb0c3f9
Add --hostport to run-container.
...
This helps as a starting point to show a single-machine container.
Its easier to use this as an example to show where host port mapping breaks and move on to
services.
2015-05-01 23:45:03 +00:00
Brendan Burns
28d727a0c8
Kubernetes version v0.16.1-dev
2015-05-01 16:33:53 -07:00
Brendan Burns
b933dda536
Kubernetes version v0.16.1
2015-05-01 16:33:40 -07:00
Victor Marmol
c5a86387a4
Merge pull request #7657 from yujuhong/docker_runtime
...
Removes RunPod in the Runtime interface
2015-05-01 16:09:44 -07:00
Prashanth Balasubramanian
20de8c93b7
Fix rollingupdate --image
...
(cherry picked from commit c8ea0c27e9
)
Conflicts:
docs/kubectl.md
pkg/kubectl/cmd/rollingupdate.go
2015-05-01 15:28:23 -07:00
Chao Xu
4787c66214
Register the API versions to the DefaultRESTMapper in the order of preferred versions first.
...
This makes kubectl sends requests to URLs in the format defined by the latest API version.
2015-05-01 15:14:15 -07:00
Yu-Ju Hong
ae1b24f07f
Merge pull request #7652 from vmarmol/runtime-switch
...
Kubelet: Add container runtime option.
2015-05-01 14:50:30 -07:00
Eric Paris
6b3a6e6b98
Make copyright ownership statement generic
...
Instead of saying "Google Inc." (which is not always correct) say "The
Kubernetes Authors", which is generic.
2015-05-01 17:49:56 -04:00
Yu-Ju Hong
4fe3366b04
Removes RunPod in the Runtime interface
...
SyncPod subsumes RunPod, so the latter is no longer needed.
After this change, DockerManager implements the Runtime interface.
2015-05-01 14:47:04 -07:00
Victor Marmol
d9d61c3511
Kubelet: Add container runtime option.
2015-05-01 14:26:54 -07:00
Victor Marmol
e3fc039eaa
Merge pull request #7611 from yifan-gu/rkt_syncPod
...
kubelet/rkt: Add SyncPod() to rkt.
2015-05-01 14:26:11 -07:00
Clayton Coleman
1a8845af61
Merge pull request #7490 from smarterclayton/alter_list
...
Do not automatically decode runtime.RawExtension
2015-05-01 16:48:26 -04:00
Jordan Liggitt
26caf9e0de
Output generated conversion functions/names
2015-05-01 16:28:08 -04:00
Yifan Gu
1b77615deb
kubelet/rkt: Add SyncPod() to rkt.
2015-05-01 13:02:05 -07:00
Yu-Ju Hong
ee473edd45
Merge pull request #7610 from vmarmol/runtime-syncpod
...
Add SyncPod() to DockerManager and use it in Kubelet
2015-05-01 12:22:39 -07:00
Quinton Hoole
c68723e7f9
Merge pull request #7628 from bprashanth/rc_ttl
...
Update expiration timeout based on observed latencies
2015-05-01 11:42:22 -07:00
Victor Marmol
3b9eba2c1b
Add SyncPod() to DockerManager and use in Kubelet.
...
This allows us to abstract away the logic of syncing a pod by the
runtime. It will allow other runtimes to perform their own sync as well.
2015-05-01 11:03:08 -07:00
Victor Marmol
bb8ee5b0db
Add lifecycle tests from kubelet_test to lifecycle.
2015-05-01 11:02:10 -07:00
Victor Marmol
7a737892f5
Extract out interface for GetPods().
...
This will remove the circular import with dockertools for
DockerManager. Eventually, this will be Runtime.
2015-05-01 11:02:10 -07:00
Alex Robinson
890ff7b4aa
Revert #7145 now that #7609 is in, and fix the tests that were relying on it.
2015-05-01 10:49:23 -07:00
Vish Kannan
cadfde0bd1
Merge pull request #7277 from guenter/cgroup-parent
...
Add --cgroup_parent flag to Kubelet to set the parent cgroup for pods
2015-05-01 10:24:58 -07:00
Jeff Lowdermilk
ec9942e995
Merge pull request #7540 from bprashanth/rollingupdate
...
Fix rolling update --image
2015-05-01 10:07:46 -07:00
Alex Robinson
eab6020e16
Merge pull request #7609 from brendandburns/lb
...
Truncate GCE load balancer names to 63 chars
2015-05-01 09:52:49 -07:00
Yu-Ju Hong
f74fab4e56
Merge pull request #7603 from vmarmol/runtime-syncpod-api
...
Add SyncPod() and remove Kill/Run InContainer().
2015-05-01 09:41:50 -07:00
Prashanth Balasubramanian
a8fdf3d78b
Update expiration timeout based on observed latencies
2015-05-01 08:53:51 -07:00
Victor Marmol
6316b485ad
Add SyncPod() and remove Kill/Run InContainer().
...
SyncPod allows us to abstract away how a pod is started and updated. It
also simplifies what the runtime has to implement.
2015-05-01 00:32:29 -07:00
Yifan Gu
3751ecc766
kubelet/container: Move ShouldContainerBeRestarted() to runtime.
2015-04-30 22:55:25 -07:00
Yifan Gu
428652bdc7
kubelet/rkt: Add KillPod() and GetPodStatus() for rkt.
2015-04-30 18:32:32 -07:00
Victor Marmol
03b5c32576
Merge pull request #7553 from yifan-gu/rkt_runner
...
kubelet/rkt: Add RunInContainer()/ExecInContainer()/PortForward().
2015-04-30 18:31:08 -07:00
Yifan Gu
9ce568a142
kubelet/rkt: Add GetPods() for rkt.
2015-04-30 18:00:18 -07:00
Brendan Burns
40549dc083
Truncate GCE load balancer names to 63 chars
2015-04-30 17:54:11 -07:00
Yifan Gu
1636fd2e1c
kubelet/rkt: Add RunPod() for rkt.
2015-04-30 17:31:35 -07:00
Yifan Gu
2e4be0bcf1
kubelet/rkt: Add RunInContainer()/ExecInContainer()/PortForward().
2015-04-30 17:25:16 -07:00
Victor Marmol
262c34e7db
Merge pull request #7543 from yifan-gu/pod_manifest
...
kubelet/rkt: Add routines for converting kubelet pod to rkt pod.
2015-04-30 17:18:19 -07:00
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
Akram Ben Aissi
a788002d0d
Port forward now listens on IPv4 and IPv6 localhost address
...
- Tries to listen 127.0.0.1 and the given port
- Tries to listen [::1] and the given port
- If both of them fails port-forward fails
- If at least one succeeds, port-forward listens on the corresponding interface and displays a warning for the other
- If both succeeds, port-portfward listens on both the interfaces
2015-04-30 09:17:41 +02: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
deads2k
f258717f26
add StringSet.HasAny
2015-04-29 16:55:43 -04: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
Yifan Gu
c848fa447d
kubelet: Refactor isPodRunning() in runonce.go
...
Replace InspectContainer() with generic GetPodStatus().
2015-04-28 17:44:13 -07:00
Victor Marmol
787d42d50b
Move network plugin teardown to DockerManager.
...
This teardown is Docker-specific and will let us also do the setup in
the manager in future cleanups.
2015-04-28 16:58:54 -07:00
Victor Marmol
de0957ccb1
Create Kubelet types package for common shared types.
2015-04-28 16:57:45 -07:00
Alex Robinson
3c0b799213
Merge pull request #7446 from liggitt/namespace_conversion
...
Fix typo in namespace conversion
2015-04-28 16:38:10 -07:00
Vishnu Kannan
820d0f3e83
Adding a 'PastEventf' method to EventRecorder interface. This will be
...
useful for recording the timestamp of events that happened in the past.
2015-04-28 16:13:29 -07:00
Vishnu Kannan
2f68cddbd2
Adding events API to cadvisor interface.
2015-04-28 16:13:29 -07:00
Vishnu Kannan
84e2c36cf7
Set namespace of events to "default" if the involved object does not have
...
any namespace set.
2015-04-28 16:08:16 -07:00
nikhiljindal
c4d7e19c8c
Cloning v1beta3 as v1 and exposing it in the apiserver
2015-04-28 16:06:03 -07:00
Fabio Yeon
45f85dbf06
Merge pull request #7404 from nikhiljindal/handleIndex
...
Updating handleIndex to return 404 for invalid server URL
2015-04-28 15:51:04 -07:00
Brendan Burns
e1256c0802
Make delete actually stop resources by default.
...
Refactor for shared code.
2015-04-28 14:36:43 -07:00
Prashanth Balasubramanian
7592dabeba
RcManager uses informers
2015-04-28 13:45:15 -07:00
Jordan Liggitt
ac67fff1cf
Convert Secret registry to use update/create strategy, allow filtering by Type
2015-04-28 15:00:20 -04:00
Robert Bailey
4304b1d24a
Set the 'WWW-Authenticate' header on 401 responses when basic
...
auth is enabled. This is required for basic auth to work with
web browsers.
2015-04-28 11:00:05 -07:00
Robert Bailey
6d85dcb4a0
Add support for HTTP basic auth to the kube-apiserver.
2015-04-28 10:33:51 -07:00
Alex Robinson
4c0c04f247
Merge pull request #7424 from thockin/print-named-endpt-ports
...
Print named ports in 'describe service'
2015-04-28 10:07:38 -07:00
Jordan Liggitt
0dbc9c2688
Fix typo in namespace conversion
2015-04-28 12:45:13 -04:00
Jeff Lowdermilk
4045dedc99
Merge pull request #7279 from brendandburns/update
...
Further implementation of rolling-update, add rename
2015-04-28 09:31:28 -07:00
Dawn Chen
af5d017911
Merge pull request #7386 from vmarmol/rkt-pull-image
...
Kubelet: Factor out and remove pullImageAndRunContainer
2015-04-28 09:28:16 -07:00
Dawn Chen
1de4c45115
Merge pull request #7401 from vmarmol/rkt-kill-pod
...
Kubelet: Move killPod() logic to DockerManager's KillPod()
2015-04-28 09:25:12 -07:00
Alex Robinson
f2b9b673ca
Merge pull request #7409 from pmorie/downward-api
...
Fix omitempty attributes on downward api
2015-04-28 08:40:39 -07:00
Wojciech Tyczynski
56a7b91e54
Merge pull request #7429 from kargakis/expose-fix
...
Fix getting services in expose cmd
2015-04-28 15:55:21 +02:00
Wojciech Tyczynski
43e59162f1
Merge pull request #7430 from fgrzadkowski/master_metrics
...
Add summary metrics to apiserver for easier debugging and future use in performance tests
2015-04-28 15:53:52 +02:00
Filip Grzadkowski
c1c24f645c
Add summary metrics to apiserver for easier debugging and future use in performance tests
2015-04-28 14:27:18 +02:00
kargakis
e6ee32a6c6
Fix getting services in expose cmd
2015-04-28 14:45:05 +03:00
Wojciech Tyczynski
534a2fd27c
Merge pull request #7171 from ravigadde/master
...
Node controller change to use field selector
2015-04-28 13:14:11 +02:00
Marek Grabowski
7a122a42d4
Merge pull request #7040 from justinsb/aws_nodeaddresses
...
AWS: Return public & private addresses in GetNodeAddresses
2015-04-28 10:56:50 +02:00
Tim Hockin
eea949b3a3
Print named ports in 'describe service'
...
Also in 'describe service'. This got missed in all the multiport work.
2015-04-27 22:17:51 -07:00
Sam Ghods
5ceebb4a5f
Add error message to log of docker error
2015-04-27 21:49:46 -07:00
Brendan Burns
591d98b6b2
Add replication controller renaming as a cleanup option.
2015-04-27 20:38:20 -07:00
Alex Robinson
45d8c97b0b
Merge pull request #7413 from pmorie/typo
...
Fix typo in provider.go
2015-04-27 19:09:07 -07:00
Dawn Chen
4b79e5a3db
Merge pull request #7403 from vmarmol/rkt-deps
...
Remove DockerPrefix references in Kubelet.
2015-04-27 19:05:43 -07:00
Paul Morie
b3a613c6c3
Fix typo in provider.go
2015-04-27 21:42:45 -04:00
Tim Hockin
0c611370e0
Merge pull request #7281 from thockin/flag-word-separators
...
Make flags accept - or _ between words
2015-04-27 18:11:58 -07:00
Paul Morie
2ecb883ff4
Fix omitempty attributes on downward api
2015-04-27 20:48:28 -04:00
Victor Marmol
6b0db76e85
Move killPod() logic to DockerManager KillPod().
...
This moved Docker specific logic there and allows it to align with the
runtime API. There is still a pod infra container reference in the
function due to network plugins. We can handle this in the Kubelet since
we'll need to be explicit in stating that the network plugin will not
work in a non-Docker runtime.
2015-04-27 17:15:37 -07:00
Dawn Chen
5ea5fff586
Merge pull request #7391 from vmarmol/rkt-portforward
...
Add PortForward to runtime API.
2015-04-27 17:10:37 -07:00
nikhiljindal
f864195a5b
Returning 404 on invalid server URL
2015-04-27 16:15:52 -07:00
Brian Grant
734663f8d8
Merge pull request #7394 from pmorie/downward-api
...
Fix downward API descriptions
2015-04-27 16:09:11 -07:00
Victor Marmol
42a2059a5d
Remove DockerPrefix references in Kubelet.
...
Makes this usage generic and usable by other runtimes.
2015-04-27 15:55:13 -07:00
Victor Marmol
1d6913779b
Use kubecontainer.Pod instead of api.Pod in KillPod.
...
We don't need the full api.Pod and the uses today use kubecontainer.Pod.
2015-04-27 15:36:06 -07:00
Victor Marmol
3082bb291c
Remove pullImageAndRunContainer().
...
Relevant logic is now in shared helpers.
2015-04-27 15:13:11 -07:00
Victor Marmol
b232eef5f7
Move image PullPolicy logic to pullImage().
...
This will allow us to remove the Docker-specific logic in
pullImageAndRunContainer() and re-use pullImage() in other runtimes.
2015-04-27 15:13:11 -07:00
Tim Hockin
a3d45fada8
Change flags to use dashes in help
2015-04-27 15:11:03 -07:00
Tim Hockin
6694eff020
Use pflags word separators to make - and _ equiv.
2015-04-27 15:10:52 -07:00
Dawn Chen
aa487b7cab
Merge pull request #7382 from vmarmol/rkt-deps
...
Move Docker-specific log handling to DockerManager.
2015-04-27 15:10:14 -07:00
Victor Marmol
3a61421711
Add PortForward to runtime API.
2015-04-27 14:56:32 -07:00
Paul Morie
8bf0b03c17
Fix downward API descriptions
2015-04-27 17:46:34 -04:00
Daniel Smith
83093af8b0
Merge pull request #5707 from endocode/kbeecher/etcd_prefix
...
Adds ability to define a prefix for etcd paths
2015-04-27 13:37:43 -07:00
Tim Hockin
635c393a5a
Merge pull request #6105 from markturansky/yoko_pv_mgr
...
PersistentVolumeClaimBinder
2015-04-27 13:35:44 -07:00
Victor Marmol
7404b7019c
Move Docker-specific log handling to DockerManager.
...
Eases the separation of Docker-specific code into the Docker-specific
runtime.
2015-04-27 13:10:10 -07:00
Brian Grant
2648ae86d6
Merge pull request #6739 from pmorie/downward-api
...
Env var sources / downward API
2015-04-27 12:46:00 -07:00
Ravi Gadde
4b5f851520
Node controller change to use field selector
2015-04-27 12:12:13 -07:00
markturansky
beacd8722a
addressed feedback. added opt-in cmd line flag
2015-04-27 15:00:01 -04:00
Paul Morie
7d30f09ebf
Add downward API for environment vars
2015-04-27 14:13:11 -04:00
Victor Marmol
0c52f7b6a5
Move CreatePodInfraContainer to DockerManager.
...
This will allow us to start making it an implementation detail of the
Docker runtime.
2015-04-27 11:07:38 -07:00
Daniel Smith
e0e83fa8fe
Merge pull request #7354 from wojtek-t/conversion_improvements
...
Improvements to generator of conversion methods.
2015-04-27 10:27:51 -07:00
markturansky
2fe8ed5358
fixed prefix name in validation
2015-04-27 12:05:12 -04:00
markturansky
a04420e548
Added pending phase for volumes. added defaults for PV/PVC. refactored to better phase transitioning in control loops
2015-04-27 12:05:12 -04:00
markturansky
37d7f3f4f1
Added integration test, fixed a validation issue
2015-04-27 12:05:12 -04:00
markturansky
2cf4e6564b
Added more to README, tweaked pod, added service, fixed validation
2015-04-27 12:05:12 -04:00
markturansky
b634f17ca7
Refactored to DeltaFifo
2015-04-27 12:05:12 -04:00
markturansky
49883e7d01
Edited README
2015-04-27 12:05:12 -04:00
markturansky
e1b885c9ad
narrowed client interface to allow easier testing. added PVC deletion test case.
2015-04-27 12:05:12 -04:00
markturansky
f26df6a983
renamed exported symbol for pvOrderedIndex, added locks, remove go routine for sync funcs
2015-04-27 12:05:12 -04:00
markturansky
6c6aab60ab
goformatted
2015-04-27 12:05:12 -04:00
markturansky
fb412e47e4
Addressed feedback, improved flow and comments
2015-04-27 12:05:11 -04:00
markturansky
242567460d
PersistentVolumeClaimBinder implementation
2015-04-27 12:05:11 -04:00
Maciej Szulik
cd183bbb72
Fixed validation message when trying to submit incorrect secret
2015-04-27 15:18:32 +02:00
Wojciech Tyczynski
922555f048
Improvements to generator of conversion methods.
2015-04-27 13:33:38 +02:00
Chris Moos
36e3ec9c1f
Fix crash in kubelet when persistent volume claim is not bound.
...
While testing #6105 ran into this issue, kubelet crashed because
controller had not yet bound the claim to a volume.
2015-04-25 12:38:18 -07:00
Yifan Gu
6c98b9daee
kubelet/metrics: Move instrumented_docker.go to dockertools.
...
This can solve the circular import problem when we move the
kubelet.pullImage to kubelet/metrics or kubelet/container package.
2015-04-24 22:03:11 -07:00
Brendan Burns
f40c793b37
Address a couple of TODO's in the recent rolling update change.
2015-04-24 16:47:37 -07:00
Victor Marmol
d0288f7143
Merge pull request #7301 from yujuhong/no_resurrection
...
Kubelet: filter out terminated pods in SyncPods
2015-04-24 16:17:06 -07:00
Brian Grant
7330ced1fe
Merge pull request #7268 from brendandburns/qps
...
First part of improved rolling update, allow dynamic next replication controller generation.
2015-04-24 16:11:07 -07:00
Yu-Ju Hong
b0e6926f67
kubelet: filter out terminated pods in SyncPods
...
Once a pod reaches a terminated state (whether failed or succeeded), it should
not transit out ever again. Currently, kubelet relies on examining the dead
containers to verify that the container has already been run. This is fine
in most cases, but if the dead containers were garbage collected, kubelet may
falsely concluded that the pod has never been run. It would then try to restart
all the containers.
This change eliminates most of such possibilities by pre-filtering out the pods
in the final states before sending updates to per-pod workers.
2015-04-24 15:28:03 -07:00
Brendan Burns
217e6ff0d0
First part of improved rolling update, allow dynamic next replication controller generation.
2015-04-24 15:19:00 -07:00
Victor Marmol
270d8aec8b
Raise cAdvisor stats cache to 2m.
...
This used to be 60ns which was a bug from when we switched from number
of stats to duration. Seems like the type was silently
converted/ignored.
2015-04-24 14:44:13 -07:00
Robert Bailey
0f22b6fc4d
Merge pull request #7251 from a-robinson/tp
...
Move load balancer host / target pool reconciliation to the service controller
2015-04-24 13:17:54 -07:00
Eric Tune
8a76cbf3d0
Merge pull request #7293 from ashcrow/apiserver_authz_tests
...
Added basic apiserver authz tests.
2015-04-24 13:05:45 -07:00
Clayton Coleman
9d0042e760
Merge pull request #7238 from csrwng/use_log_subresource
...
Switch kubelet log command to use pod log subresource
2015-04-24 15:16:50 -04:00
Alex Robinson
5d9564b1cc
Improve GCE's implementation of UpdateTCPLoadBalancer to only make the
...
update calls if anything has changed.
2015-04-24 18:44:19 +00:00
Alex Robinson
6ae8e40d3d
Move the logic for reconciling the host targets of external load balancers
...
from the node controller to the service controller before impending changes
to the node controller make it not fit there anymore.
2015-04-24 18:44:04 +00:00
Steve Milner
1acbfba576
Added basic apiserver authz tests.
2015-04-24 14:38:34 -04:00
Brian Grant
60d7bad147
Merge pull request #7128 from nikhiljindal/fixbeta1tests
...
Removing more references to v1beta1 from pkg/
2015-04-24 11:07:53 -07:00
Cesar Wong
556faa4590
Switch kubelet log command to use pod log subresource
2015-04-24 14:04:51 -04:00
Fabio Yeon
0c54673626
Merge pull request #7180 from ddysher/validate-no-dup-ip
...
Validate Node IPs; clean up validation code
2015-04-24 09:36:27 -07:00
Robert Bailey
137c90738e
Merge pull request #7289 from kazegusuri/logging
...
lower log level on recovering from panic
2015-04-24 09:22:46 -07:00
Victor Marmol
e654abde97
Merge pull request #7271 from yifan-gu/run
...
kubelet/dockertools: Move RunContainer into container runtime.
2015-04-24 07:46:22 -07:00
Masahiro Sano
7c371ee36e
lower log level on recovering from panic
2015-04-24 22:09:14 +09:00
Clayton Coleman
9f753c2592
Merge pull request #5909 from mfojtik/iowatcher
...
Suppress 'use of closed network connection' error in iowatcher
2015-04-24 08:56:40 -04:00
Clayton Coleman
ed00dae7c8
Merge pull request #7107 from wojtek-t/conversion_generator
...
Code to automatically generate conversion methods
2015-04-24 08:39:11 -04:00
Michal Fojtik
1d496a030e
Suppress 'use of closed network connection' error in iowatcher
...
Signed-off-by: Michal Fojtik <mfojtik@redhat.com>
2015-04-24 14:32:00 +02:00
Wojciech Tyczynski
159a58ddfb
Merge pull request #7169 from fgrzadkowski/requests_by_clients
...
Break request metrics in apiserver by client.
2015-04-24 13:37:50 +02:00
Filip Grzadkowski
8b755c805b
Break request metrics in apiserver by client.
2015-04-24 13:16:14 +02:00
Karl Beecher
a7623ca6cc
Adds ability to define a prefix for etcd paths
...
The API server can be supplied (via a command line flag) with a custom
prefix that is prepended to etcd resources paths.
Refs: #3476
2015-04-24 12:12:39 +02:00
nikhiljindal
dcc368c781
Removing more references to v1beta1 from pkg/
2015-04-24 00:45:17 -07:00
Wojciech Tyczynski
7f919a44c2
Generate conversions for v1beta3 package.
2015-04-24 09:18:12 +02:00
Deyuan Deng
c73ce1db34
Validate Node IPs; clean up validation code
2015-04-23 21:08:18 -04:00
David Oppenheimer
7505bed054
Merge pull request #7270 from thockin/docslinks
...
Make docs links go through docs.k8s.io
2015-04-23 17:18:51 -07:00
David Oppenheimer
ee11832d71
Merge pull request #7263 from lavalamp/fix4
...
fix watch of single object
2015-04-23 17:09:59 -07:00
Brian Grant
24cad22a88
Merge pull request #6674 from kargakis/error-on-invalid-label-spec
...
Tighten label parsing
2015-04-23 16:41:52 -07:00
Yifan Gu
b5a1b32aa4
kubelet/dockertools: Move RunContainer into container runtime.
...
Also removed ContainerRunner interface.
2015-04-23 16:40:37 -07:00
Tim Hockin
12e4e8f304
Make docs links go through docs.k8s.io
2015-04-23 16:36:27 -07:00
Brian Grant
73322af8e8
Merge pull request #5842 from simon3z/rc-annotation
...
Replica Controller Name Annotation in Pods
2015-04-23 16:35:18 -07:00
David Oppenheimer
e8b28c59c6
Merge pull request #7228 from jlowdermilk/describe-examples
...
Add examples for kubectl describe, make gendocs less spammy
2015-04-23 16:08:35 -07:00
Daniel Smith
2fa3ae9f15
fix watch of single object
2015-04-23 16:02:22 -07:00
Victor Marmol
d25a1412e6
Merge pull request #7262 from yifan-gu/kill
...
kubelet: Move KillContainer to container runtime.
2015-04-23 15:59:30 -07:00
Brian Grant
0b153eb522
Merge pull request #7211 from anguslees/lbmethod-fix
...
OpenStack: lb_method required when creating LbaaS pool
2015-04-23 15:56:42 -07:00
Yifan Gu
6ed27d06f7
kubelet: Move KillContainer to container runtime.
...
Rename KillContainerID(string) with KillContainer(string).
Delete the old KillContainer(*kubecontainer.Container).
2015-04-23 15:44:00 -07:00
Brian Grant
38ea531487
Merge pull request #7194 from nikhiljindal/example
...
Updating the guestbook example to v1beta3
2015-04-23 15:26:47 -07:00
Yu-Ju Hong
a3de4908d5
Merge pull request #7215 from nikhiljindal/errHandle
...
Updating serviceErrorHandler to use apiVersion specific codec
2015-04-23 15:21:29 -07:00
David Oppenheimer
8667ebddff
Merge pull request #7249 from yifan-gu/generator
...
kubelet/container: Introduce RunContainerOptionsGenerator.
2015-04-23 14:59:23 -07:00
Jeff Lowdermilk
a8e2f6e9c8
Add examples for kubectl describe, and make gendocs less spammy
...
Makes hack/{run/verify}-gendocs.sh ignore generated-timestamp-only
changes so minor changes to kubectl don't have to touch the entire
set of md docs.
2015-04-23 14:53:10 -07:00
Satnam Singh
bb478a9e21
Merge pull request #7007 from jlowdermilk/kubeconfig-verbose
...
Add a --short flag to kubectl config view
2015-04-23 14:51:13 -07:00
Dawn Chen
6207c518b3
Merge pull request #7254 from yifan-gu/readiness
...
kubelet/dockertools: Add readinessManage/containerRefManager to dockerManager.
2015-04-23 14:34:43 -07:00
nikhiljindal
1e323d77bc
Updating the guestbook example to v1beta3
2015-04-23 14:34:36 -07:00
nikhiljindal
120904df5f
Fixing serviceErrorHandler to use apiVersion specific codec
2015-04-23 14:32:05 -07:00
Yifan Gu
e8d485a3a1
kubelet/dockertools: Add readinessManage/containerRefManager to dockerManager.
...
This can enable us to move KillContainer() to container runtime.
2015-04-23 14:20:34 -07:00
Yifan Gu
bd7132bc07
kubelet/container: Introduce RunContainerOptionsGenerator.
...
This interface wraps the kubelet to provide the options for
container runtime to run a container.
2015-04-23 13:55:50 -07:00
Dawn Chen
f7831dcd93
Merge pull request #7229 from vmarmol/stats
...
Kubelet: Add /stats/container endpoint for raw containers
2015-04-23 13:43:23 -07:00
Dawn Chen
4c221892a5
Merge pull request #7241 from yifan-gu/pull
...
kubelet/container: Add Pull() and IsImagePresent() to runtime interface.
2015-04-23 13:39:31 -07:00
Tim Hockin
4e40423ca7
Merge pull request #7166 from pmorie/secrets-idempotent
...
Make secret volume plugin idempotent
2015-04-23 12:13:26 -07:00
Yifan Gu
de6e81fb4a
kubelet/container: Add Pull() and IsImagePresent() to runtime interface.
2015-04-23 11:58:51 -07:00
Victor Marmol
15e2a7fe38
Merge pull request #7200 from yifan-gu/containerID
...
Introduce container ID type.
2015-04-23 11:33:32 -07:00
Yifan Gu
afb9a896cb
Introduce container ID type.
2015-04-23 10:43:27 -07:00
Victor Marmol
c29d328c55
Kubelet: Add /stats/container endpoint.
...
This endpoint exposes container stats for all raw containers on the
machine. The addition is backwards compatible.
2015-04-23 10:38:29 -07:00
Yifan Gu
af1e9f737f
kubelet: Introduce volume manager.
...
The volume manager book-keeps the information for the volume mounts
on the kubelet, so we can avoid passing the volumeMap around.
2015-04-23 10:37:02 -07:00
Victor Marmol
e2f37f81a9
Add SubcontainerInfo() to cAdvisor API.
...
Returns information about a container and its subcontainers.
2015-04-23 10:20:05 -07:00
Dawn Chen
f9156c281a
Merge pull request #7123 from satnam6502/logging
...
Propagate pod and container name for log files
2015-04-23 10:13:08 -07:00
Dawn Chen
961cd710d7
Merge pull request #7208 from vmarmol/runtime
...
Add RunInContainer/ExecInContainer to container Runtime API.
2015-04-23 10:11:57 -07:00
Fabio Yeon
eb11d78b58
Merge pull request #7187 from akram/fix_port_forward_listner_parsing_ipv4_ipv6_2
...
Fixes port_forward unit tests which fails on machine which ::1 does not resolve to localhost
2015-04-23 09:49:46 -07:00
Robert Bailey
c303c055d1
Merge pull request #7225 from relaxdiego/master
...
Add .yml to the list of recognized file extensions
2015-04-23 09:36:33 -07:00
Wojciech Tyczynski
c4a27f5c0f
Generating conversion methods.
2015-04-23 18:26:24 +02:00
Jeff Lowdermilk
fa6ce7b7bf
Add a --raw flag to kubectl config view
...
Defaults to false, unless --flatten is specified. Default behavior
(--raw=false) is that byte data (Client{Certificate,Key}data,
CertificateAuthorityData) is redacted for a more human-readable view.
Useful for manually inspecting files that have embeded data.
2015-04-23 09:19:45 -07:00
Mark Maglana
4927d70dd0
Add .yml to the list of recognized file extensions
2015-04-23 08:57:45 -07:00
Paul Morie
bc8f010a10
Make secret volume plugin idempotent
2015-04-23 11:23:23 -04:00
Wojciech Tyczynski
7e2724e14b
Avoid benchmarks from being optimized
2015-04-23 08:57:29 +02:00
Angus Lees
8818966d1f
OpenStack: lb_method required when creating LbaaS pool
...
This change takes lb-method from [LoadBalancer] section of cloud
provider config file, defaulting to ROUND_ROBIN.
Fixes #7199
2015-04-23 15:19:14 +10:00
Victor Marmol
de6d5cc165
Add RunInContainer/ExecInContainer to container Runtime API.
2015-04-22 18:09:24 -07:00
Prashanth B
35cbbe6bde
Merge pull request #7198 from yujuhong/fix_filter
...
Fix pod filtering in replication controller
2015-04-22 17:25:38 -07:00
Yu-Ju Hong
10ecbb8aab
Fix pod filtering in replication controller
2015-04-22 16:09:14 -07:00
Brian Grant
ef2d1aef26
Merge pull request #7189 from ddysher/clean-tag
...
Fix condition tags
2015-04-22 15:40:56 -07:00
Satnam Singh
2444c1f943
Propagate pod and container name for log files
2015-04-22 15:08:51 -07:00
Deyuan Deng
401442b024
Fix condition tags
2015-04-22 16:33:22 -04:00
Victor Marmol
45575d95b3
Merge pull request #7177 from yifan-gu/runner
...
kubelet/dockertools: Remove dockerContainerCommandRunner.
2015-04-22 13:24:50 -07:00
Akram Ben Aissi
0883bfa6d3
Fixes an issue with hosts having an IPv6 address on localhost
...
- When 'getent hosts localhost' returns '::1' the creation of the
listener fails because of the port parsing which uses ":" as a
separator
- Use of net.SplitHostPort() to do the job
- Adding unit tests to ensure that the creation succeeds
- On docker.go: adds a test on the presence the socat command which was
failing silenty if not installed
- Code Review 1
- Fixed typo on Expected
- The UT now fails if the PortForwarder could not be created
- Code Review 2
- Simplify socat error message
- Changing t.Fatal to to.Error on unit tests
- Code Review 3
- Removing useless uses cases in unit tests
- Code Review 4
- Removing useless initiliasiation of PortForwarder
- Changing error message
- Code Review 5
- Simplifying TestCast struct
- Adding addition test in one test case
- Closing the listener
- Code Review 6
- Improving unit test
2015-04-22 22:20:51 +02:00
Victor Marmol
a0cc7c26d7
Merge pull request #7185 from yifan-gu/interface
...
kubelet/container: Move Prober/HandlerRunner interface to container/help...
2015-04-22 12:16:10 -07:00
Yifan Gu
f59013410a
kubelet/container: Move Prober/HandlerRunner interface to container/helpers.go
...
This enables us to pass them to container runtime as parameters.
2015-04-22 11:56:15 -07:00
Brian Grant
97302af015
Merge pull request #5012 from smarterclayton/podtemplates
...
Pod templates as their own type
2015-04-22 11:50:24 -07:00
Vish Kannan
a054201556
Merge pull request #7110 from swagiaal/improve-iscsi-test
...
iscsi Test: Add explicit check for attach and detach calls.
2015-04-22 11:21:42 -07:00
Vish Kannan
ee06097c07
Merge pull request #7003 from derekwaynecarr/enforce_unbounded
...
Reject unbounded cpu and memory pods if quota is restricting it
2015-04-22 11:19:52 -07:00
Clayton Coleman
d790cc14a9
Merge pull request #7163 from wojtek-t/conversion_benchmarks
...
Create benchmarks for conversions.
2015-04-22 14:10:46 -04:00
Yifan Gu
c55c879ffe
kubelet/dockertools: Remove dockerContainerCommandRunner.
...
Replace with docker manager.
2015-04-22 11:00:54 -07:00
Xiang Li
fb3c8f9452
pkg/apiserver: minor cleanup for errToAPIStatus()
2015-04-22 10:44:03 -07:00
Clayton Coleman
e6e034af4f
Rename PodTemplate.Spec to PodTemplate.Template
2015-04-22 12:54:27 -04:00
Clayton Coleman
10c2ace6bf
Pod Templates
2015-04-22 12:54:25 -04:00
Victor Marmol
1a41ec9c86
Merge pull request #7116 from yujuhong/container_status
...
Print container statuses in `kubectl get pods`
2015-04-22 09:18:14 -07:00
Federico Simoncelli
253ce4b6fe
replication: annotate replicated pods with controller name
...
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-04-22 11:26:25 -04:00
Victor Marmol
914a6febfb
Merge pull request #7010 from yifan-gu/compute
...
kubelet: Refactor computePodContainerChanges().
2015-04-22 08:05:18 -07:00
Wojciech Tyczynski
ea314d55f7
Create benchmarks for conversions.
2015-04-22 16:27:23 +02:00
Brian Grant
fc50201f89
Merge pull request #7059 from derekwaynecarr/fixup
...
Improve container resource requirements validation
2015-04-22 07:13:34 -07:00
Brian Grant
15c2986a07
Merge pull request #7067 from ravigadde/master
...
Added field selector for listing pods
2015-04-22 07:12:21 -07:00
Brian Grant
8dbbf3da5c
Merge pull request #7138 from pravisankar/unschedulable-event
...
Record an event on node schedulable changes
2015-04-22 07:11:14 -07:00
Brian Grant
1a9c179271
Merge pull request #7145 from caesarxuchao/6812
...
Resolve #6812 , limit length of load balancer names
2015-04-22 07:09:23 -07:00
Fabio Yeon
1ac71631ee
Merge pull request #7156 from xiang90/use_httperror
...
pkg/apiserver: use httpError in handlers.go
2015-04-22 06:59:58 -07:00
Xiang Li
405ebf4b1e
pkg/apiserver: use httpError in handlers.go
2015-04-21 23:05:56 -07:00
Dawn Chen
a666c1e731
Merge pull request #7134 from yifan-gu/version
...
kubelet: Refactor GetDockerVersion().
2015-04-21 16:49:45 -07:00
Yu-Ju Hong
06125f37d3
Print container statuses in kubectl get pods
...
`kubectl get pod` already prints one container per line. This change fills in
the status for each container listed. This aims to help users quickly identify
unhealthy pods (e.g. in a crash loop) at a glance.
- The first row of every pod would display the pod information and status
- Each row of the subsequent rows corresponds to a container in that pod:
* STATUS refers to the container status (Running, Waiting, Terminated).
* CREATED refers to the elapsed time since the last start time of the
container.
* MESSAGE is a string which explains the last termination reason, and/or
the reason behind the waiting status.
2015-04-21 15:42:18 -07:00
Derek Carr
cf27fd12c1
Merge pull request #6278 from akram/fix_port_forward_listner_parsing_ipv4_ipv6
...
Fixes an issue with hosts having an IPv6 address on localhost
2015-04-21 18:04:02 -04:00
Clayton Coleman
250a9889f7
Merge pull request #7093 from derekwaynecarr/ref_update
...
Fixup event object reference generation to allow downstream objects
2015-04-21 17:55:02 -04:00
Yifan Gu
611fb25926
kubelet: Refactor GetDockerVersion().
...
Remove GetDockerServerVersion() from DockerContainerCommandRunner interface,
replaced with runtime.Version(). Also added Version type in runtime for version
comparision.
2015-04-21 14:52:08 -07:00
Tim Hockin
fa648c17cb
Merge pull request #7131 from rjnagal/node
...
Convert error strings to proper validation errors.
2015-04-21 14:15:32 -07:00
Ravi Sankar Penta
f1d88f6d2f
Record an event on node schedulable changes
2015-04-21 14:14:59 -07:00
Yifan Gu
5594981340
kubelet: Refactor computePodContainerChanges().
...
Pull generatePodStatus() and makePodDataDirs() out as they are the
common part for container runtimes.
2015-04-21 13:53:20 -07:00
Brian Grant
7d3c15dd4d
Merge pull request #6996 from ironcladlou/rolling-updater-cleanup-policy
...
Add cleanup policy to RollingUpdater
2015-04-21 13:47:12 -07:00
Rohit Jnagal
bfb4b7280d
Convert error strings to validation errors.
2015-04-21 20:35:46 +00:00
Brian Grant
7977949767
Merge pull request #6593 from derekwaynecarr/object_counts
...
ResourceQuota add object count support for secret and volume claims
2015-04-21 13:16:00 -07:00
Brian Grant
cf523a23d0
Merge pull request #6985 from csrwng/fix_pod_log_location
...
Use Pod.Spec.Host instead of Pod.Status.HostIP for pod subresources
2015-04-21 12:58:47 -07:00
Brian Grant
8ae4cb384e
Merge pull request #6992 from yujuhong/kill_pods
...
Prioritize deleting the non-running pods when reducing replicas
2015-04-21 12:58:21 -07:00
derekwaynecarr
3445bd5806
Fixup event object reference generation to allow downstream objects to have an event
2015-04-21 15:31:38 -04:00
caesarxuchao
e9c5e44767
Use service UID as the ELB name
2015-04-21 12:20:42 -07:00
Daniel Smith
1ebe994ba7
Merge pull request #7056 from kubernetes-ui/kubernetes-ui-dashboard
...
Kubernetes UI with Dashboard component
2015-04-21 12:16:47 -07:00
Fabio Yeon
0163ebf224
Merge pull request #7106 from justinsb/aws_fakeec2_filter_by_instanceid
...
Add FakeEC2 Instances support for matching by instance id
2015-04-21 11:39:25 -07:00
Tim Hockin
5ff76bfdab
Merge pull request #7102 from jsafrane/devel/fix-gluster-namespace
...
Use pod namespace when looking for its GlusterFS endpoints.
2015-04-21 11:18:52 -07:00
Akram Ben Aissi
b7fc22be8a
Fixes an issue with hosts having an IPv6 address on localhost
...
- When 'getent hosts localhost' returns '::1' the creation of the
listener fails because of the port parsing which uses ":" as a
separator
- Use of net.SplitHostPort() to do the job
- Adding unit tests to ensure that the creation succeeds
- On docker.go: adds a test on the presence the socat command which was
failing silenty if not installed
- Code Review 1
- Fixed typo on Expected
- The UT now fails if the PortForwarder could not be created
- Code Review 2
- Simplify socat error message
- Changing t.Fatal to to.Error on unit tests
- Code Review 3
- Removing useless uses cases in unit tests
- Code Review 4
- Removing useless initiliasiation of PortForwarder
- Changing error message
- Code Review 5
- Simplifying TestCast struct
- Adding addition test in one test case
- Closing the listener
- Code Review 6
- Improving unit test
2015-04-21 20:16:22 +02:00
Derek Carr
74d6f30b3c
Merge pull request #7022 from markturansky/ns_controller_indempotent
...
Made NamespaceManager.Run idempotent and added graceful shutdown
2015-04-21 13:55:14 -04:00
Yu-Ju Hong
df2cbd4877
Prioritize deleting the non-running pods when reducing replicas
...
This changes instructs the replication controller to delete replicas in the
order of "unscheduled (pending)", "scheduled (pending)", and "scheduled
(running)" pods. This is less disruptive than deleting random pods.
2015-04-21 10:17:29 -07:00
Victor Marmol
4b9a64bcd8
Merge pull request #7098 from yifan-gu/handler
...
kubelet: Refactor runHandler().
2015-04-21 08:14:42 -07:00
Dan Mace
093b7c2e25
Add cleanup policy to RollingUpdater
...
* Support configurable cleanup policies in RollingUpdater. Downstream
library consumers don't necessarily have the same rules for post
deployment cleanup; making the behavior policy driven is more flexible.
* Refactor RollingUpdater to accept a config object during Update instead
of a long argument list.
* Add test coverage for cleanup policy.
2015-04-21 10:51:38 -04:00
Sami Wagiaalla
0a7f6c2999
iscsi Test: Add explicit check for attach and detach calls.
...
Signed-off-by: Sami Wagiaalla <swagiaal@redhat.com>
2015-04-21 10:30:47 -04:00
Patrick Reilly
716d98c39e
initial commit of chrome only of new replacement web ui
...
remove node modules
make new data file for web ui
initial commit of dashboard
switch back to non SSL request
move port splitting to common place; add to node resource location
Signed-off-by: Patrick Reilly <patrick@kismatic.io>
various path fixes
make svg path relative
work around missing mime type
Signed-off-by: Patrick Reilly <patrick@kismatic.io>
fix paths
fix karma path
remove bad protractor test
2015-04-21 07:24:06 -07:00
Piotr Szczesniak
27daa29753
Merge pull request #7073 from lavalamp/fix4
...
move port splitting to common place; add to node resource location
2015-04-21 16:10:40 +02:00
Justin Santa Barbara
5efd1e717f
Add FakeEC2 Instances support for matching by instance id
2015-04-21 06:51:43 -07:00
derekwaynecarr
06eb45fb75
ResourceQuota add object count support for secret and volume claims
2015-04-21 09:49:40 -04:00
Ravi Gadde
bf8f258471
Added field selector for listing pods.
2015-04-21 06:33:28 -07:00
Jan Safranek
0293c6b7f0
Use pod namespace when looking for its GlusterFS endpoints.
...
I have a pod, which exports a Gluster filesystem in non-default namespace.
When I try to use this FS as a GlusterfsVolumeSource in a 'client' pod
definition, Kubernetes looks for the appropriate endpoint in 'default'
namespace instead of the namespace where the client pod is being defined.
2015-04-21 12:33:59 +02:00
Piotr Szczesniak
a45b5c3ebf
Merge pull request #7095 from derekwaynecarr/public_describe_events
...
Make describeEvents DescribeEvents
2015-04-21 06:52:26 +02:00
Piotr Szczesniak
ade6b23622
Merge pull request #7083 from lavalamp/mimeType
...
work around missing mime type
2015-04-21 06:45:20 +02:00
Yifan Gu
c23b83b0ca
kubelet: Refactor runHandler().
...
Use new HandlerRunner type to replace runHandler()
2015-04-20 21:31:11 -07:00
derekwaynecarr
7638107f8b
Make describeEvents DescribeEvents
2015-04-21 00:24:12 -04:00
Brian Grant
9dcf3e0a33
Merge pull request #7082 from fabioy/api-cs.fix
...
Fixed "componentstatuses" API object JSON descriptions.
2015-04-20 18:10:36 -07:00
Daniel Smith
bf45a62382
Merge pull request #7079 from thockin/fuzz_volumes
...
Easier fuzzing for volumes
2015-04-20 18:09:05 -07:00
CJ Cullen
1be193098a
Merge pull request #7072 from dchen1107/cleanup
...
Remove fqdn dependency for node name
2015-04-20 18:00:21 -07:00
Daniel Smith
9f89043d8b
Merge pull request #6989 from kazegusuri/update_node_label
...
use Watch for single object instead of WatchList
2015-04-20 17:28:23 -07:00
Fabio Yeon
81ef0198f4
Fixed "componentstatuses" API object JSON descriptions.
2015-04-20 17:28:13 -07:00
Dawn Chen
5eda3fe9a9
Remove deprecated comment.
2015-04-20 17:12:36 -07:00
Daniel Smith
b9aaf90dd1
work around missing mime type
2015-04-20 17:12:35 -07:00
Daniel Smith
462534ca5d
Merge pull request #7068 from krousey/api_pod_pointer
...
Changing a few more instances of api.Pod to *api.Pod
2015-04-20 17:09:28 -07:00
Clayton Coleman
1bc4912f51
Merge pull request #7030 from liggitt/skip_fetch_delete
...
Skip fetching from server when deleting a named resource
2015-04-20 19:38:10 -04:00
Tim Hockin
c320931d6a
Easier fuzzing for volumes
2015-04-20 16:29:52 -07:00
Masahiro Sano
f90dc8f413
use Watch for single object instead of WatchList
2015-04-21 08:00:52 +09:00
Eric Paris
0620940d26
annotate required flags for bash_completions
...
some commands require that certain flags be set in order to function.
Annotate those flags so the bash completions will suggest to the user
that they be set.
2015-04-20 18:33:00 -04:00
Kris Rousey
594f514843
Changing a few remaining instances of passing pods around by value. I
...
avoided changing api.PodList.Items to []*api.Pod.
2015-04-20 15:26:45 -07:00
Victor Marmol
d44e9b4880
Merge pull request #7048 from yujuhong/para_cleanup
...
Kubelet: parallelize cleaning up containers in unwanted pods
2015-04-20 14:59:07 -07:00
Yu-Ju Hong
275002173e
Kubelet: parallelize cleaning up containers in unwanted pods
...
Kubelet kills unwanted pods in SyncPods, which directly impact the latency of a
sync iteration. This change parallelizes the cleanup to lessen the effect.
Eventually, we should leverage per-pod workers for cleanup, with the exception
of truly orphaned pods.
2015-04-20 14:42:12 -07:00
Daniel Smith
27ee6ea0de
move port splitting to common place; add to node resource location
2015-04-20 14:31:44 -07:00
Brendan Burns
01b891770f
Merge pull request #7054 from ncdc/dockerclient-version
...
Use go-dockerclient's APIVersion
2015-04-20 14:20:57 -07:00
Dawn Chen
28e0c68d65
Register node with nodename only.
2015-04-20 14:16:21 -07:00
Kenjiro Nakayama
2e702b0c61
Replace hostname -f with uname -n
2015-04-20 14:16:21 -07:00
Brendan Burns
d7b0b4a95b
Merge pull request #6834 from eparis/bash-4-kubectl-describe
...
Annotate kubectl describe with describable object for bash completions
2015-04-20 14:13:53 -07:00
markturansky
13a38f3e52
Made NamespaceManager.Run indempotent and added graceful shutdown
2015-04-20 16:50:40 -04:00
Jeff Lowdermilk
89fba5ff63
Merge pull request #6942 from smarterclayton/simplify_object_export
...
List output with differing types should be more resilient
2015-04-20 13:48:57 -07:00
derekwaynecarr
5036289b5e
Improve container resource requirements validation
2015-04-20 15:08:18 -04:00
Jordan Liggitt
feb8ba9c4e
Allow resource builder to avoid fetching objects
2015-04-20 15:00:52 -04:00
Brendan Burns
4e811201a0
Merge pull request #7020 from kazegusuri/reenable_auto_reauth
...
Update gophercloud to HEAD and reenable auto reauth
2015-04-20 11:57:07 -07:00
Clayton Coleman
545a5a865f
List output with differing types should be more resilient
...
kubectl get can output a series of objects as a List in versioned
form, but not all API objects are available in the same schema.
Make the act of converting a []runtime.Object to api.List more
robust and add a test to verify its behavior in Get.
Makes it easier for client code to output unified objects.
2015-04-20 14:44:16 -04:00
Brendan Burns
e079e23e47
Merge pull request #6597 from fabioy/kubectl-validate
...
Add "kubectl validate" command to do a cluster health check.
2015-04-20 11:21:06 -07:00
Andy Goldstein
a0a80ea76e
Use go-dockerclient's APIVersion
...
Use go-dockerclient's APIVersion to check the minimum required Docker
version, as it contains methods for parsing the ApiVersion response from
the Docker daemon and for comparing 2 APIVersion objects.
2015-04-20 13:48:18 -04:00
Brendan Burns
29875191ad
Merge pull request #7000 from deads2k/deads-allow-many-modifications
...
allow multiple changes in kubeconfig modifyconfig
2015-04-20 10:46:12 -07:00
Yu-Ju Hong
cd61aa9484
Merge pull request #7009 from yifan-gu/kube_dep
...
kubelet: Refactor prober.
2015-04-20 10:23:04 -07:00
Victor Marmol
cf27de61c6
Merge pull request #7035 from smarterclayton/turn_down_kubelet_for_what
...
Tone down kubelet logs for already run containers
2015-04-20 08:05:25 -07:00
Victor Marmol
446f349910
Merge pull request #7037 from xiang90/no-self
...
pkg/kubelet: no more self receiver in kubelet pkg
2015-04-20 08:03:48 -07:00
Avesh Agarwal
a2ac72c4e7
This commit fixes "kubectl get nodes" output and makes it more sane, and also adds new unit test cases for SchedulingDisabled.
2015-04-20 00:12:18 -04:00
Justin Santa Barbara
335f42b38c
AWS: Return public & private addresses in GetNodeAddresses
2015-04-19 21:10:44 -07:00
Xiang Li
2f2247dae3
pkg/kubelet: no more self receiver in kubelet pkg
2015-04-19 20:26:07 -07:00
Clayton Coleman
9e87924983
Tone down kubelet logs for already run containers
2015-04-19 22:55:38 -04:00
Masahiro Sano
b2d68c79b7
use auto reauth when access token is expired
2015-04-18 18:41:54 +09:00
Prashanth B
f2f40b06aa
Merge pull request #6943 from lavalamp/fix4
...
Improve endpoint controller
2015-04-17 16:30:31 -07:00
Yifan Gu
1d58992df7
kubelet: Refactor prober.
...
Decompose the health check prober from the kubelet.
2015-04-17 15:54:28 -07:00
Daniel Smith
a2953fdc7e
Make endpoint controller use framework
2015-04-17 15:21:51 -07:00
Daniel Smith
24a8cceb5c
add work queue; test coverage 100%
2015-04-17 15:21:47 -07:00
Daniel Smith
da5111891c
Fix selector handling in listers.go.
2015-04-17 15:21:37 -07:00
Yu-Ju Hong
1f3e47f6f7
Merge pull request #7005 from yifan-gu/kube_dep
...
kubelet: Refactor shouldContainerBeRestarted():
2015-04-17 15:05:41 -07:00
Daniel Smith
8a17ea4894
Add Delete method to endpoints client.
2015-04-17 14:55:19 -07:00
Yifan Gu
29a5da231d
kubelet: Refactor shouldContainerBeRestarted():
...
Remove the function's dependency on kubelet.
2015-04-17 14:35:39 -07:00
derekwaynecarr
75482cabb4
Reject unbounded cpu and memory pods if quota is restricting it
2015-04-17 17:02:47 -04:00
Kris Rousey
81497f3ed2
Changing the scheduler package to use *api.Pod instead of api.Pod to
...
avoid unnecessary shallow copies. The change rippled through a lot of
code.
2015-04-17 13:34:31 -07:00
deads2k
d24b672aa0
allow multiple changes in kubeconfig modifyconfig
2015-04-17 16:02:36 -04:00
Vish Kannan
c3caf397af
Merge pull request #6935 from derekwaynecarr/fix_quota
...
Fix quota status not updating with change in spec
2015-04-17 12:52:33 -07:00
Brian Grant
43c375f759
Merge pull request #6968 from hurf/master
...
Update priorities.go
2015-04-17 12:10:54 -07:00
Fabio Yeon
c6ef2ddf8a
Fix "validate-cluster.sh" to use "kubectl get componentstatus".
2015-04-17 11:59:53 -07:00
Fabio Yeon
951a125751
Add "componentstatus" to API for easier cluster health check.
2015-04-17 11:58:23 -07:00
Yu-Ju Hong
26a70a52e6
Merge pull request #6843 from xiang90/cleanup
...
pkg/kubelet: clean up pod manager
2015-04-17 11:27:14 -07:00
Yu-Ju Hong
13b29cd64b
Merge pull request #6595 from guenter/kubelet-update-channel-closed
...
kubelet syncloop should stop if/when updates chan closes
2015-04-17 10:42:05 -07:00
Xiang Li
28c1726232
pkg/kubelet: minor cleanup in pod_manager.go
2015-04-17 10:24:38 -07:00
Xiang Li
864f9b4a8a
pkg/kubelet: drop unnecessary receiver in pod_manager.go
2015-04-17 10:24:38 -07:00
Xiang Li
ede4fb4a37
pkg/kubelet: remove unnecessary wrapper code in pod_manager.go
2015-04-17 10:24:38 -07:00
Clayton Coleman
153a362501
Merge pull request #6938 from derekwaynecarr/fix_nil_pointer
...
Fix nil pointer in etcd tools
2015-04-17 13:20:59 -04:00
Cesar Wong
2adaf104fa
Use Pod.Spec.Host instead of Pod.Status.HostIP for pod subresources
...
The Spec.Host is set when binding a pod to a node and will contain the
canonical host name of the node. The Status.HostIP may not be included
in the node's server TLS certificate.
2015-04-17 11:40:00 -04:00
Clayton Coleman
4b85c0866a
Don't insert duplicate arguments in SplitResourceArgs
2015-04-17 11:36:25 -04:00
derekwaynecarr
199011eee0
Fix nil pointer in etcd tools
2015-04-17 11:33:31 -04:00
Clayton Coleman
4833578a57
Merge pull request #6958 from smarterclayton/args_remain_in_order
...
`kubectl get rc,pods` should invoke in that order
2015-04-17 11:30:09 -04:00
Clayton Coleman
3bc42f1635
Merge pull request #6573 from kargakis/setup-resource-aliases
...
Support setting up aliases for groups of resources
2015-04-17 11:16:30 -04:00
kargakis
9d056c6bd8
Support setting up aliases for groups of resources
...
Closes #5278
2015-04-17 16:31:59 +02:00
Clayton Coleman
b3f03b934d
Merge pull request #6869 from csrwng/pod_connect
...
Pod proxy, portforward and exec subresources
2015-04-17 09:49:12 -04:00
Wojciech Tyczynski
fafcf79d5d
Allow more retries in density test
2015-04-17 12:35:56 +02:00
Victor HU
7eac8563d4
Update priorities.go
...
minor change in log message and log level
2015-04-17 16:02:55 +08:00
Clayton Coleman
2c11835612
kubectl get rc,pods
should invoke in that order
...
SplitResourceArguments should not use a golang map
2015-04-17 00:57:02 -04:00
Daniel Smith
636d0682d7
Merge pull request #6830 from derekwaynecarr/improve_error_msg
...
Improve error message when name is omitted but generateName is available
2015-04-16 17:21:43 -07:00
Brian Grant
a927c239fe
Merge pull request #6881 from nikhiljindal/errHandle
...
Registering a serviceErrorHandler with go-restful to always return JSON responses
2015-04-16 16:44:17 -07:00
Clayton Coleman
1d9203d98f
Merge pull request #6932 from csrwng/proxy_redirect_params
...
Add URL parameters to proxy redirect Location header
2015-04-16 18:35:31 -04:00
nikhiljindal
f9132dc572
Registering serviceErrorHandler with go-restful
2015-04-16 14:59:44 -07:00
Cesar Wong
e09b8c99dc
Add URL parameters to proxy redirect Location header
...
When a URL that doesn't end in "/" is sent to the API proxy,
the proxy responds with a redirect to the URL with a "/" at the
end. The problem is that this redirect path does not include
query parameters that were passed in the original request. This
is a fix to that issue.
2015-04-16 17:57:45 -04:00
derekwaynecarr
ea0ddd4a0a
Fix quota status not updating with change in spec
2015-04-16 17:46:27 -04:00
Jeff Lowdermilk
97e4549170
Merge pull request #6680 from deads2k/deads-change-kubeconfig-chain
...
change kubeconfig loading chain
2015-04-16 13:57:31 -07:00
Eric Tune
e300bf3e13
Merge pull request #6922 from fabianofranz/fix_config_dir_creation
...
Create complete parent dir structure when saving config to file
2015-04-16 13:40:32 -07:00
Alex Robinson
391e079cf6
Merge pull request #6917 from thockin/dockerfile-images-are-dead
...
Stop using dockerfile/* images
2015-04-16 13:30:50 -07:00
Tim Hockin
c2bacd588d
Stop using dockerfile/* images
...
As per
http://blog.docker.com/2015/03/updates-available-to-popular-repos-update-your-images/
docker has stopped answering dockerfile/redis and dockerfile/nginx. Fix all
users in our tree. Sadly this means a lot of published examples are now broken.
2015-04-16 12:20:43 -07:00
Dawn Chen
fa4363d493
Merge pull request #6924 from yujuhong/data_race
...
Fix data race in kubelet_test.go
2015-04-16 11:56:40 -07:00
Quinton Hoole
31dc4851ef
Merge pull request #6870 from a-robinson/client
...
Make client service requests use the default timeout now that external load balancers are created asynchronously
2015-04-16 11:41:05 -07:00
Yu-Ju Hong
2fd87597a4
Fix data race in kubelet_test.go
...
Ensure that FakeDockerClient make a copy of the internal list and return it.
2015-04-16 11:36:10 -07:00
fabianofranz
f71aa6ad38
Create complete parent dir structure when saving config to file
2015-04-16 14:17:54 -03:00
derekwaynecarr
81dcd8c836
Improve error message when name is omitted but generateName is available
2015-04-16 13:06:19 -04:00
deads2k
de4be5422c
change kubeconfig loading order
2015-04-16 13:05:09 -04:00
Cesar Wong
d672363387
Pod proxy, exec and portforward subresources
...
Makes it possible to access the following subresources:
/namespaces/<ns>/pods/<pod-name>[:port]/proxy
/namespaces/<ns>/pods/<pod-name>/exec?container=<container>&command=<cmd>
/namespaces/<ns>/pods/<pod-name>/portforward
2015-04-16 10:20:17 -04:00
Cesar Wong
4da14e9357
Add PodExecOptions and PodProxyOptions versioned resources
...
PodExecOptions represents the URL parameters used to invoke an
exec request on a pod. PodProxyOptions contains the path parameter
passed to a proxy request.
2015-04-16 10:20:17 -04:00
Cesar Wong
49abf9133e
Add Connecter storage interface to API server
...
Connecter is a type of resource that connects a request
coming from the client to an internal request within the cluster.
It will be used for exposing a pod's proxy, exec, and portforward
endpoints.
2015-04-16 10:20:17 -04:00
Cesar Wong
a3f5dfd0e2
Move proxy html transport to utility package
...
Moves the proxy html transport that translates html links
from the proxy in apiserver to its own package under util.
2015-04-16 10:20:17 -04:00
markturansky
34924af63d
Fixed typos in comments
2015-04-16 08:52:36 -04:00
Robert Bailey
f633ac0ab5
Restrict functions and structs that aren't used outside of the
...
nodecontroller to have package private scope. This makes reasoning
about the code in this package much simpler.
2015-04-15 20:56:07 -07:00
Daniel Smith
835a87aed2
Merge pull request #6857 from wojtek-t/fix_scheduler_nodes
...
Fix listing nodes in scheduler
2015-04-15 17:05:04 -07:00
Tim Hockin
5e30997aeb
Merge pull request #6871 from ironcladlou/rolling-update-refactor
...
Use narrowly scoped interfaces for client access
2015-04-15 17:01:58 -07:00
Victor Marmol
abab9ea31f
Merge pull request #6844 from yifan-gu/cleankube
...
kubelet: Clean up computePodContainerChanges.
2015-04-15 13:53:21 -07:00
Dan Mace
bd7b719944
Make default impls private
2015-04-15 16:50:08 -04:00
Victor Marmol
24df692b48
Merge pull request #6872 from yujuhong/fix_lock
...
Fix locking issue in pod manager
2015-04-15 13:15:42 -07:00
Daniel Smith
1ea2c3ba48
Merge pull request #6754 from wojtek-t/list_with_single_element
...
Support List() with single-matchers
2015-04-15 12:43:47 -07:00
Yu-Ju Hong
967405f0bb
Fix locking issue in pod manager
2015-04-15 11:39:57 -07:00
Alex Robinson
4e7248e47b
Make client service requests use the default timeout now that external
...
load balancers are created asynchronously.
2015-04-15 18:37:53 +00:00
Dan Mace
312ccad3c1
Use narrowly scoped interfaces for client access
...
Use custom narrowly scoped interfaces for client access from the
RollingUpdater and Resizer. This allows for more flexible downstream
integration and unit testing without imposing a burden to implement
the entire client.Interface for just a handful of methods.
2015-04-15 14:28:59 -04:00
Saad Ali
6cfce2c7ee
Merge pull request #6822 from derekwaynecarr/send_events_replication_controller
...
Replication controller gives failedCreate events
2015-04-15 11:27:23 -07:00
Victor Marmol
902e1196ac
Merge pull request #6867 from pmorie/libcontainer-bug
...
Remove workaround for libcontainer Getfilecon bug
2015-04-15 11:02:46 -07:00
Eric Tune
3565a0861c
Merge pull request #6864 from liggitt/generic_405_error
...
Add a more descriptive message for 405 errors
2015-04-15 10:59:17 -07:00
Quinton Hoole
7d9adad916
Merge pull request #6724 from nikhiljindal/beta1
...
Updating test/integration to use testapi.Version everywhere
2015-04-15 10:58:25 -07:00
Dawn Chen
d912398d07
Merge pull request #6813 from vmarmol/in-container
...
Run Kubelet and Kube-proxy in resource-only containers.
2015-04-15 10:37:00 -07:00
Paul Morie
68f22a40f3
Remove workaround for libcontainer Getfilecon bug
...
https://github.com/docker/libcontainer/issues/499 has been fixed
2015-04-15 13:29:20 -04:00
Brian Grant
775787bb4c
Merge pull request #6849 from nikhiljindal/validation
...
Updating api/validation/schema_test to test testapi.Version rather than just v1beta1
2015-04-15 10:25:54 -07:00
Yifan Gu
3b28c6262b
kubelet: Clean up computePodContainerChanges.
...
More `continue`, less `else` to make it less indent and more readable.
2015-04-15 10:13:57 -07:00
Jordan Liggitt
dde8c7156b
Add a more descriptive message for 405 errors
2015-04-15 11:28:12 -04:00
Wojciech Tyczynski
afb94c43b1
Fix listing nodes in scheduler
2015-04-15 14:26:25 +02:00
Wojciech Tyczynski
6feaf8ee4f
Support List() single-matchers
2015-04-15 12:10:43 +02:00
nikhiljindal
8874ef9c06
Updating test/integration to use testapi.Version everywhere
2015-04-15 00:00:17 -07:00
nikhiljindal
40842e4471
Updating api/validation/schema_test to test testapi.Version rather than just v1beta1
2015-04-14 23:51:49 -07:00
Wojciech Tyczynski
d7a1965fd9
Merge pull request #6746 from davidopp/master
...
Clarify comments describing how GuaranteedUpdate() (previously AtomicUpd...
2015-04-15 08:13:44 +02:00
Quinton Hoole
cd6daae014
Merge pull request #6271 from a-robinson/asynclb
...
Manage load balancer creation and deletion asynchronously in a ServiceController
2015-04-14 17:50:07 -07:00
Alex Robinson
fc08a0a71b
Do service creation/update/deletion work in a pool of goroutines, protecting
...
each service with a lock to ensure that no two goroutines will process a
service at the same time. This is needed to avoid weird race conditions.
2015-04-15 00:30:18 +00:00
Dawn Chen
a249a5bec8
Merge pull request #6792 from eparis/bash-3-kubectl-filename-json-yaml
...
bash_completions: Generic function for --filename arguments
2015-04-14 16:04:19 -07:00
Victor Marmol
54406a5b7c
Merge pull request #6794 from yujuhong/restart_counts
...
Kubelet: persist restart count of a container
2015-04-14 16:01:49 -07:00
Eric Paris
f272e836e0
Annotate kubectl describe with describable object for bash completions
2015-04-14 18:51:18 -04:00
David Oppenheimer
6b28a69a1b
Clarify comments describing how GuaranteedUpdate() (previously AtomicUpdate() works. Closes #6626 .
2015-04-14 15:38:15 -07:00
Eric Paris
de3864a1c2
bash_completions: Generic function for --filename arguments
...
This generic function adds --filename= arguments to commands, and does
the magic so they get bash completions to find json, yaml, or yml files.
2015-04-14 18:25:52 -04:00
Yu-Ju Hong
fd34441d2d
Kubelet: persist restart count of a container
...
Currently, restart count are generated by examine dead docker containers, which
are subject to background garbage collection. Therefore, the restart count is
capped at 5 and can decrement if GC happens.
This change leverages the container statuses recorded in the pod status as a
reference point. If a container finished after the last observation, restart
count is incremented on top of the last observed count. If container is created
after last observation, but GC'd before the current observation time, kubelet
would not be aware of the existence of such a container, and would not increase
the restart count accordingly. However, the chance of this should be low, given
that pod statuses are reported frequently. Also, the restart cound would still
be increasing monotonically (with the exception of container insepct error).
2015-04-14 15:06:42 -07:00
Jeff Lowdermilk
037407f49e
Merge pull request #6791 from eparis/bash-2-kubectl-get-resources
...
bash_completions: annotate kubectl get with resources
2015-04-14 15:02:34 -07:00
Daniel Smith
98e61e252d
Merge pull request #6736 from smarterclayton/conserve_copiers
...
Reuse gob.Encoder and Decoder in DeepCopy
2015-04-14 14:33:40 -07:00
Clayton Coleman
0e9ddadc71
Merge pull request #6825 from lavalamp/fix2
...
fix fake controller source watch behavior
2015-04-14 17:33:26 -04:00
Daniel Smith
3fdfea3ad8
fix fake controller source watch behavior
2015-04-14 13:31:35 -07:00
markturansky
d904e747e3
PVClaim volume plugin
2015-04-14 16:21:29 -04:00
derekwaynecarr
986c225311
Replication controller gives failedCreate events
2015-04-14 15:42:49 -04:00
Alex Robinson
9a351e3670
Move validation of load balancers only supporting TCP ports to validation.go.
2015-04-14 18:56:51 +00:00
Dawn Chen
f471ca8e0c
Merge pull request #6809 from markturansky/pv_union
...
Refactor Volumes to use InternalVolume instead of API types
2015-04-14 11:56:49 -07:00
Alex Robinson
2b14fc1d14
Remove the cloud provider field from the services REST handler and the master
...
now that load balancers are handled by the ServiceController.
2015-04-14 18:56:47 +00:00
Alex Robinson
ccc300289f
Implement a ServiceController that watches services and handles keeping
...
external load balancers up-to-date based on the service's specs, using
the new DeltaFIFO watch queue class. Remove the old registry REST
handler code for creating/updating/deleting load balancers.
Also clean up a bunch of the GCE cloudprovider code related to load balancers.
2015-04-14 18:56:24 +00:00
Jeff Lowdermilk
4f552053f1
Merge pull request #6789 from eparis/bash-custom-functions
...
Add bash completion custom functions
2015-04-14 11:54:22 -07:00
Alex Robinson
a11106edd3
Put the node controller in its own package rather than in the generic
...
cloudprovider/controller package.
2015-04-14 18:34:59 +00:00
markturansky
e1481fb9c2
Refactored Volume plugins to use InternalVolume instead of API types
2015-04-14 14:25:01 -04:00
Dawn Chen
f7ae442a02
Merge pull request #6811 from markturansky/typos
...
Fix spelling typo in comments
2015-04-14 10:30:39 -07:00
Victor Marmol
fb3c351fe1
Run Kubelet on "/kubelet" container.
2015-04-14 10:29:05 -07:00
Victor Marmol
8fc3d8f7b6
Adding utility for creating resource containers.
...
Allows creating and running in resource-only containers.
2015-04-14 10:29:05 -07:00
markturansky
f599aecc6a
Fix spelling typo in comments
2015-04-14 12:46:29 -04:00
Victor Marmol
ca9e209ccb
Merge pull request #6795 from yifan-gu/cache
...
kubelet/container: Replace DockerCache with RuntimeCache.
2015-04-14 09:37:34 -07:00
Dawn Chen
8420abeea8
Merge pull request #6786 from yifan-gu/cleankube
...
kubelet: Remove unused docker functions.
2015-04-14 09:16:53 -07:00
Derek Carr
9b6ba23622
Merge pull request #6761 from deads2k/deads-kubeconfig-squash
...
add flattening and minifying options to config view
2015-04-14 11:45:39 -04:00
Victor Marmol
e265f2c58d
Merge pull request #6799 from xiang90/kerr
...
pkg/kubelet: fix error msg in GetHostIP
2015-04-14 08:40:34 -07:00
Victor Marmol
f59a9ca5f0
Merge pull request #6608 from yifan-gu/infra_changed
...
kubelet: Introduce PodInfraContainerChanged().
2015-04-14 08:23:17 -07:00
deads2k
bac5cbbe82
add flattening and minifying options to config view
2015-04-14 10:23:10 -04:00
Xiang Li
4a152290f4
pkg/kubelet: fix error msg in GetHostIP
2015-04-13 22:44:23 -07:00
Jordan Liggitt
8faf02ba58
Make secrets client honor namespace
2015-04-13 21:17:09 -04:00
Yifan Gu
e1feed9a8b
kubelet/container: Replace DockerCache with RuntimeCache.
2015-04-13 18:16:05 -07:00
Daniel Smith
d02139d2b4
Merge pull request #6771 from derekwaynecarr/ns_controller
...
Remove delay when deleting namespaces, move to new controller framework
2015-04-13 17:55:13 -07:00
Yifan Gu
a5e6bea9b5
kubelet/container: Update the cache interface.
2015-04-13 17:38:18 -07:00
Yifan Gu
7fedb14c27
kubelet: Remove unused docker functions.
...
Remove kubelet.getPodInfraContainer().
Remove dockertools.RemoveContainerWithID().
Remove dockertools.FindContainersByPod().
Also replace the useless test with a test for GetPods().
2015-04-13 16:32:18 -07:00
Yifan Gu
4cdb1bf9ce
kubelet: Introduce PodInfraContainerChanged().
...
Update tests.
2015-04-13 16:18:52 -07:00
Yifan Gu
d14cb8f1dd
kubelet: Introduce PodInfraContainerChanged().
...
This functions computes in ahead whether we need to restart the pod
infra container.
2015-04-13 16:18:52 -07:00
Victor Marmol
26f8bc1a68
Merge pull request #6776 from yifan-gu/puller
...
kubelet/dockertools: Add puller interfaces in the containerManager.
2015-04-13 16:17:43 -07:00
Eric Paris
c75ecbd8e3
bash_completions: annotate kubectl get with resources which can be 'gotten'
...
A user types:
kubectl get $resource
This will cause the bash completions to suggest the possible objects the
user can ask for. The complete list right now is:
endpoints
event
limitrange
namespace
node
persistentvolume
persistentvolumeclaim
pod
replicationcontroller
resourcequota
secret
service
status
But this list should stay up2date as api objects are added or deleted
2015-04-13 19:11:26 -04:00
Fabio Yeon
e99141de0d
Merge pull request #6729 from smarterclayton/chaosclient
...
Add a new Chaos transport that can simulate network failure and add it to the kubelet
2015-04-13 16:06:53 -07:00
Dawn Chen
da481aacd7
Merge pull request #6784 from lavalamp/fix
...
fix tests flaky due to timeouts
2015-04-13 16:05:22 -07:00
Dawn Chen
fb25f9e12c
Merge pull request #6768 from deads2k/deads-allow-flag-elimination
...
allow selective removal of kubeconfig override flags
2015-04-13 16:00:23 -07:00
Eric Paris
f6878aed3c
Add bash completion custom functions
...
These functions call out to kubectl to get information about running
resources. They give us completions which are kubernetes aware and thus
obviously better than just cobra subcommands and flags.
2015-04-13 18:49:28 -04:00
Dawn Chen
a8d028d054
Merge pull request #6780 from ddysher/remove-kubelet-client
...
Remove kubelet dependency on nodecontroller
2015-04-13 15:47:14 -07:00
Yifan Gu
dda600e45c
kubelet/dockertools: Add puller interfaces in the containerManager.
2015-04-13 15:34:22 -07:00
Clayton Coleman
ca335d7be9
Add support for chaos to Kubelet and hack/local-up-cluster.sh
2015-04-13 18:21:20 -04:00
Daniel Smith
1ec6b02e99
fix tests flaky due to timeouts
2015-04-13 15:16:59 -07:00
Dawn Chen
a0fa592b80
Merge pull request #6778 from yifan-gu/getpods
...
kubelet/dockertool: Move Getpods() to DockerManager.
2015-04-13 14:50:52 -07:00
Robert Bailey
efdd58b737
Kubernetes version v0.15.0-dev
2015-04-13 14:08:50 -07:00
Robert Bailey
831f3e60d7
Kubernetes version v0.15.0
2015-04-13 14:08:45 -07:00
Yifan Gu
a3675e08f2
kubelet/dockertool: Move Getpods() to DockerManager.
2015-04-13 14:05:22 -07:00
Deyuan Deng
236db3c252
Remove kubelet dependency on nodecontroller
2015-04-13 16:59:45 -04:00
derekwaynecarr
c1a3fa0dae
Remove delay when deleting namespaces, move to new controller framework
2015-04-13 15:18:22 -04:00
Tim Hockin
f318da8344
Merge pull request #6379 from pmorie/rootcontext
...
Skeletal security context to facilitate tmpfs mount
2015-04-13 12:01:11 -07:00
Nikhil Jindal
60f0c28fd4
Merge pull request #6725 from smarterclayton/support_subpath_on_getter_with_options
...
Allow subpath on GET for GetterWithOptions
2015-04-13 11:27:41 -07:00
Vish Kannan
810ad7116d
Merge pull request #6763 from swagiaal/improve-gce-pd-test
...
GCE PD Test: Add explicit check for attach and detach calls
2015-04-13 10:55:10 -07:00
Tim Hockin
96bcb56f10
Merge pull request #6737 from xiang90/p_tcp
...
pkg/proxy: a more reliable way to detect a closed proxy
2015-04-13 10:54:45 -07:00
Clayton Coleman
0c8a358de0
Merge pull request #6683 from deads2k/deads-handle-subresources
...
add support for authorizing subresources
2015-04-13 13:53:54 -04:00
Clayton Coleman
f95cc2b8f2
Reuse gob.Encoder and Decoder in DeepCopy
2015-04-13 13:52:38 -04:00
Dawn Chen
17bfa6f5d7
Merge pull request #6717 from lavalamp/fix
...
Fix comments; switch to watching nodes
2015-04-13 10:28:23 -07:00
deads2k
e7baa94404
allow selective removal of kubeconfig override flags
2015-04-13 13:14:23 -04:00
Xiang Li
7e36a88068
pkg/proxy: a more reliable way to detect a closed proxy
2015-04-13 10:11:22 -07:00
Dawn Chen
aa804ffb45
Merge pull request #6723 from kargakis/remove-deprecated-call
...
Remove deprecated call to ResourceFromArgs
2015-04-13 10:09:01 -07:00
Paul Morie
c98e89fca0
Set rootcontext of emptyDir tmpfs mounts correctly
2015-04-13 12:50:36 -04:00
Paul Morie
042ac3d800
Fix build (kubelet/util.go)
2015-04-13 12:29:36 -04:00
Victor Marmol
ab68bcb97f
Merge pull request #6733 from xiang90/kub_cap
...
pkg/kubelet: move the capabilities related code to util.go
2015-04-13 09:02:36 -07:00
Victor Marmol
4e3b4bd10e
Merge pull request #6731 from xiang90/util-kubulet
...
pkg/kubelet: kill a TODO in util.go
2015-04-13 09:01:00 -07:00
Dawn Chen
86091eea82
Merge pull request #6732 from xiang90/status_manager.go
...
pkg/kubelet: clean up status manager
2015-04-13 09:00:24 -07:00
Dawn Chen
b6ec2f971e
Merge pull request #6741 from xiang90/udp_timeout
...
proxy: lower udp timeout
2015-04-13 08:58:02 -07:00
Dawn Chen
9d7eff0dca
Merge pull request #6759 from luksa/master
...
Added missing argument
2015-04-13 08:56:20 -07:00
Sami Wagiaalla
309fd272b6
GCE PD Test: Add explicit check for attach and detach calls
...
Signed-off-by: Sami Wagiaalla <swagiaal@redhat.com>
2015-04-13 11:36:28 -04:00
markturansky
ac4d34e5d7
Added PV & PVC client tests
2015-04-13 10:10:52 -04:00
markturansky
d8c87e93dc
Adding missing UpdateStatus methods to client
2015-04-13 10:10:52 -04:00
Marko Luksa
9bfa29896b
Added missing argument
2015-04-13 15:46:27 +02:00
Wojciech Tyczynski
a531a465d1
Merge pull request #6727 from xiang90/panic_fds
...
pkg/proxy: panic if run out of fd
2015-04-13 15:11:42 +02:00
Wojciech Tyczynski
59ab41c8f7
Merge pull request #6292 from jszczepkowski/scale-pool
...
Updating target pools on cloud nodes change.
2015-04-13 10:58:49 +02:00
Xiang Li
233ec922f3
proxy: lower udp timeout
2015-04-11 23:51:08 -07:00
Xiang Li
4b29947652
pkg/proxy: panic if run out of fd
...
When proxy runs out of fd, it fills the logs with error message.
From #6716 , it is better to just panic().
2015-04-11 13:09:15 -07:00
Xiang Li
cef744ecaa
pkg/kubelet: move the capabilities related code to util.go
2015-04-11 12:09:11 -07:00
Xiang Li
d24f60b5b8
pkg/kubelet: clean up status manager
2015-04-11 11:37:07 -07:00
Xiang Li
cea38a2f4e
pkg/kubelet: kill a TODO in util.go
...
Move kubelet.CapabilitiesSetup to capabilities.Setup
2015-04-11 10:55:39 -07:00
Clayton Coleman
0146e318f5
Allow client.Config to wrap the underyling Transport
2015-04-11 13:20:48 -04:00
Clayton Coleman
66e746bade
Add a transport that can simulate random network errors
2015-04-11 13:20:48 -04:00
Clayton Coleman
0225d76b6a
Support subpath on GET for GetterWithOptions
...
Allows REST consumers to build paths like:
/api/v1beta3/namespaces/foo/webhookresource/<name>/<encodedsecretinurl>
Also fixes parameter exposure for subresources (was only fixed for
v1beta3).
2015-04-11 11:20:13 -04:00
kargakis
ae960552c8
Remove deprecated call to ResourceFromArgs
...
Continuing from #6571
2015-04-11 08:14:25 +02:00
Daniel Smith
dd26cdf0f7
Fix comments; switch to watching nodes
2015-04-10 17:49:51 -07:00
Tobi Knaup
3932dfd8bb
Log an error when update channel is closed.
2015-04-10 17:30:04 -07:00
Dawn Chen
fff6cebb5f
Merge pull request #6711 from yujuhong/container_status
...
Kubelet: surface the container creation/start failure reason
2015-04-10 17:19:32 -07:00
Daniel Smith
66d55e0959
Merge pull request #6546 from lavalamp/fix
...
Add to controller framework; use in scheduler
2015-04-10 16:20:17 -07:00
Daniel Smith
395d69641e
fix race
2015-04-10 16:02:51 -07:00
Yu-Ju Hong
bb417e82d7
Kubelet: surface the container creation/start failure reason
...
Container creation/start failure cannot be reproduced by inspecting the
containers. This change caches such errors so that kubelet can retrieve it
later.
This change also extends FakeDockerClient to support setting error response
for a specific function.
2015-04-10 16:02:27 -07:00
Dawn Chen
c19437395b
Merge pull request #6702 from ddysher/remove-nodeinfo
...
Remove nodeinfo endpoint from kubelet
2015-04-10 14:54:16 -07:00
Dawn Chen
cf357dfa21
Merge pull request #6701 from dchen1107/podstatus
...
Fix a small regression on api server proxy after switch to v1beta3.
2015-04-10 14:22:54 -07:00
Daniel Smith
6835318d1e
switch to require 'go controller.Run()'
2015-04-10 14:05:08 -07:00
Daniel Smith
5f7715f0e9
Make scheduler not miss deletion events even in the case of a resync.
2015-04-10 14:05:08 -07:00
Daniel Smith
880f922bb6
Add easy setup for simple controller
...
Also add tests; coverage up to 86.7%
2015-04-10 14:05:07 -07:00
Tim Hockin
b67bb85a2d
Merge pull request #6435 from lavalamp/fix4
...
Add DeepCopy! Also-- optimize conversion for []byte
2015-04-10 13:53:45 -07:00
Tim Hockin
4a7b0eecbb
Merge pull request #5138 from justinsb/cloud_pd
...
AWS EBS volume support
2015-04-10 13:47:03 -07:00
Dawn Chen
c1e13b3431
Fix a small regression on api server proxy after switch to v1beta3.
2015-04-10 13:42:46 -07:00
Daniel Smith
1a2e4f8e1d
Merge pull request #6616 from brendandburns/default
...
Default replica controller selector and labels using pod template.
2015-04-10 13:33:43 -07:00
Daniel Smith
f591873af7
Add DeepCopy! Also-- optimize conversion for []byte
2015-04-10 13:26:46 -07:00
Justin Santa Barbara
7626914344
Rename aws_pd.go -> aws_ebs.go, aws_pd_test.go -> aws_ebs_test.go
2015-04-10 13:25:44 -07:00
Justin Santa Barbara
9462471bcd
Fix some mistaken volumeId -> volumeID changes
2015-04-10 13:25:44 -07:00
Justin Santa Barbara
503e19e58c
Rename aws_pd -> aws_ebs
2015-04-10 13:25:44 -07:00
Justin Santa Barbara
933cf60af7
Style: volumeId -> volumeID
2015-04-10 13:25:44 -07:00
Justin Santa Barbara
98c9ebbc50
Style: Aws -> AWS
2015-04-10 13:25:44 -07:00
Justin Santa Barbara
2afc1840b6
Style: awsId -> awsID
2015-04-10 13:25:44 -07:00
Justin Santa Barbara
46f9c2cc3c
Style: Ebs -> EBS
2015-04-10 13:25:44 -07:00
Justin Santa Barbara
7e758fe441
Grammar fix: s/a AWS/an AWS/g
2015-04-10 13:25:43 -07:00
Justin Santa Barbara
5a887e83e7
Remove now-unused instanceId parameter from newAwsCloud
2015-04-10 13:25:43 -07:00
Justin Santa Barbara
4e176771b6
Make fetching the aws instance id optional, so we can use it on e2e
2015-04-10 13:25:43 -07:00
Justin Santa Barbara
c7c969564a
Add missing conversion for v1beta2
2015-04-10 13:25:43 -07:00
Justin Santa Barbara
a20484b5ed
Apply latest changes from copy-and-pasted gce_pd
2015-04-10 13:25:43 -07:00
Justin Santa Barbara
9711e771c5
Rename AWSPersistentDisk -> AWSElasticBlockStore, aws-pd -> aws-ebs
...
Per comments from @markturansky - thanks!
2015-04-10 13:25:43 -07:00
Justin Santa Barbara
b3666ed08c
Add AWSPersistentDisk to fuzzer
2015-04-10 13:25:43 -07:00
Justin Santa Barbara
2e91fdd2fd
Fixup merge mistakes
2015-04-10 13:25:43 -07:00
Justin Santa Barbara
95b68ae0b0
Rename pdName -> volumeId for AWS persistent volumes
2015-04-10 13:25:43 -07:00
Justin Santa Barbara
aa6051026e
Add comment about EBS status being a bit slow through API
2015-04-10 13:25:43 -07:00
Justin Santa Barbara
0101bf2081
Fix detached-check logic, warn on multiple attachments
2015-04-10 13:25:43 -07:00
Justin Santa Barbara
3689bf0298
Fix pd name parse
2015-04-10 13:25:43 -07:00
Justin Santa Barbara
21beabd0a7
Default attachment status to detached
...
So no-attachments = status detached
2015-04-10 13:25:43 -07:00
Justin Santa Barbara
cdc569a6c8
Parse the pdName from the volume mount
...
Don't assume there are no slashes!
2015-04-10 13:25:43 -07:00
Justin Santa Barbara
f0cedd7375
More logging around error causes
...
Come back exceptions, all is forgiven!
2015-04-10 13:25:43 -07:00
Justin Santa Barbara
3549b30c8e
Add missing import
2015-04-10 13:25:42 -07:00
Justin Santa Barbara
6c823dbdab
Small clean-ups
2015-04-10 13:25:42 -07:00
Justin Santa Barbara
f2184e0860
Fix comment
2015-04-10 13:25:42 -07:00
Justin Santa Barbara
ee72fa4d61
Tolerate volume being already-attached
2015-04-10 13:25:42 -07:00
Justin Santa Barbara
86ddc0f96a
Fix mountpoint values
2015-04-10 13:25:42 -07:00
Justin Santa Barbara
e56e2ee46a
Strip leading slash from url path when parsing aws volume
2015-04-10 13:25:42 -07:00
Justin Santa Barbara
743f2edb56
Fix tests
2015-04-10 13:25:42 -07:00
Justin Santa Barbara
89089900d7
Fix merge problems
2015-04-10 13:25:42 -07:00
Justin Santa Barbara
2812936d34
Simplify logic of pd.go
2015-04-10 13:25:42 -07:00
Justin Santa Barbara
6a4153fc0a
Always create volumes in the active k8s zone
2015-04-10 13:25:42 -07:00
Justin Santa Barbara
ffadd5533a
Fix AWS region vs zone
...
We were specifying a region, but naming it as a zone in util.sh
The zone matters just as much as the region, e.g. for EBS volumes.
We also change the config to require a Zone, not a Region.
But we fallback to get the information from the metadata service.
2015-04-10 13:25:42 -07:00
Justin Santa Barbara
8fde691aa7
Fix tests
2015-04-10 13:25:42 -07:00
Justin Santa Barbara
edf0292d4a
Add initial support for Volumes to AWS
2015-04-10 13:25:42 -07:00
Daniel Smith
2bd95d4290
Merge pull request #6150 from HaiyangDING/bru
...
Implement Balanced Resource Allocation (BRA) algorithm as a PriorityFunction in scheduler package.
2015-04-10 12:48:27 -07:00
Deyuan Deng
868e05ce96
Remove nodeinfo endpoint from kubelet
2015-04-10 15:47:32 -04:00
deads2k
c17ffb7c4c
comments 1: comments
2015-04-10 15:39:20 -04:00
Daniel Smith
8dfd7001f5
Merge pull request #6671 from smarterclayton/ensure_body_is_closed
...
Reorganized Request.DoRaw() to guarantee streams are closed
2015-04-10 11:46:42 -07:00
Daniel Smith
c6abb5b047
Merge pull request #6686 from derekwaynecarr/terminate_must_have_deletion_timestamp
...
Improve validation and fix not throwing an error during ns delete
2015-04-10 10:56:09 -07:00
Tim Hockin
e4602eb68e
Merge pull request #6663 from justinsb/cleanup_service_ip
...
Use defer to cleanup allocated service ip in case of error
2015-04-10 10:43:56 -07:00
Daniel Smith
e2093798cb
Merge pull request #6675 from wojtek-t/nodes_support_field_selector
...
FieldSelector for node List()
2015-04-10 10:30:55 -07:00
Dawn Chen
c7ca118c7a
Merge pull request #6682 from thockin/spew-keys-in-hash
...
Make DeepHashObject use SpewKeys
2015-04-10 09:58:47 -07:00
Justin Santa Barbara
e551e0cb8c
Use defer to cleanup allocated service ip in case of error
...
We're probably going to be doing a port allocation here also, so this needs some pre-simplifying.
2015-04-10 09:47:47 -07:00
deads2k
72817a0801
add support for authorizing subresources
2015-04-10 12:42:52 -04:00
Tim Hockin
c989f30a00
make DeepHashObject use SpewKeys
2015-04-10 09:38:12 -07:00
Victor Marmol
1563a7636a
Merge pull request #6652 from dchen1107/podstatus
...
Populate last terminated container information
2015-04-10 09:21:58 -07:00
Clayton Coleman
fce3e5a2bb
Merge pull request #6574 from ncdc/exec-portforward-no-command-pipes
...
Don't use command pipes for exec/port forward
2015-04-10 12:07:21 -04:00
Clayton Coleman
7ac4a22f18
Merge pull request #6613 from brendandburns/swagger
...
Add return types to PUT, POST and PATCH methods.
2015-04-10 11:50:03 -04:00
derekwaynecarr
8364055f0f
Improve validation and fix not throwing an error during ns delete
2015-04-10 11:41:28 -04:00
Jerzy Szczepkowski
1c042208c7
Added retrying update of balancers in case some of updates failed.
2015-04-10 16:06:56 +02:00
Jerzy Szczepkowski
eb253a694e
Updating target pools on cloud nodes change.
...
Implemented updating target pools for external services on chage of cloud nodes. Related to #5241 .
2015-04-10 16:06:56 +02:00
Timothy St. Clair
2b60111fca
Performance change to option enable client.QPS, client.Burst
...
and change default on max_requests_inflight.
2015-04-10 07:53:54 -05:00
Wojciech Tyczynski
88eb0b0295
FieldSelector for node List()
2015-04-10 12:53:16 +02:00
kargakis
c0ab76f539
Tighten label parsing
2015-04-10 11:36:49 +02:00
Clayton Coleman
852ef7b637
Reorganized Request.DoRaw() to guarantee streams are closed
...
Added a test to verify 429 triggers a client retry based on
header. Forced resp.Body.Close() to close after each request,
which allows Golang to reuse the TCP connection to the server
(should reduce connection establishment under retries).
Possibly fixed a server leak of request bodies.
2015-04-10 01:10:35 -04:00
Brendan Burns
fded23a777
Default replica controller nodeSelector using pod template.
...
Add default labels from pod if not present.
2015-04-09 20:50:37 -07:00
Brendan Burns
8694f6f550
Add return types to PUT, POST and PATCH methods.
...
Also add return types for proxy and redirect handlers.
2015-04-09 20:17:05 -07:00
dingh
71b2af1e0c
Implement BRA algorithm as a new priority function in scheduler
...
Balanced Resource Allocation policy can now be enabled to so that
host(s) with balanced resource usage would be preferred. The score
given by BRA also scales from 0 to 10 with 10 representing that the
resource usage is well balanced.
2015-04-10 10:53:52 +08:00
Abhishek Shah
964bc6b85d
fix compilation
2015-04-09 17:19:13 -07:00
Victor Marmol
7ce5e7bc73
Merge pull request #6661 from vishh/sys_oom
...
Updating cadvisor deps and adding events cadvisor interface to kubelet
2015-04-09 16:28:20 -07:00
Dawn Chen
563f2965ba
Populate last terminated container information
2015-04-09 16:10:13 -07:00
Vishnu Kannan
de79209970
Adding events API to cadvisor interface.
2015-04-09 16:02:34 -07:00
Daniel Smith
f16abee122
Merge pull request #6653 from yifan-gu/fix_pid_test
...
kubelet/fake_docker_client: Use self's PID instead of 42 in testing.
2015-04-09 16:01:10 -07:00
Daniel Smith
629d94657e
Merge pull request #6624 from gmarek/status_to_subresource
...
Update NodeStatus use subresources.
2015-04-09 16:00:15 -07:00
Tim Hockin
4661cedf4a
Merge pull request #5709 from gmarek/client5
...
Add validation for Endpoint
2015-04-09 15:13:45 -07:00
Jeff Lowdermilk
96076eb129
Merge pull request #6585 from deads2k/deads-config-takes-factory
...
make kubectl config behave more expectedly
2015-04-09 14:54:55 -07:00
Yifan Gu
12b382ce76
kubelet/fake_docker_client: Use self's PID instead of 42 in testing.
...
This is safer to use self's PID than some arbitrary PID (say 42),
since the kubelet will set the oom_score_adj for real.
2015-04-09 14:31:44 -07:00
David Oppenheimer
3ee42b4643
Merge pull request #6561 from piosz/events_back
...
Added events back to Node Controller
2015-04-09 13:57:23 -07:00
Daniel Smith
27c0828e50
Merge pull request #6647 from ncdc/TestServeExecInContainerIdleTimeout-flake
...
Fix TestServeExecInContainerIdleTimeout flake
2015-04-09 13:55:13 -07:00
Andy Goldstein
00e24603cb
Fix TestServeExecInContainerIdleTimeout flake
...
Remove creation of stream from TestServeExecInContainerIdleTimeout as
it's not necessary to very idle timeout.
Increase stream creation and ack timeouts to 30 seconds.
Fixes #5628
2015-04-09 16:44:56 -04:00
Daniel Smith
6667b18c7c
Merge pull request #6646 from smarterclayton/printer_should_include_apiversion
...
The versioned printer should be initialized with the mapping apiversion
2015-04-09 13:26:47 -07:00
Daniel Smith
fe2e45567d
Merge pull request #6640 from pmorie/entrypoint-serialization
...
Fix serialization for v1beta[12] container Command
2015-04-09 12:59:51 -07:00
Daniel Smith
71dd4ddc52
Merge pull request #6627 from bprashanth/watcher_cancel
...
Fix RunUntil and stop leaking watch channel on etcd error
2015-04-09 12:47:54 -07:00
Clayton Coleman
92a68ad7bf
The versioned printer should be initialized with the mapping apiversion
...
VersionedPrinter handles fallback when multiple different APIVersions
are present if multiple arguments are passed (for instance, both Kube
resources at v1beta3 and a third party's API objects which are only
at v1). The cmd PrinterForMapping should always include the current
object's "mapping version" as a fallback in the event the preferred
API version does not map to the actual object.
2015-04-09 15:45:06 -04:00
deads2k
b2e3f2185e
make kubectl config behave more expectedly
2015-04-09 15:43:57 -04:00
Paul Morie
cfb15e22d8
Fix serialization for v1beta[12] container Command
2015-04-09 15:17:00 -04:00
Prashanth Balasubramanian
5234c2dc82
Fix RunUntil and stop leaking watch channel on etcd error
2015-04-09 11:03:30 -07:00
Vish Kannan
2215a64567
Merge pull request #6571 from kargakis/describe-fix
...
describe: Support resource type/name syntax
2015-04-09 10:54:24 -07:00
Dawn Chen
554efa642c
Merge pull request #6636 from ncdc/fix-flakey-portforward-test
...
Fix flakey port forward test
2015-04-09 10:49:06 -07:00
Daniel Smith
6a86608634
Merge pull request #6625 from wojtek-t/list_minions_supports_labels
...
ListMinions support for selectors
2015-04-09 10:30:08 -07:00
Victor Marmol
40acaef454
Merge pull request #6607 from yujuhong/mirror_update
...
Kubelet: recreate mirror pod if the static pod changes
2015-04-09 10:29:55 -07:00
Daniel Smith
c72dc15e8e
Merge pull request #6614 from brendandburns/validate
...
Add Validate in addition to ValidateUpdate to validation for most resources.
2015-04-09 10:24:57 -07:00
Andy Goldstein
c07e98b7f5
Fix flakey port forward test
...
Only simulate data for the data stream, not for the error stream too.
Fixes #6529
2015-04-09 13:18:51 -04:00
Yifan Gu
b868f421e0
kubelet: Move pod infra container image setting to dockertools.
2015-04-09 09:53:07 -07:00
Jeff Lowdermilk
ca6f1a1bc7
Merge pull request #6476 from deads2k/deads-fix-kubeconfig-serialization
...
fix kubeconfig serialization
2015-04-09 09:41:26 -07:00
Wojciech Tyczynski
0e5b478b4d
ListMinions support for selectors
2015-04-09 14:22:09 +02:00
gmarek
ccc56d3c3c
Update NodeStatus use subresources.
2015-04-09 14:07:40 +02:00
Piotr Szczesniak
c1dd881f48
Added events back to Node Controller
...
It reverts @davidopp temp fix #6443 .
Fixes #6199 .
2015-04-09 10:37:07 +02:00
Brendan Burns
5d4f1cf8da
Add Validate in addition to ValidateUpdate to validation for most resources.
2015-04-08 20:15:49 -07:00
Vish Kannan
b12d75d0ee
Merge pull request #6610 from markturansky/fifos_typos
...
Fixed typos in FIFO comments
2015-04-08 18:08:42 -07:00
Vish Kannan
3a3d860448
Merge pull request #6609 from yifan-gu/fix_getpodstatus
...
kubelet/DockerManager: Fix returning empty error from GetPodStatus().
2015-04-08 18:08:11 -07:00
Vish Kannan
844e375ceb
Merge pull request #6603 from nikhiljindal/encoder
...
Removing some references to v1beta1 from test code
2015-04-08 18:06:32 -07:00
Yu-Ju Hong
d7cf294c99
Kubelet: recreate mirror pod if the static pod changes
...
If a static pod changes, delete the corresponding mirror pod. When kubelet
could not see mirror pod from the API server update, it'd attemp to create a
new mirror pod with up-to-date specs.
2015-04-08 18:06:21 -07:00
markturansky
e5f280b79e
fixed typos
2015-04-08 21:00:48 -04:00
Yifan Gu
d4513c2890
kubelet/DockerManager: Fix returning empty error from GetPodStatus().
2015-04-08 17:55:30 -07:00
nikhiljindal
08d9e244f7
Removing some references to v1beta1 from test code
2015-04-08 17:28:06 -07:00
Daniel Smith
43ec88fda5
Merge pull request #6179 from bprashanth/ts_ttl_scheduler
...
Modeler uses a ttl store for assumed pods
2015-04-08 15:25:05 -07:00
Clayton Coleman
4a31da0808
Merge pull request #6579 from deads2k/deads-fix-stream
...
make .Stream handle error status codes
2015-04-08 18:21:06 -04:00
Prashanth Balasubramanian
a7864aa230
Scheduler uses TTLStore for assumed pods
2015-04-08 15:01:04 -07:00
Vish Kannan
43949b41d4
Merge pull request #6586 from dchen1107/podstatus
...
small cleanup by removing useless generatePodStatus
2015-04-08 14:59:23 -07:00
Vish Kannan
094cbcc6fe
Merge pull request #6074 from derekwaynecarr/reflector_last_sync_resource_version
...
Expose last sync resource version on reflector
2015-04-08 14:56:33 -07:00
Tobi Knaup
3efff6d4e8
kubelet syncloop should stop if/when updates chan closes
2015-04-08 14:45:16 -07:00
Dawn Chen
914616a195
Merge pull request #6592 from vishh/kubelet_logging
...
Improve kubelet logging around startup.
2015-04-08 14:35:53 -07:00
David Oppenheimer
4ffc2aad21
Merge pull request #6146 from kazegusuri/node_client_label
...
List in NodesInterface takes label selector
2015-04-08 14:22:53 -07:00
derekwaynecarr
9df41301f0
Expose last sync resource version
2015-04-08 17:09:06 -04:00
Vishnu Kannan
2b5cad6acf
Improve kubelet logging around startup. This might help detect any lockup issues during startup.
2015-04-08 21:02:15 +00:00
Brian Grant
c4cbc9bc46
Merge pull request #6581 from nikhiljindal/v1beta3
...
Moving v1beta1 kubectl examples to v1beta3
2015-04-08 14:01:57 -07:00
Dawn Chen
b6d846aea5
small cleanup by removing useless generatePodStatus
2015-04-08 13:38:06 -07:00
nikhiljindal
fe60be3179
Moving v1beta1 kubectl examples to v1beta3
2015-04-08 13:08:13 -07:00
gmarek
c20efb6bae
Add validation for Endpoints
2015-04-08 20:12:07 +02:00
deads2k
dbda3f7303
make .Stream handle error status codes
2015-04-08 13:52:16 -04:00
Andy Goldstein
4c1cba5312
Don't use command pipes for exec/port forward
...
Switch to passing the streams for Stdin/Stdout/Stderr instead of using
StdinPipe() etc because the pipes are incompatible with Run()/Wait().
2015-04-08 13:42:42 -04:00
Yifan Gu
4b945e7218
kubelet: Remove GetRecentDockerContainersWithNameAndUUID().
...
Add unit tests to test the restart behaviour under different
restart policy.
2015-04-08 09:44:23 -07:00
Yifan Gu
ddf323ee00
kubelet: Remove GetRecentDockerContainersWithNameAndUUID().
...
Always call GetPodStatus().
2015-04-08 09:44:23 -07:00
Yifan Gu
6103b144e0
kubelet: Remove GetRecentDockerContainersWithNameAndUUID().
...
Use the pod status to get the recent stopped containers in
shouldContainerBeRestarted().
2015-04-08 09:44:23 -07:00
Nikhil Jindal
f5c66ade0a
Merge pull request #6568 from piosz/doc_fix
...
Removed TODO comment from ContainerStatuses in PodInfo
2015-04-08 08:55:15 -07:00
Masahiro Sano
d04cc5ced4
List in NodesInterface takes label selector
2015-04-08 23:41:27 +09:00
kargakis
a8987b661a
describe: Support resource type/name syntax
...
This makes `kubectl describe` resource syntax consistent with `kubectl delete`
2015-04-08 16:03:22 +02:00
Piotr Szczesniak
007e6d9ff9
Removed TODO comment from ContainerStatuses in PodInfo
...
Fixes #6551
2015-04-08 14:39:41 +02:00
Wojciech Tyczynski
8a5c76356c
Revert "Stop the bleeding for #6059 "
...
This reverts commit 6be09c5e97
.
2015-04-08 13:29:29 +02:00
gmarek
72182735b9
Remove Node Controllers ability to pull status from Kubelet
2015-04-08 09:44:42 +02:00
Daniel Smith
c1390a0836
version field selector field names in the client
2015-04-07 16:59:57 -07:00
Rohit Jnagal
71e7079aea
Merge pull request #6543 from vishh/fix_fuzzer
...
Fix duplicate fuzz config.
2015-04-07 16:44:59 -07:00
Vishnu Kannan
f4f08c3378
Fix duplicate fuzz config.
2015-04-07 23:29:24 +00:00
Tim Hockin
f2c8decffe
Clarify network-related flags in the master
...
Rename and rejigger flags to make it more obvious what is happening. Change
the default listen from ChooseHostInterface() to 0.0.0.0.
2015-04-07 15:55:51 -07:00
Quinton Hoole
c670071e87
Revert "kubelet: Remove GetRecentDockerContainersWithNameAndUUID."
2015-04-07 14:25:10 -07:00
Clayton Coleman
bb137f0bba
Merge pull request #6534 from deads2k/deads-kubeconfig-cmd-factory
...
refactor to move kubectl.cmd.Factory to kubect/cmd/util
2015-04-07 17:02:20 -04:00
Derek Carr
6eb54e73e0
Merge pull request #5270 from lavalamp/fix7
...
Controller framework
2015-04-07 16:58:09 -04:00
David Oppenheimer
8599564c96
Merge pull request #6535 from davidopp/master
...
Change default Kubelet NodeStatusUpdateFrequency from 2s to 10s.
2015-04-07 13:37:03 -07:00
Nikhil Jindal
842b9d8d3a
Merge pull request #6493 from smarterclayton/make_client_pluggable
...
Make the client.Fake more powerful by standardizing how the fake loads data
2015-04-07 12:48:27 -07:00
David Oppenheimer
d8aa57872a
Change default Kubelet NodeStatusUpdateFrequency from 2s to 10s.
2015-04-07 12:36:09 -07:00
Victor Marmol
cb0850d7cf
Merge pull request #6527 from yujuhong/remove_unused
...
Remove unused code in kubelet/server_test.go
2015-04-07 12:30:39 -07:00
Vish Kannan
5ced09a06f
Merge pull request #6519 from markturansky/typo_fix
...
Fixed typo
2015-04-07 12:15:56 -07:00
Clayton Coleman
51db3bd654
Create a new testclient package that can be backed by disk files
...
Standardize how our fakes are used so that a test case can use a
simpler mechanism for providing large, complex data sets, as well
as represent queries over time.
2015-04-07 14:56:15 -04:00
Yu-Ju Hong
d6b4633432
Remove unused code in kubelet/server_test.go
...
The code creates a channel and a go routine waiting for update, which is never
used by any test. Remove the unused code.
2015-04-07 11:55:19 -07:00
deads2k
6344cf3c3a
refactor to move kubectl.cmd.Factory to kubect/cmd/util
2015-04-07 14:43:50 -04:00
David Oppenheimer
402bf60366
Merge pull request #6214 from gmarek/move_consts_to_flags
...
Move NodeController constants to flags
2015-04-07 11:31:11 -07:00
Victor Marmol
ef3cdb2f18
Merge pull request #6491 from yifan-gu/depreciate_getkubeletdockercontainers
...
kubelet: Refactor RunInContainer/ExecInContainer/PortForward.
2015-04-07 11:00:16 -07:00
markturansky
8f24fbc40c
fixed typo
2015-04-07 12:38:09 -04:00
Vish Kannan
c1ef9be261
Merge pull request #6174 from rootfs/wip-gluster
...
implement glusterfs volume plugin
2015-04-07 09:21:33 -07:00
Clayton Coleman
31b7f75c60
Merge pull request #6516 from ncdc/fix-exec-portforward-proxy-resource
...
Fix exec/portforward minions->nodes
2015-04-07 11:47:46 -04:00
Derek Carr
27c12d5160
Merge pull request #6473 from markturansky/yoko_pv_client
...
Added PVClaim status subresource
2015-04-07 11:39:58 -04:00
Brian Grant
530fe89726
Merge pull request #6411 from gmarek/schedulable
...
Remove Schedulable Condition. Only Unschedulable bit from Spec will be used.
2015-04-07 08:38:30 -07:00
Brian Grant
6e93d37fb9
Merge pull request #6232 from smarterclayton/minor_fixes_to_watch_swagger
...
Improve the output of the swagger API for watch events
2015-04-07 08:33:59 -07:00
Clayton Coleman
7ebceafee9
Merge pull request #6515 from you-n-g/master
...
RunCreate don't need the cmd arg any more
2015-04-07 11:10:08 -04:00
gmarek
ef56dca6b6
Remove ConditionSchedulable
2015-04-07 17:01:07 +02:00
Clayton Coleman
7a6b2ec227
Improve the output of the swagger API for watch events
...
Stopgap to improve this prior to converting watch resources to
versioned objects.
2015-04-07 10:46:19 -04:00
Andy Goldstein
1c92133b77
Fix exec/portforward minions->nodes
...
Exec and port forward weren't working with v1beta3 because they were
proxying minions. Change minions to nodes. This appears to work with
v1beta1 and v1beta2 as well.
2015-04-07 09:48:46 -04:00
Young
ad3712d07c
RunCreate don't need the cmd arg any more
2015-04-07 21:39:48 +08:00
Huamin Chen
a278ceeb0a
implement glusterfs volume plugin
...
Signed-off-by: Huamin Chen <hchen@redhat.com>
2015-04-07 09:14:39 -04:00
deads2k
06c9dbd32f
add example for default view serialization
2015-04-07 08:07:24 -04:00
deads2k
5c4b6583e4
fix kubectl config view to respect serialization formats
2015-04-07 08:07:24 -04:00
Cesar Wong
8df4758ee9
Pod log subresource
...
Adds a Log subresource to Pod storage. The Log subresource implements
rest.GetterWithOptions and produces a ResourceStreamer resource that
will stream the log output from the pod's host node.
2015-04-07 07:56:24 -04:00
Cesar Wong
efc7f86baf
Add GetterWithOptions and allow stream flushing
...
In addition to Getter interface, API Installer now supports a
GetterWithOptions interface that takes an additional options object when
getting a resource. A flag is now returned from rest.ResourceStreamer
that indicates whether the streamed response should be
flushed when written back to the client. This is to support log
streaming.
2015-04-07 07:46:30 -04:00
Cesar Wong
6dba6aa178
Add PodLogOptions versioned resource
...
PodLogOptions will capture options passed in to retrieve a pod's log.
2015-04-07 07:46:30 -04:00
Cesar Wong
e64d7337b3
Move flushwriter from Kubelet server to a common util package
...
Exposes a Wrap function to wrap a given writer into a writer that
flushes with every write if the writer also implements the io.Flusher
interface.
2015-04-07 07:46:30 -04:00
Cesar Wong
58a1b308c1
Refactor storage return for pod etcd storage
...
Convert the return value of pods rest.NewStorage to a struct.
This will allow returning more storage objects for a pod (sub resources)
without awkwardly adding more return values.
2015-04-07 07:46:30 -04:00
gmarek
321a81047c
Move NodeController constants to flags
2015-04-07 12:33:03 +02:00
gmarek
751d1d25ff
Add timestamp cache to NodeController
2015-04-07 09:15:35 +02:00
Rohit Jnagal
0400339d01
Merge pull request #6494 from lavalamp/fix2
...
compute query parameter names in the client.
2015-04-06 18:44:45 -07:00
Yifan Gu
ba1ad9fad2
kubelet: Refactor RunInContainer/ExecInContainer/PortForward.
...
Replace GetKubeletDockerContainers() with findContainer().
2015-04-06 17:14:46 -07:00
Daniel Smith
44bc29631e
compute query parameter names in the client.
2015-04-06 16:54:26 -07:00
Vish Kannan
be0feddfa5
Merge pull request #5506 from rootfs/dev
...
add iscsi volume plugin
2015-04-06 15:11:44 -07:00
Rohit Jnagal
f2f3da15e1
Merge pull request #6370 from justinsb/aws_config_optional
...
Make AWS configuration file optional (fall-back to metadata service)
2015-04-06 14:29:28 -07:00
Rohit Jnagal
55fe466aca
Merge pull request #6468 from derekwaynecarr/improve_test
...
Improve test case to ensure finalize does desired behavior
2015-04-06 14:27:40 -07:00
Victor Marmol
7716804a0d
Merge pull request #6470 from yifan-gu/get_recent
...
kubelet: Remove GetRecentDockerContainersWithNameAndUUID.
2015-04-06 14:25:59 -07:00
Victor Marmol
3facc53cee
Merge pull request #4842 from jdef/kubelet_bootstrap
...
allow for more easily customized kubelet creation and initialization
2015-04-06 14:20:44 -07:00
Rohit Jnagal
0e10b2a842
Merge pull request #6434 from alml/silent-watcher-close
...
Ignore errors after StreamWatcher is closed
2015-04-06 13:52:11 -07:00
Rohit Jnagal
dbbfac3b54
Merge pull request #6479 from TamerTas/refactor
...
Refactor kubectl/cmd/config/getConfigFromFileOrDie
2015-04-06 13:43:44 -07:00
Huamin Chen
7a82af31de
add iscsi volume plugin
...
Signed-off-by: Huamin Chen <hchen@redhat.com>
2015-04-06 16:20:28 -04:00
Brendan Burns
afa0100e27
Copy labels from the service to endpoints that we create.
2015-04-06 13:14:54 -07:00
Tamer Tas
6d84838c0f
Refactor kubectl/cmd/config/getConfigFromFileOrDie
2015-04-06 22:50:07 +03:00
Yifan Gu
a8c02412b2
kubelet: Remove GetRecentDockerContainersWithNameAndUUID().
...
Use the pod status to get the recent stopped containers in
shouldContainerBeRestarted().
2015-04-06 12:43:49 -07:00
Brian Grant
9d9948e3a8
Change "time/Time" to "util.Time", which is what we use in our API for time.
2015-04-06 18:56:56 +00:00
James DeFelice
d194af6b4f
allow for more easily customized kubelet creation and initialization
2015-04-06 18:51:42 +00:00
markturansky
4e528a847a
added PVClaim status subresource
2015-04-06 14:42:22 -04:00
derekwaynecarr
b1dca3232f
Improve test case to ensure finalize does desired behavior
2015-04-06 13:13:06 -04:00
Daniel Smith
ebb982878f
Merge pull request #6442 from yujuhong/node_watch
...
Fix the kubelet node watch
2015-04-06 09:59:57 -07:00
Rohit Jnagal
bfde7e0735
Merge pull request #6429 from lavalamp/fix
...
Oops, let's be careful about licensing.
2015-04-06 09:20:18 -07:00
Rohit Jnagal
fe735d33ac
Merge pull request #6441 from smarterclayton/hide_already_exists_error
...
Do not log "event already exists" errors
2015-04-06 08:59:46 -07:00
markturansky
ff86ae0705
Fixed RESTCreate/Update interface methods
2015-04-06 08:46:44 -04:00
markturansky
69d1d235cd
Rebased and updated
2015-04-06 08:46:44 -04:00
markturansky
a5ebacb043
changed claimed validation from length check to specific storage check
2015-04-06 08:46:44 -04:00
markturansky
c4a53a23bd
Added validation to prevent mutating Claim.Spec after binding
2015-04-06 08:46:44 -04:00
markturansky
95bd170ca2
PV & PVC Client implementation
2015-04-06 08:46:43 -04:00
David Oppenheimer
c048e6fcbf
Merge pull request #6443 from davidopp/master
...
Remove use of events from NodeController, to temporarily fix #6199
2015-04-04 12:13:48 -07:00
David Oppenheimer
c4a595aa7f
Remove use of events from NodeController, to temporarily fix #6199
2015-04-04 11:56:43 -07:00
Yu-Ju Hong
0e1bd18b3e
Fix the kubelet node watch
2015-04-04 09:59:39 -07:00
Clayton Coleman
aee73d6729
Do not log "event already exists" errors
...
When the server rejects an event because it has already been created, log it
at a very high level (debug) instead of the default level. Duplicate events
typically only occur due to programmer error or failure conditions, so they
can safely be ignored in production environments.
2015-04-04 11:35:56 -04:00
Alexandr Lurye
952ff24f0b
Do not log net.errClosing error when StreamWatcher is stopping.
2015-04-04 05:18:32 +02:00
Yu-Ju Hong
dbd7b186a0
Merge pull request #6338 from smarterclayton/improve_config_error
...
Return a typed error for config validation, and make errors simple
2015-04-03 18:08:15 -07:00
Daniel Smith
78b8f9599f
Fix another license problem.
2015-04-03 17:06:29 -07:00
Daniel Smith
2c93080373
Fix licensing for forked code.
2015-04-03 17:06:24 -07:00
Brian Grant
b0b6418ca3
Merge pull request #6377 from nikhiljindal/kubevtl
...
Updating components to use v1beta3
2015-04-03 15:58:09 -07:00
nikhiljindal
f2b72931fc
Updating components to use v1beta3
2015-04-03 15:19:14 -07:00
Brian Grant
0d95883593
Merge pull request #6027 from ghodss/kube-patch
...
Implement Strategic Merge Patch in apiserver
2015-04-03 15:08:51 -07:00
Brian Grant
8e91097f82
Merge pull request #6423 from lavalamp/fix
...
Fix incorrect reference to name in v1beta3 API.
2015-04-03 14:45:47 -07:00
Yu-Ju Hong
ab13d64255
Merge pull request #6420 from vishh/proxy_logs
...
Updating kube-proxy logging levels to assist debugging.
2015-04-03 14:34:36 -07:00
Brendan Burns
88dbdc4a69
Merge pull request #6203 from brendandburns/qps
...
Add a QPS limiter to the kubernetes client.
2015-04-03 14:24:29 -07:00
Daniel Smith
34b399ca02
Fix incorrect reference to name in v1beta3 API.
2015-04-03 14:10:47 -07:00
Eric Tune
e49424785e
Merge pull request #6380 from roberthbailey/kubelet-ssl
...
Configure the kubelet to use HTTPS (take 2)
2015-04-03 13:43:00 -07:00
Justin Santa Barbara
b61fc222bb
Make AWS configuration file optional (fall-back to metadata service)
2015-04-03 13:42:31 -07:00
Vishnu Kannan
eb1c453a9a
Updating kube-proxy logging levels to assist debugging.
2015-04-03 20:19:52 +00:00
Daniel Smith
0c2d3ffe68
Single-key matching behavior in generic.Matcher
2015-04-03 13:11:21 -07:00
James DeFelice
4d3a9e2203
fixes #6416
2015-04-03 19:13:25 +00:00
Brendan Burns
3f98ac07c2
Add a QPS limiter to the kubernetes client.
2015-04-03 11:58:51 -07:00
Sam Ghods
2c977db1b3
Implement Strategic Merge Patch in apiserver
2015-04-03 11:51:02 -07:00
Quinton Hoole
fd966b7950
Merge pull request #6194 from quinton-hoole/2015-03-24-rollingupdate
...
Retry replication controller rolling updates on version mismatch.
2015-04-03 11:17:41 -07:00
Wojciech Tyczynski
9d432850a4
Merge pull request #6409 from fgrzadkowski/measure_client
...
Add latency metrics to REST client
2015-04-03 14:59:27 +02:00
Filip Grzadkowski
4c50767c80
Add metrics to REST client
2015-04-03 14:42:06 +02:00
Piotr Szczesniak
8bc9f5fef7
Added rate limiting to pod deletion
...
Fixes #6228
2015-04-03 06:58:59 +02:00
Prashanth Balasubramanian
5903f6ff39
Register field conversion function under the right type name
2015-04-02 18:37:28 -07:00
Quinton Hoole
40e2eae5b4
Retry replication controller rolling updates on version mismatch.
...
When kubectl does rolling updates of replication controllers, retry updates that
fail due to version mismatches (caused by concurrent updates by other clients).
These failed rolling updates were causing intermittent e2e test failures
(e.g. issue 5821)
2015-04-02 17:53:34 -07:00
Sam Ghods
ca18e86877
Make naming of kubectl subcommands consistent
2015-04-02 16:14:53 -07:00
Prashanth B
620af16892
Merge pull request #6097 from derekwaynecarr/limit_range_default_value
...
Limit range supporting a default resource limits value
2015-04-02 16:04:09 -07:00
Saad Ali
e0cbe3853b
Merge pull request #6290 from simon3z/fix-event-update
...
event: fallback to creations when update fails
2015-04-02 16:03:21 -07:00
Prashanth B
3fe4224b6c
Merge pull request #6314 from bparees/tokenbucket
...
add a blocking accept method to RateLimiter
2015-04-02 16:01:17 -07:00
Quinton Hoole
4a2000c4aa
Merge pull request #6207 from brendandburns/server
...
Add a limit to the number of in-flight requests that a server processes.
2015-04-02 15:46:54 -07:00
Daniel Smith
cc5ef8c5ad
make undelta store use go's implementatio inheritance mechanism
2015-04-02 15:31:19 -07:00
Vish Kannan
ee98731a2a
Merge pull request #6269 from ddysher/extend-mount
...
Abstract IsMountPoint and improve FakeMounter
2015-04-02 15:29:38 -07:00
Daniel Smith
8ee9ee9920
add ListKeys method to Store
2015-04-02 15:26:39 -07:00
Daniel Smith
3fe17b93cf
Begin a controller framework.
2015-04-02 15:25:58 -07:00
Dawn Chen
67c1678e7e
Merge pull request #6378 from yujuhong/docker_manager
...
RFC: Kubelet: a step towards to better encapsulation of docker functions
2015-04-02 14:22:26 -07:00
Daniel Smith
6be09c5e97
Stop the bleeding for #6059
2015-04-02 13:54:10 -07:00
Jeff Lowdermilk
96bdee8c28
Merge pull request #6312 from brendandburns/services
...
Make expose use introspection to grab the port value if possible.
2015-04-02 13:32:50 -07:00
Yu-Ju Hong
d01bc660b5
Kubelet: a step towards to better encapsulation of docker functions
...
We want to stop leaking more docker details into kubelet, and we also want to
consolidate some of the existing docker interfaces/structs. This change creates
DockerManager as the new home of some functions in dockertools/docker.go. It
also absorbs containerRunner. In addition, GetDockerPodStatus is renamed to
GetPodStatus with the entire pod passed to it so that it is simialr to the what
is defined in the container Runtime interface.
Eventually, DockerManager should implement the container Runtime interface, and
integrate DockerCache with a flag to turn on/off caching. Code in kubelet.go
should not be using docker client directly.
2015-04-02 13:26:39 -07:00
Brian Grant
414be101b6
Merge pull request #6352 from piosz/api
...
Removed PodStatus.Host
2015-04-02 13:16:24 -07:00
Brendan Burns
674efe6de8
Make expose use introspection to grab the port value if possible.
...
Also improve service printing to include public IP addresses.
2015-04-02 13:08:47 -07:00
Ben Parees
70be667cf8
add a blocking accept method to RateLimiter
2015-04-02 14:33:18 -04:00
Robert Bailey
4488ff95a2
Create an insecure (http) read-only port on the kubelet so that
...
heapster can collect metrics. Update the heapster config to
point to the non-secured port.
2015-04-02 10:45:49 -07:00
Robert Bailey
f15e34a1bf
Revert "Merge pull request #6309 from GoogleCloudPlatform/revert-6243-kubelet-ssl"
...
This reverts commit 96a0a0d618
, reversing
changes made to 2af9b54147
.
2015-04-02 10:44:37 -07:00
Victor Marmol
f8f14b1cc1
Merge pull request #6349 from wojtek-t/node_watch_fields
...
Kubelet watching only its own Node object
2015-04-02 10:20:39 -07:00
Daniel Smith
c25a1be03a
Merge pull request #6345 from thockin/equalities_bug
...
Remove dead, buggy code
2015-04-02 10:09:44 -07:00
Wojciech Tyczynski
6b08958264
Kubelet watching only its own Node
2015-04-02 18:39:59 +02:00
Brendan Burns
67003f323a
Merge pull request #6356 from deads2k/deads-parse-error
...
abac policy file parsing bug
2015-04-02 09:28:59 -07:00
Brendan Burns
fdf7ccbcfe
Merge pull request #6361 from vmarmol/describe
...
Include ContainerStatus in "describe pod".
2015-04-02 09:23:21 -07:00
Victor Marmol
657bc33500
Include ContainerStatus in "describe pod".
...
Fixes #6076 .
2015-04-02 08:51:41 -07:00
deads2k
00fc17e690
abac policy file parsing bug
2015-04-02 11:13:20 -04:00
Victor Marmol
1065302bf4
Merge pull request #6327 from mikedanese/readiness-probe-busted
...
Fix readiness probe
2015-04-02 07:54:47 -07:00
Piotr Szczesniak
5c6439d449
Removed PodStatus.Host
...
Fixes #6165
2015-04-02 16:38:45 +02:00
Mike Danese
32c7de290c
fix readiness probe
2015-04-02 06:56:34 -07:00
Federico Simoncelli
8849cf21d3
event: fallback to creation when update fails
...
Updating may fail because the item was removed from apiserver. This
patch makes sure to retry using creation instead of update.
Fixes #6289
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-04-02 09:15:01 -04:00
Federico Simoncelli
f78301c5ab
kubelet: log offline event message recording
...
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-04-02 09:07:32 -04:00
Federico Simoncelli
b276132e21
event: improve logging on recording failure
...
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-04-02 09:07:32 -04:00
Clayton Coleman
323a44e54a
Make kubectl errors even more user-friendly
...
Omit glog prefix when v < 2, show multiline errors for configuration
problems, add new generic messages for server errors that hide some
complexity that is not relevant for users.
2015-04-02 01:40:15 -04:00
Clayton Coleman
9b5b27a12e
Return a typed error for config validation, and make errors simple
...
Will allow clients to determine when the configuration is bad.
2015-04-02 01:40:00 -04:00
Clayton Coleman
28b18f416f
Tone down logging in network interface choosing
2015-04-02 01:39:59 -04:00
Clayton Coleman
1233843a1d
Add a new generic error that can indicate a server response was underspecified
...
Allows clients to distinguish between a server that returns us an error we
recognize, and errors that are generic HTTP (due to an intervening proxy)
2015-04-02 01:39:57 -04:00
Tim Hockin
c63f4c71ba
Remove dead, buggy code
2015-04-01 21:25:49 -07:00
Deyuan Deng
d62afa85ff
Abstract ismountpoint and use platform mounter for NFS volume
2015-04-01 23:05:02 -04:00
Brian Grant
0e67b299d5
Merge pull request #6325 from rjnagal/node
...
Remove validation for Capacity. Add default for ExternalID
2015-04-01 18:25:32 -07:00
CJ Cullen
5e6e67ba59
Add an alternative TokenSource to the GCE CloudProvider.
2015-04-01 17:52:30 -07:00
Rohit Jnagal
e0ff139279
Remove validation for Capacity as it got moved from Spec to Status.
...
Also fix breakage from ExternalID validation: Default ExternalID to node name when not specified.
2015-04-02 00:51:52 +00:00
Victor Marmol
8cd8a8f098
Merge pull request #6310 from dchen1107/clean
...
Small cleanup on api/types.go
2015-04-01 17:37:00 -07:00
Brendan Burns
0cc2056893
Merge pull request #6323 from zmerlynn/merge-release-0.14-to-master
...
Merge release 0.14.1 to master
2015-04-01 17:05:18 -07:00
Jeff Lowdermilk
412a836bf7
Merge pull request #6322 from dchen1107/cleanup
...
Using gcr.io/google_containers/pause by default
2015-04-01 16:28:51 -07:00
Zach Loafman
e9c7b35896
Merge branch 'release-0.14' into merge-release-0.14-to-master
2015-04-01 16:15:26 -07:00
CJ Cullen
eca22d4c82
Fix off-by-one crash in pkg/apiserver/authn.go
2015-04-01 15:53:22 -07:00
Brendan Burns
f327e97661
Add a limit to the number of in-flight requests that a server processes.
2015-04-01 15:06:15 -07:00
Dawn Chen
db28ca67f6
Using gcr.io/google_containers/pause by default
2015-04-01 14:59:44 -07:00
Zach Loafman
22aac51d18
Kubernetes version v0.14.1-dev
2015-04-01 14:51:20 -07:00
Zach Loafman
77775a61b8
Kubernetes version v0.14.1
2015-04-01 14:51:14 -07:00
Clayton Coleman
dec3209229
Merge pull request #6246 from derekwaynecarr/finalize_fix
...
Fix Namespace Termination
2015-04-01 17:34:56 -04:00
Alex Robinson
2db427a34a
Merge pull request #6293 from kargakis/delete-short-msg
...
Update delete short usage message
2015-04-01 14:20:14 -07:00
Robert Bailey
22d9c67cb7
Merge pull request #6190 from liggitt/client_cert_auth
...
Add client cert authentication
2015-04-01 14:11:29 -07:00
Dawn Chen
96b0f0a170
Small cleanup on api/types.go
2015-04-01 14:04:17 -07:00
Robert Bailey
32a1c052dc
Revert "Configure the kubelet to use HTTPS"
2015-04-01 13:59:31 -07:00
derekwaynecarr
c2b670513c
Introduce concept of a default limit
2015-04-01 16:31:25 -04:00
Brian Grant
7450da41f1
Merge pull request #6094 from ddysher/remove-reachability
...
Remove Reachable Condition
2015-04-01 13:16:47 -07:00
Deyuan Deng
6bb9701489
Remove Reachable Condition
2015-04-01 13:56:43 -04:00
Jordan Liggitt
c797a91e36
Add client cert authentication
2015-04-01 13:42:26 -04:00
Robert Bailey
58bc792e68
Configure the master to connect to the kubelet using HTTPS.
2015-04-01 09:09:29 -07:00
Paul Morie
0335e350c7
Fix issue 6294: networking e2e should set args, not command
2015-04-01 11:40:23 -04:00
derekwaynecarr
b745f51c65
Client must specifiy a resource version on finalize
2015-04-01 11:16:45 -04:00
kargakis
3c09d4d383
Update delete short usage message
2015-04-01 17:14:13 +02:00
Piotr Szczesniak
81683441b9
Merge pull request #6156 from gmarek/retry_loop
...
Add a retry loop to UpdateStatus in NodeController
2015-04-01 09:16:11 +02:00
Victor Marmol
2de37624e8
Merge pull request #6252 from krousey/string_format_cleanup
...
Fixing a lot of string formatting issues
2015-03-31 16:57:36 -07:00
Kris Rousey
6904c4d585
Fixing a lot of string formatting issues with regards to:
...
* Improper format specifier (e.g. %s for bools or %s for ints)
* More or less parameters than format specifiers
* Not calling a formatting function when it should have (e.g. Error() instead of Errorf())
2015-03-31 16:47:10 -07:00
Brian Grant
af858c99e2
Merge pull request #6098 from nikhiljindal/enableInMaster
...
Enabling v1beta3 api version by default in master
2015-03-31 15:31:18 -07:00
Victor Marmol
a78a009877
Merge pull request #6249 from TamerTas/typo
...
Fix typo in Secrets
2015-03-31 15:14:55 -07:00
Tamer Tas
6c10cf7b98
Fix typo in Secrets
2015-04-01 00:56:20 +03:00
Victor Marmol
44fda1fcd1
Merge pull request #6161 from justinsb/populate_addresses_new_nodes
...
Make sure we have addresses for newly discovered nodes
2015-03-31 14:46:06 -07:00
Tim Hockin
70b9e56952
Fix a back-compat bug in multi-port services
...
Yu-Ju changed something just before this went in that exposed this bug.
we did not re-run Travis on my PR. Bad us.
2015-03-31 14:29:22 -07:00
Brendan Burns
313a365712
Merge pull request #5473 from lavalamp/fix6
...
Add DeltaFIFO (a controller framework piece)
2015-03-31 13:29:00 -07:00
Victor Marmol
c93cd4a0d1
Merge pull request #6225 from cjcullen/cloudprovider
...
Fix typed-nil passing in cloudprovider/plugins
2015-03-31 13:04:11 -07:00
Justin Santa Barbara
72ee90494e
Add unit test
2015-03-31 12:58:29 -07:00
Brian Grant
3354cffbf0
Merge pull request #6182 from thockin/plural_services_20
...
Implement multi-port Services
2015-03-31 12:55:21 -07:00
Zach Loafman
fc8ba8d77b
Merge pull request #6011 from justinsb/aws_specify_zone
...
Fix AWS region vs zone
2015-03-31 12:26:05 -07:00
Tim Hockin
0a8e2e0b1b
Merge pull request #6235 from yujuhong/defaults_tests
...
defaults_tests: verify defaults when converting to an API object
2015-03-31 12:13:23 -07:00
Yu-Ju Hong
7b0e45a5f5
defaults_tests: verify defaults when converting to an API object
...
This change verifies that defaults are applied after decoding an versioned
object into an API object.
2015-03-31 11:56:34 -07:00
Tim Hockin
e19f4939b1
fix tests broken by stronger validation
2015-03-31 11:13:44 -07:00
CJ Cullen
aa91bde375
Fix typed-nil passing in cloudprovider/plugins
2015-03-31 10:32:02 -07:00
Daniel Smith
68287713a0
Add a "delta fifo", which queues up object changes
...
Test coverage for module at 80%.
2015-03-31 10:25:29 -07:00
Daniel Smith
af870b8772
Add proper key error type
2015-03-31 10:25:29 -07:00
Daniel Smith
e8cc126a56
Add ListKeys() to FIFO & test
2015-03-31 10:25:29 -07:00
Daniel Smith
a8184e81bc
Update FIFO documentation
2015-03-31 10:25:29 -07:00
Victor Marmol
9bbf0b1546
Merge pull request #6100 from pmorie/entrypoint
...
Add control over container entrypoint
2015-03-31 09:58:40 -07:00
Victor Marmol
d6d370d8ae
Merge pull request #6211 from dchen1107/docker
...
publish node components version information
2015-03-31 09:47:08 -07:00
Dawn Chen
b8de2f00ce
kubectl describe nodes id shows node components version info.
2015-03-31 09:32:29 -07:00
Dawn Chen
5b9a6d47e8
publish node components version information
2015-03-31 09:32:29 -07:00
Paul Morie
7628b37d78
Add control over container entrypoint
2015-03-31 12:32:03 -04:00
Tim Hockin
b420871a11
fixes from testing
2015-03-31 09:30:56 -07:00
gmarek
fa6d5e259f
Add a retry loop to UpdateStatus in NodeController
2015-03-31 11:22:02 +02:00
Tim Hockin
eeff1b74fb
Fixes from feedback and testing
2015-03-30 23:52:37 -07:00
Tim Hockin
186818d787
WIP: Implement multi-port Services
2015-03-30 19:28:11 -07:00
Yifan Gu
7b1ea6b41d
kubelet_test: Fix copy bug.
...
Initialize the slice before copying in verifyUnorderedCalls()
and verifyStringArrayEqualsAnyOrder().
2015-03-30 17:17:42 -07:00
Daniel Smith
acd67ebea0
Merge pull request #5535 from saad-ali/fix5327
...
Make each new instance of kubelet generate a new event channel
2015-03-30 17:05:27 -07:00
Victor Marmol
a30859fb03
Merge pull request #6191 from roberthbailey/kubelet-ssl
...
Configure the kubelet to bind a simple healthz server to a localhost port for monitoring by monit
2015-03-30 15:57:09 -07:00
Victor Marmol
a501bd29ad
Merge pull request #6189 from sdodson/liveness-probe-logging
...
Add some logging to kubelet probes
2015-03-30 15:34:47 -07:00
Daniel Smith
83d5c207c9
Merge pull request #6175 from nikhiljindal/proxy
...
Updating proxy to return 301 to add a "/" at the end for #4958 (attempt 2)
2015-03-30 15:21:46 -07:00
Clayton Coleman
1dc895ee49
Merge pull request #6163 from ncdc/add-ctx-to-rest-prepare
...
Pass ctx to Validate, ValidateUpdate
2015-03-30 18:13:30 -04:00
Yu-Ju Hong
73452fd26e
Merge pull request #6091 from vmarmol/record
...
Record event when image GC fails.
2015-03-30 15:08:56 -07:00
Andy Goldstein
d7c5f427cb
Pass ctx to Validate, ValidateUpdate
...
Pass ctx to Validate/ValidateUpdate. This is useful so strategies can
access data such as the current user.
2015-03-30 17:33:08 -04:00
Scott Dodson
7661a42058
Add some logging to kubelet probes
2015-03-30 17:23:56 -04:00
saadali
e0f71cb21f
Make each new instance of kubelet generate a new event channel (instead of reusing existing).
2015-03-30 14:22:16 -07:00
Robert Bailey
bc8af553a3
Configure the kubelet to bind a simple healthz server to a localhost
...
port for monitoring by monit. This is in preparation for the standard
kubelet port to switch to SSL only (and eventually to only accepting
connections on the SSL port that present a proper client SSL cert).
Also standardize the formatting of the monit config files a bit.
2015-03-30 14:20:30 -07:00
Victor Marmol
795cd38ef4
Merge pull request #6178 from derekwaynecarr/fix_self_link_list
...
Fix self link in listing items in a namespace
2015-03-30 13:50:38 -07:00
Tim Hockin
c03b0ecb6d
Merge pull request #6123 from a-robinson/proxy
...
Fix bug in kube-proxy of not updating iptables rules if a service's public IPs change
2015-03-30 13:44:04 -07:00
Alex Robinson
151b871eff
Fix bug in kube-proxy of not updating iptables rules if a service's
...
public IPs change, and add tests to catch the bug.
2015-03-30 20:39:59 +00:00
derekwaynecarr
265a0e3ca4
Listing items in a namespace should always include the namespace in the URL
2015-03-30 16:05:40 -04:00
Scott Dodson
de87048def
Fix comment typo probeContainerReadiness
2015-03-30 15:54:05 -04:00
nikhiljindal
4c4a084a92
Updating proxy to return 301 to add a / at the end
2015-03-30 12:12:49 -07:00
nikhiljindal
478b7d5edf
Repurposing enableV1beta3 to disableV1beta3 in master config to enable v1beta3 by default
2015-03-30 11:50:10 -07:00
Eric Paris
3e0cdff97c
Merge pull request #6171 from zmerlynn/release-0.14
...
Release 0.14
2015-03-30 13:20:35 -05:00
Zach Loafman
2ad77fd9e5
Kubernetes version v0.14.0-dev
2015-03-30 11:03:04 -07:00
Zach Loafman
575bf6dcd0
Kubernetes version v0.14.0
2015-03-30 11:02:57 -07:00
Victor Marmol
de35c8f2af
Record event when image GC fails.
2015-03-30 10:32:51 -07:00
Victor Marmol
83c729d12f
Merge pull request #6113 from erictune/fix_kubectl
...
Fix kubectl
2015-03-30 09:59:42 -07:00
Federico Simoncelli
0e60374346
nodes: record an event on NodeReady changes
...
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-03-30 12:01:09 -04:00
Justin Santa Barbara
527d3f1f99
Make sure we have addresses for newly discovered nodes
2015-03-30 08:51:33 -07:00
Victor Marmol
d5ce931f0b
Merge pull request #6069 from simon3z/kubelet-reboot-logic
...
node: move the reboot detection logic to kubelet
2015-03-30 08:45:37 -07:00
Victor Marmol
ff03b721fe
Merge pull request #6160 from justinsb/aws_dont_list_until_ready
...
Don't list AWS instances until they are actually ready
2015-03-30 08:34:54 -07:00
Justin Santa Barbara
63f63aa9de
Don't list AWS instances until they are actually ready
2015-03-30 08:06:18 -07:00
Victor Marmol
3490e67ff9
Merge pull request #6117 from brendandburns/api3
...
Add params for the proxy when installing the API, this fixes some swagger validation errors.
2015-03-30 08:02:27 -07:00
Federico Simoncelli
fe2d1f6762
node: move the reboot detection logic to kubelet
...
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-03-30 09:33:07 -04:00
Federico Simoncelli
604e0ad328
kubelet: move getNodeReference logic into a function
...
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-03-30 09:33:00 -04:00
Brendan Burns
ee0d71aac6
Fix up parameter handling. Also handle type mapping between Go and JSON
2015-03-27 21:43:16 -07:00
Brendan Burns
d70d2d20cd
Add params for the proxy when installing the API.
2015-03-27 21:43:16 -07:00
Victor Marmol
b9499b8c5b
Merge pull request #6126 from ghodss/reduce-some-kubectl-spacing
...
Reduce some tab spacing in kubectl
2015-03-27 18:34:36 -07:00
Dawn Chen
296fafa955
Merge pull request #6129 from yujuhong/container_status
...
Kubelet: allow docker to examine terminated container
2015-03-27 18:18:18 -07:00
Sam Ghods
f8d8b09a0a
Reduce some tab spacing in kubectl
2015-03-27 18:05:20 -07:00
Yu-Ju Hong
3ad0e22cdd
Kubelet: allow docker to examine terminated container
...
Removing the if statement so that docker can continue returning the status of
terminated containers.
2015-03-27 18:04:50 -07:00
Victor Marmol
3bc933645b
Merge pull request #6083 from jlowdermilk/fix-log
...
Fix kubectl log for single-container pods
2015-03-27 17:51:33 -07:00
Yu-Ju Hong
372c5c9f3a
Kubelet: set host field in the pending pod status
...
Otherwise, the apiserver would reject the update.
2015-03-27 17:26:47 -07:00
Daniel Smith
93a82c30d9
Revert "Updating proxy to return 301 to add a "/" at the end for #4958 "
2015-03-27 15:59:40 -07:00
Eric Tune
8bf104503c
Fix nil pointer when validating in kubectl.
2015-03-27 15:49:51 -07:00
Daniel Smith
d137e7b62d
Merge pull request #6048 from nikhiljindal/proxy
...
Updating proxy to return 301 to add a "/" at the end for #4958
2015-03-27 15:49:10 -07:00
Brian Grant
f0da47b2dd
Merge pull request #5763 from smarterclayton/get_input_parameters_versioned
...
Expose versioned query parameters and make watch an operation on List
2015-03-27 14:35:23 -07:00
Brian Grant
6dd8f73266
Merge pull request #5919 from sdminonne/labels_req
...
Adding method to labels.Selector to add Requirement
2015-03-27 14:30:09 -07:00
nikhiljindal
2fff606a6f
Updating proxy to return 301 to add a / at the end
2015-03-27 14:29:18 -07:00
Brian Grant
c9ad322ba9
Merge pull request #5831 from smarterclayton/add_more_errors
...
Add more specific error handling and handle generic errors more effectively
2015-03-27 14:17:11 -07:00
Brian Grant
a765236653
Merge pull request #5939 from thockin/plural_endpoints_31_endpt_subsets
...
Implement multi-port endpoints
2015-03-27 14:15:15 -07:00
Clayton Coleman
aa44d29d10
Updated documentation and adjusted field names
2015-03-27 17:08:59 -04:00
Tim Hockin
8ae203825b
Implement multi-port endpoints
...
Instead of endpoints being a flat list, it is now a list of "subsets"
where each is a struct of {Addresses, Ports}. To generate the list of
endpoints you need to take union of the Cartesian products of the
subsets. This is compact in the vast majority of cases, yet still
represents named ports and corner cases (e.g. each pod has a different
port number).
This also stores subsets in a deterministic order (sorted by hash) to
avoid spurious updates and comparison problems.
This is a fully compatible change - old objects and clients will
keepworking as long as they don't need the new functionality.
This is the prep for multi-port Services, which will add API to produce
endpoints in this new structure.
2015-03-27 12:36:32 -07:00
Jeff Lowdermilk
243de3a472
Fix kubectl log for single-container pods
2015-03-27 12:26:00 -07:00
Clayton Coleman
870da687d0
Add more extensive tests to apiserver for variations in version
...
Formalize v1beta1 and v1beta3 style APIs in our test cases.
2015-03-27 15:03:58 -04:00
Clayton Coleman
eb0eff69fe
Move watch to being a resthandler resource and expose it on LIST
...
GET /pods?watch=true&resourceVersion=10
will now function equivalent to GET /watch/pods.
2015-03-27 15:03:58 -04:00
Clayton Coleman
1618c39a46
Convert List query parameters via object conversion
...
Convert url.Values -> an object, with appropriate versioning. ListOptions
should also expose parameter names to swagger.
2015-03-27 15:03:57 -04:00
Brian Grant
70e0fad28c
Merge pull request #5951 from dchen1107/docker
...
Add node components version to API
2015-03-27 11:30:44 -07:00
Dawn Chen
87db1c9007
Rename DockerVerstion to ContainerRuntimeVersion for rocket support
2015-03-27 11:04:48 -07:00
Dawn Chen
086bb1ac09
Add node components version to API
2015-03-27 11:04:47 -07:00
Jeff Lowdermilk
803086c2c6
Merge pull request #6034 from thockin/target_port_flag
...
Alias --container-port to --target-port in kubectl
2015-03-27 09:56:33 -07:00
Victor Marmol
e4fc45c26f
Merge pull request #6054 from fgrzadkowski/fix_pod_status
...
Do not fail pod status update if failed to get host IP
2015-03-27 09:10:44 -07:00
Victor Marmol
4ed3346587
Merge pull request #6039 from yifan-gu/readiness
...
kubelet: Add container readiness manager.
2015-03-27 09:04:00 -07:00
Justin Santa Barbara
c1337cbaeb
Make some of the more repetitive AWS tests table-driven
2015-03-27 07:31:16 -07:00
Brian Grant
a4bf91c8c0
Merge pull request #5690 from satnam6502/failputnover
...
Give better error message for PUTs with no resource version
2015-03-27 07:12:56 -07:00
Young
84bfda0587
remove cmd arg
...
related issue "Remove cmd from kubectl/cmd/factory arguments #4470 "
2015-03-27 21:46:17 +08:00
Filip Grzadkowski
fe2f7f25c6
Do not fail if failed to get host IP
2015-03-27 14:15:41 +01:00
Piotr Szczesniak
768c733bed
Merge pull request #5971 from bprashanth/rc_watch_fields
...
Add the ability to watch fields of a replication controller
2015-03-27 10:19:41 +01:00
Yifan Gu
6fecda710c
kubelet: Add container readiness manager.
...
Move the readiness managing logic into pkg/kubelet/container package
to facilitate the pluggable container runtime.
2015-03-26 18:45:23 -07:00
feihujiang
6b79dcaa4d
add source filename in error message
2015-03-27 09:28:48 +08:00
Tim Hockin
f928f52a4a
Alias --container-port to --target-port in kubectl
2015-03-26 17:59:46 -07:00
Vish Kannan
13ae40681a
Merge pull request #6029 from vishh/1726
...
Update pod ip using active container only.
2015-03-26 17:50:35 -07:00
Vish Kannan
f2c7dda6da
Merge pull request #6026 from dchen1107/clean
...
kubectl describe nodes id reports related events
2015-03-26 17:39:21 -07:00
Vishnu Kannan
14a48ad026
Update pod ip using active container only.
2015-03-27 00:38:43 +00:00
Dawn Chen
688363ad53
Kubectl describe nodes id with events.
2015-03-26 16:43:29 -07:00
Victor Marmol
58aee31625
Merge pull request #6024 from yujuhong/hostname
...
Use the first token of hostname for generating static pod names
2015-03-26 16:35:42 -07:00
Dawn Chen
f662d7d11c
Kubelet reports node related events with empty namespace for now.
2015-03-26 16:30:23 -07:00
Yu-Ju Hong
793a3c0c63
Use the first token of hostname for generating static pod names
...
This increases the readability of pods by avoiding long names.
This fixes #5936
2015-03-26 16:12:49 -07:00
Victor Marmol
0fb131c4f9
Merge pull request #5975 from yifan-gu/refactor_runContainer
...
kubelet: Refactor kubelet.runContainer.
2015-03-26 15:50:37 -07:00
Clayton Coleman
f9aa0d5851
Merge pull request #5970 from thockin/rest_cleanups
...
Rest hooks for Create and Update
2015-03-26 18:42:05 -04:00
Victor Marmol
2a5ff5d860
Merge pull request #6022 from yifan-gu/fix_tests
...
Fix tests
2015-03-26 15:36:27 -07:00
Daniel Smith
557da59302
Merge pull request #5949 from thockin/deepequal_len
...
Fix deep equal to not panic on bad slice lengths
2015-03-26 15:28:47 -07:00
Yifan Gu
e6820bd0ca
kubelet_test: Fix verifyStringArrayEqualsAnyOrder().
...
Old implementation can not tell cases where strings are
repetitive. e.g. {"a", "b", "b"} and {"a", "a", "b"} will
be treated as correct.
2015-03-26 15:26:32 -07:00
Yifan Gu
aa2e7fe688
kubelet_test: Add verifyUnorderedCalls().
...
This fixes TestSyncPodsDeletesWithNoPodInfraContainer.
Since we need to sync two pods in parallel, we should not verify
the docker calls in strict order.
2015-03-26 15:25:51 -07:00
Justin Santa Barbara
583892da2d
Fix AWS region vs zone
...
We were specifying a region, but naming it as a zone in util.sh
The zone matters just as much as the region, e.g. for EBS volumes.
We also change the config to require a Zone, not a Region.
But we fallback to get the information from the metadata service.
2015-03-26 15:11:05 -07:00
Brian Grant
984bc8d5f6
Merge pull request #5635 from ravigadde/master
...
Add timeout to kubelet client
2015-03-26 14:55:24 -07:00
Clayton Coleman
524f8731b5
Decode errors returned to clients by the Watch interface
2015-03-26 17:30:13 -04:00
Clayton Coleman
30358e8b04
Add more specific error handling and handle generic errors more effectively
...
The client library should type more generic errors from the server.
2015-03-26 17:30:13 -04:00
Tim Hockin
0f36c68244
Add REST PrepareForUpdate() hook
...
As per discussion with @snmarterclayton. I implemented this for most
types in the "obvious" way. I am not sure how to implement
this for a couple types, though.
2015-03-26 13:48:41 -07:00
Tim Hockin
b2687c1a84
rename ResetBeforeCreate to PrepareForCreate
2015-03-26 13:48:34 -07:00
Yifan Gu
5f08555f45
kubelet: Refactor kubelet.runContainer.
...
Push the run container logic into container runtime.
2015-03-26 13:43:45 -07:00
Zach Loafman
914ab94ae0
Merge pull request #6009 from derekwaynecarr/improve_namespace_auto_provision
...
Do not block admission if namespace already exists
2015-03-26 13:26:57 -07:00
Jeff Lowdermilk
653b7e629d
Merge pull request #5977 from smarterclayton/allow_expose_to_handle_other_resources
...
Allow `kubectl expose` to be polymorphic to the source of the selector
2015-03-26 13:23:21 -07:00
Jeff Lowdermilk
fc2eb66d9f
Merge pull request #5976 from smarterclayton/support_resource_builder_on_label
...
`kubectl label` should support resource builder
2015-03-26 13:21:56 -07:00
Victor Marmol
1cad0df268
Merge pull request #6004 from yifan-gu/ref_manager
...
kubelet: Move container reference manager to pkg/kubelet/container.
2015-03-26 13:04:34 -07:00
derekwaynecarr
267ef26b0f
Do not block admission if namespace already exists
2015-03-26 15:59:09 -04:00
Brian Grant
3b0db99692
Merge pull request #5915 from piosz/api
...
Changed PodInfo to be a list
2015-03-26 12:46:50 -07:00
Piotr Szczesniak
78871ca508
changed json names
2015-03-26 20:11:48 +01:00
Yifan Gu
9f62b929b8
kubelet: Move container reference manager to pkg/kubelet/container.
...
This enables other package to use it, such as docktools.
2015-03-26 11:53:44 -07:00
Dawn Chen
c569c09135
Merge pull request #5999 from vmarmol/refactor
...
Refactor pod killing to be done in a single killPod().
2015-03-26 11:48:58 -07:00
Tim Hockin
b07ed62910
Fix deep equal to not panic on bad slice lengths
...
Also test it more throughly and test DeepDerivative.
2015-03-26 11:47:30 -07:00
Clayton Coleman
64f91f7dac
Allow kubectl expose
to be polymorphic to the source of the selector
...
Allows exposing new resource types to be exposed (OpenShift deployment
controllers, copying services, and other resources that will have
pod label selectors).
Also fixed a bug where the selector wasn't exposed because of parameter
defaulting.
2015-03-26 14:36:53 -04:00
Victor Marmol
a59e5f8995
Refactor pod killing to be done in a single killPod().
2015-03-26 11:25:48 -07:00
Clayton Coleman
1e496696ca
Merge pull request #5903 from smarterclayton/support_resources_by_type_and_name
...
Allow resource.Builder commands to take arguments by type/name
2015-03-26 14:23:03 -04:00
Clayton Coleman
80aa498ba5
Merge pull request #5978 from smarterclayton/order_commands
...
Order the commands in kubectl by importance and function
2015-03-26 14:22:04 -04:00
Victor Marmol
106cc037ee
Merge pull request #5995 from ArtfulCoder/pause_no_port_forward_for_net_host
...
Kill running Pod running with -net=true if kubelet does not allow it
2015-03-26 11:03:58 -07:00
Prashanth Balasubramanian
b0068d05f8
Add the ability to watch fields of an rc
2015-03-26 11:01:56 -07:00
Clayton Coleman
68c46e7f52
kubectl label
should support resource builder
...
Allow applying labels to all resources, by existing selector, and
soon allow multiple selection.
2015-03-26 14:01:05 -04:00
Eric Tune
b77b529e16
Merge pull request #5954 from pmorie/secret-log
...
Add positive logging for secret volume plugin
2015-03-26 10:56:16 -07:00
Vish Kannan
f2e47a29e1
Merge pull request #5994 from dchen1107/clean
...
Fixed an issue on searching events by a given fieldSelector. The issue b...
2015-03-26 10:21:09 -07:00
Victor Marmol
d2ea1a793b
Merge pull request #5982 from yifan-gu/ref_manager
...
kubelet: Add container reference manager.
2015-03-26 10:20:13 -07:00
Nikhil Jindal
c1364d03dc
Merge pull request #5901 from brendandburns/e2e
...
Pipe through the ability to set the external hostname for swagger URLs.
2015-03-26 10:16:57 -07:00
Abhishek Shah
5c42070eeb
Kill running Pod running with -net=true if kubelet does not allow it
2015-03-26 10:13:06 -07:00
Dawn Chen
8ac0cf39b1
Merge pull request #5989 from gmarek/capacity_to_status
...
Move Capacity from NodeSpec to NodeStatus
2015-03-26 10:11:23 -07:00
Dawn Chen
ab0e9f1d41
Fixed an issue on searching events by a given fieldSelector. The issue break
...
the events reported for kubectl describe pods completely.
Fixed #5957
2015-03-26 10:00:10 -07:00
Yifan Gu
a06bc96414
kubelet: Add container reference manager.
...
Move the reference managing logic into container reference manager.
This enables pluggable container runtime to manage the container references.
2015-03-26 09:50:54 -07:00
Tamer Tas
d5a66845b9
Minor typo
2015-03-26 16:46:51 +02:00
gmarek
5a11748018
Move Capacity from NodeSpec to NodeStatus
2015-03-26 15:28:48 +01:00
Clayton Coleman
0dd625ffd3
Order the commands in kubectl by importance and function
...
Move the client config commands towards the bottom, keep the primary
verbs near the top. Version goes at the bottom.
2015-03-26 10:19:06 -04:00
Piotr Szczesniak
31901ed9d0
Changed PodInfo to be a list
...
This change is to make API consistent with our convention.
Fixes #3622
2015-03-26 10:15:25 +01:00
Brendan Burns
7c684e4331
Pipe through the ability to set the external hostname for swagger URLs.
2015-03-25 21:08:05 -07:00
Victor Marmol
8183a4805e
Merge pull request #5973 from ArtfulCoder/pause_no_port_forward_for_net_host
...
Stop port forwarding from pause in net=host mode
2015-03-25 18:13:04 -07:00
Abhishek Shah
cd5ed38250
Stop port forwarding from pause in net=host mode
2015-03-25 17:55:37 -07:00
Clayton Coleman
581d7cd789
Allow resource.Builder commands to take arguments by type/name
...
Will allow xarg behavior to fetch resources across multiple types.
Changes 'create', 'get', 'update', 'stop', and 'delete' to output
<resourceType>/<name>.
2015-03-25 20:39:22 -04:00
Victor Marmol
b1c06eb52e
Merge pull request #5969 from yujuhong/selflink
...
Kubelet: no need to overwrite SelfLink for pods from the apiserver
2015-03-25 16:59:56 -07:00
Vish Kannan
46751acf2e
Merge pull request #5950 from vmarmol/default
...
Use default ContainerInfoRequest in Kubelet HTTP.
2015-03-25 16:40:31 -07:00
Vish Kannan
4b1dd0606c
Merge pull request #5929 from rjnagal/node
...
Add validation for node creation.
2015-03-25 16:39:53 -07:00
Yu-Ju Hong
4e909c6cee
Kubelet: no need to overwrite SelfLink for pods from the apiserver
...
Pods from the apiserver should already have SelfLink set. There is no need to
create one ourselves.
2015-03-25 16:34:02 -07:00
Satnam Singh
cd05c8b9bc
Give better error message for PUTs with no resource version
2015-03-25 15:52:48 -07:00
Victor Marmol
9e77c3d7e5
Use default ContainerInfoRequest in Kubelet HTTP.
...
Fixes #5777 .
2015-03-25 15:37:06 -07:00
Dawn Chen
af32a0aa8e
Merge pull request #5952 from thockin/reset_hash_state
...
Reset hash state between runs.
2015-03-25 15:36:51 -07:00
Rohit Jnagal
49ff04765b
Add validation for node creation.
2015-03-25 21:55:03 +00:00
Paul Morie
852362ee39
Add positive logging for secret volume plugin
2015-03-25 17:25:13 -04:00
Yu-Ju Hong
6145b3b9c4
Merge pull request #5738 from smarterclayton/cleanup_clients
...
Clients should not check conditions, UpdateStatus() is inconsistent
2015-03-25 13:59:47 -07:00
David Oppenheimer
76889fa3ae
Merge pull request #5818 from simon3z/boot-id
...
nodecontroller: record node reboot event
2015-03-25 13:50:21 -07:00
Tim Hockin
9ed6c95e8e
Reset hash state between runs.
2015-03-25 13:44:57 -07:00
Clayton Coleman
b1ab14315b
Clients should not check conditions, UpdateStatus() is inconsistent
...
Corrects some of the cargo culting that has crept into the API.
2015-03-25 16:25:04 -04:00
Yu-Ju Hong
5d628770c1
Merge pull request #5926 from vmarmol/fast-test
...
Reduce testing time of status_manager_test.
2015-03-25 12:52:27 -07:00
Salvatore Dario Minonne
6ad5c07350
Adding a func to labels.Selector to add requirement
2015-03-25 20:37:04 +01:00
Federico Simoncelli
2db64d3f90
nodecontroller: record node reboot event
...
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-03-25 15:06:53 -04:00
Federico Simoncelli
5b3056cdb7
nodecontroller: add event recorder support
...
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-03-25 15:06:53 -04:00
Federico Simoncelli
afbf401464
nodeinfo: add boot id system information
...
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-03-25 15:06:53 -04:00
Derek Carr
bf14cbf682
Merge pull request #5930 from markturansky/fix_quota_registry_names
...
Changed arg names from 'pod' to 'resourceQuota'
2015-03-25 15:03:41 -04:00
Victor Marmol
65070d6d81
Reduce testing time of status_manager_test.
...
Adds tests for syncBatch().
2015-03-25 11:45:06 -07:00
Dawn Chen
e54cbf6e07
Merge pull request #5886 from vmarmol/net-host-1
...
Implement Kubelet support for HostNetwork by pod source
2015-03-25 11:41:01 -07:00
Victor Marmol
cf7e2756b5
Add HostNetworkSources capability to limit use of HostNetwork.
2015-03-25 11:23:06 -07:00
Victor Marmol
d9cd7a78f7
Allow starting a container with --net=host.
2015-03-25 11:22:03 -07:00
Clayton Coleman
27c668b54a
Merge pull request #5441 from kazegusuri/port_minion_registry
...
Port minion registry to generic etcd
2015-03-25 14:18:17 -04:00
Victor Marmol
5eb373692b
Merge pull request #5928 from yujuhong/pod_status
...
Kubelet: pass the acutal pod for status update
2015-03-25 10:51:32 -07:00
Victor Marmol
f7135b3dd4
Merge pull request #5827 from spothanis/master
...
added cloud provider flag to kubelet
2015-03-25 10:50:18 -07:00
Masahiro Sano
c49af0b7cb
port minion registry to generic etcd
2015-03-26 02:44:35 +09:00
markturansky
89a17a410c
changed arg names from 'pod' to 'resourceQuota'
2015-03-25 13:23:31 -04:00
Robert Bailey
659fc558f6
Merge pull request #5900 from brendandburns/api3
...
Add support for grabbing the externalIP in the GCE cloud provider.
2015-03-25 10:16:51 -07:00
Yu-Ju Hong
b4b0bc75c4
Kubelet: pass the acutal pod for status update
...
Pod status update should include the ObjectMeta of the pod. This change is
required for #5738 to merge.
2015-03-25 09:58:46 -07:00
Saad Ali
1f50bd226b
Merge pull request #5854 from fgrzadkowski/delete_pod_cache
...
Delete pod_cache and rely on updating pod status by kublet.
2015-03-25 09:17:09 -07:00
Clayton Coleman
367284b63b
Merge pull request #5767 from kazegusuri/endpoints_storage
...
port endpoints to generic etcd
2015-03-25 11:32:01 -04:00
Tim Hockin
61d7bb7019
Merge pull request #5800 from markturansky/yoko_pv_api
...
PersistentVolume & PersistentVolumeClaim API types
2015-03-25 08:24:09 -07:00
Saad Ali
c02e300096
Merge pull request #5887 from nikhiljindal/clientClient_test
...
Updating unit tests for pkg/client so that they pass with v1beta3 api
2015-03-25 08:05:56 -07:00
markturansky
f762b303ad
PersistentVolume & PersistentVolumeClaim API types
2015-03-25 10:09:25 -04:00
Filip Grzadkowski
74da3b14b0
Delete pod_cache and rely on updating pod status by kublet.
2015-03-25 15:08:09 +01:00
Wojciech Tyczynski
c8e89bc717
Merge pull request #5853 from fgrzadkowski/better_errors
...
Improve error message for invalid pod spec update
2015-03-25 14:31:13 +01:00
Masahiro Sano
410e11c305
port endpoints to generic etcd
2015-03-25 22:15:19 +09:00
Filip Grzadkowski
7085a0cb44
Merge pull request #5508 from fgrzadkowski/validate_ips
...
Validate Service.Spec.publicIPs to be a valid IP that is not a localhost
2015-03-25 12:11:29 +01:00
Brendan Burns
bfceb21007
Add support for grabbing the externalIP in the GCE cloud provider.
2015-03-24 21:21:50 -07:00
Derek Carr
cfb6f1199b
Merge pull request #5851 from smarterclayton/support_input_streams
...
Support input streams being returned by the APIserver
2015-03-24 22:41:24 -04:00
Sreekanth Pothanis
1c06cde4c4
added cloud provider flag to kubelet
...
This is to fix issue #5667
2015-03-24 19:32:50 -07:00
nikhiljindal
ba3746172f
Updating unit tests for pkg/client so that they pass with v1beta3 api
2015-03-24 18:54:02 -07:00
Yu-Ju Hong
ff3d36edc5
Fix flakey TestGetSetPods
2015-03-24 18:29:35 -07:00
Yu-Ju Hong
a9c9d27fdd
Merge pull request #5893 from vmarmol/remove-server
...
Remove unused ServerSource.
2015-03-24 18:09:32 -07:00
Victor Marmol
bacd859b33
Remove unused ServerSource.
...
We no longer use server as a source in the Kubelet.
2015-03-24 17:47:09 -07:00
Brian Grant
d75291dbe7
Merge pull request #5838 from nikhiljindal/clientTests
...
Updating unit tests so that they pass with v1beta3 api
2015-03-24 17:30:50 -07:00
Dawn Chen
1665f4bc87
Merge pull request #5702 from yifan-gu/get_pods
...
Introduce GetPods() to replace GetKubeletDockerContainers()
2015-03-24 17:13:32 -07:00
Yifan Gu
e02c6994dc
kubelet.container: Fix volume map type.
2015-03-24 16:08:04 -07:00
Yifan Gu
31bb11ac2a
kubelet: Move pod name helpers to pkg/kubelet/container/runtime.go
2015-03-24 16:08:04 -07:00
Yifan Gu
13250c904f
kubelet: Replace GetKubeletDockerContainers with GetPods in syncPod/SyncPods.
2015-03-24 16:01:38 -07:00
Yifan Gu
eec6456f51
kubelet.container: Add helpers in container runtime to filter pod/containers.
2015-03-24 16:01:38 -07:00
Yifan Gu
f4c3ccf639
dockertools: Introduce GetPods() for docker runtime.
2015-03-24 16:01:37 -07:00
Abhi Shah
f1872d36cf
Merge pull request #5814 from vmarmol/net-host
...
Add HostNetworking container option to API.
2015-03-24 15:55:27 -07:00
David Oppenheimer
30c3583900
Merge pull request #5806 from ddysher/condition-rename
...
Rename ConditionFull->ConditionTrue, ConditionNone->ConditionFalse
2015-03-24 15:50:11 -07:00
Victor Marmol
270c850b3b
Merge pull request #5826 from yujuhong/pod_manager
...
Kubelet: refactor pod manager
2015-03-24 15:33:54 -07:00
Tim Hockin
e1a66ad015
Merge pull request #5398 from markturansky/volume_access_modes
...
Add GetAccessModes to volume plugin interface
2015-03-24 15:16:01 -07:00
Yu-Ju Hong
08e4a883b6
Kubelet: refactor pod manager
...
This change cleans up the pod manager extensively so that
* Mirror pods are actually stored in the pod manager.
* Both (non-mirror) pods and mirror pods are indexed by UID and full name for
easy lookup and mapping. This is required for the next change to send
full pod along with the pod status update.
This change also renames mirrorManager as mirrorClient since it is merely a
client to contact the API server and create/delete mirror pods.
2015-03-24 15:10:26 -07:00
Victor Marmol
2a0793c155
Add HostNetworking container option to API.
...
This allows a container to run within the same networking namespace as
the host. This will be locked down by default using a flag on the master
and nodes (similar to how privileged is handled today).
2015-03-24 14:40:28 -07:00
markturansky
519cbc498b
Added conversion and check to prevent panic
2015-03-24 17:33:31 -04:00
Deyuan Deng
ca68f4a9d1
Rename ConditionFull->ConditionTrue, ConditionNone->ConditionFalse
2015-03-24 17:28:59 -04:00
Clayton Coleman
bfb6b05311
Wait longer in TestWatchControllers
...
10ms is too slow for travis
2015-03-24 17:25:46 -04:00
Clayton Coleman
bac4689942
Expose Transform() as a method on a field Selector
2015-03-24 17:25:45 -04:00
Clayton Coleman
319f5b280a
Not all Kinds should be registered to RESTMapper
2015-03-24 17:25:45 -04:00
Clayton Coleman
fc3609fb5b
Allow InputStreams to be returned by requests
...
Add additional metadata to restful services.
2015-03-24 17:25:45 -04:00
Clayton Coleman
ea32b89e5e
Allow map[string][]string to be converted to an object
...
Will allow query parameters to be converted to versioned objects.
2015-03-24 17:25:45 -04:00
Tim Hockin
064b7dec42
Merge pull request #5807 from pmorie/secret_volume_ref
...
Change secret volume plugin reference to name
2015-03-24 14:18:35 -07:00
David Oppenheimer
c1730989cb
Merge pull request #5870 from dchen1107/podstatus
...
Fix a bug of running node selector predicate on kubelet introduced by #5...
2015-03-24 14:05:27 -07:00
Piotr Szczesniak
fef81150b9
Merge pull request #5858 from a-robinson/timeout
...
Increase the client-specified timeout for service create/update/delete.
2015-03-24 21:42:01 +01:00
Piotr Szczesniak
ada4f5a366
Merge pull request #5860 from brendandburns/kubecfg
...
Add validation of args for create.
2015-03-24 21:41:28 +01:00
David Oppenheimer
3f57378972
Merge pull request #5399 from ddysher/nc-keep-sync
...
Node controller monitor node status
2015-03-24 13:30:06 -07:00
markturansky
5fa07f57b6
Removed PersistentVolumeSource and FindPersistentPluginBySpec func
2015-03-24 16:26:33 -04:00
Alex Robinson
ab67cba7fb
Increase the client-specified timeout for service create/update/delete.
...
This is only temporary until external load balancer creation is changed to
be asynchronous.
2015-03-24 20:17:36 +00:00
Dawn Chen
e2e1d9e943
Fix a bug of running node selector predicate on kubelet introduced by #5715 .
...
part of #5207 , and fixed #5810
2015-03-24 13:13:25 -07:00
markturansky
111f3d5120
Add GetAccessModes to volume plugin interface
2015-03-24 16:02:39 -04:00
nikhiljindal
7e3b7f9673
Updating unit tests so that they pass with v1beta3 api
2015-03-24 12:13:53 -07:00
Deyuan Deng
c5675b8924
Use fake time in nodecontroller unittest; rename receiver 's' to 'nc'
2015-03-24 14:23:48 -04:00
Deyuan Deng
b51d491f05
Delete all pods based on condition transition time.
2015-03-24 14:23:48 -04:00
Deyuan Deng
cf548765c9
Change kubelet update frequency to 2s, and make it a constant.
2015-03-24 14:23:48 -04:00
Brendan Burns
99267d725c
Add validation of args for create.
2015-03-24 11:21:52 -07:00
Deyuan Deng
0d5f8dfde1
Node controller monitor node status
2015-03-24 14:19:56 -04:00
Paul Morie
e40ba109a1
Change SecretVolumeSource to use a secret name instead of ObjRef
2015-03-24 13:58:41 -04:00
markturansky
2fd82f60f4
Move escape function to util and clarify name
2015-03-24 13:52:31 -04:00
Clayton Coleman
aee9bdd69a
Merge pull request #5805 from liggitt/node_proxy
...
Improve ResourceLocation API, allow proxy to use authenticated transport
2015-03-24 13:01:54 -04:00
Clayton Coleman
97560c409f
Merge pull request #5554 from derekwaynecarr/namespace_controller
...
Namespace Controller to support Namespace Termination
2015-03-24 12:59:00 -04:00
Filip Grzadkowski
b74b203da2
Improve error message for invalid pod spec update
2015-03-24 17:11:16 +01:00
Victor Marmol
a2e2fea410
Merge pull request #5714 from fgrzadkowski/update_status_on_change
...
Update pod status only when it changes.
2015-03-24 09:00:57 -07:00
Clayton Coleman
0902ffd70e
Merge pull request #5746 from bprashanth/rc_genericetcd_interface
...
Migrate replication controllers to generic etcd
2015-03-24 11:45:59 -04:00
Filip Grzadkowski
632ca506ce
* Update pod status only when it changes.
...
* Refactor syncing logic into a separate struct
2015-03-24 16:41:00 +01:00
Satnam Singh
69a648406d
Merge pull request #5841 from piosz/clusterinfo
...
Added colors to output of kubectl clusterinfo
2015-03-24 08:38:45 -07:00
Jordan Liggitt
a75b501821
Improve ResourceLocation API, allow proxy to use authenticated transport
2015-03-24 11:11:34 -04:00
derekwaynecarr
84c9709299
Increase controller sync time for namespace cleanup
2015-03-24 10:44:34 -04:00
Saad Ali
2a88c77522
Merge pull request #5809 from dchen1107/podstatus
...
Introduced LastTerminateState to ContainerStatus
2015-03-24 07:42:24 -07:00
Saad Ali
282f605241
Merge pull request #5786 from fgrzadkowski/better_errors
...
Add validation error explanation for long annotations.
2015-03-24 07:40:29 -07:00
derekwaynecarr
ee53dfc741
Turn on namespace lifecycle plug-in
2015-03-24 10:36:06 -04:00
derekwaynecarr
2ac63ebbe6
Add namespace controller to drive life-cycle
2015-03-24 10:36:06 -04:00
derekwaynecarr
29c491ef2e
Namespace.Spec.Finalizer support
2015-03-24 10:36:06 -04:00
Wojciech Tyczynski
f7191d626d
Change "/ns" to "/namespaces" in few remaining places.
2015-03-24 13:05:32 +01:00
Piotr Szczesniak
c06eecf7aa
Added colors to output of kubectl clusterinfo
...
Added warning about trailing slashes
Also I ran godeps as described at
https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/devel/development.md
This fixes #5698
2015-03-24 11:46:04 +01:00
Filip Grzadkowski
6bc1e2ef40
Add validation error explanation for long annotations.
2015-03-24 11:01:26 +01:00
Filip Grzadkowski
24eb1a08f3
Validate Service.Spec.publicIPs to be a valid IP that is not a localhost
2015-03-24 10:48:46 +01:00
Victor Marmol
07f928be64
Cap container hostname length to 63 chars.
...
Fixes #5829 .
2015-03-23 19:36:45 -07:00
Prashanth Balasubramanian
ef6601646d
Migrate replication controllers to generic etcd
2015-03-23 17:59:25 -07:00
Robert Bailey
5c40bd61e4
Merge pull request #5794 from thockin/gcepd_name
...
Rename the JSON for GCEPersistentDisk, fix examples
2015-03-23 17:12:32 -07:00
Victor Marmol
fe65aa5dc9
Merge pull request #5748 from yujuhong/refactor
...
Kubelet: add podManager for managing internal pod storage
2015-03-23 16:53:27 -07:00
Nikhil Jindal
5c71e2ba00
Merge pull request #5769 from sdminonne/cleaning_labels
...
Removing dead code in labels package and changing LabelSelector type
2015-03-23 16:28:31 -07:00
Jeff Lowdermilk
7f7a004373
Merge pull request #5792 from ddysher/more-describe
...
More node describe, and 'kubectl describe' tests for all resources
2015-03-23 15:28:03 -07:00
Yu-Ju Hong
f440989017
Kubelet: add podManager for managing internal pod storage
...
This change moves pod array and mirrorPods into podManager, along with all
methods accessing these internal pod storages. This is the first step of the
refactoring, and no function change is involved.
2015-03-23 15:11:10 -07:00
Deyuan Deng
4939c1137c
Add node describe labels, creationTimestamp
2015-03-23 17:13:45 -04:00
Dawn Chen
fdfec4db2d
Introduced LastTerminateState
2015-03-23 13:54:46 -07:00
Tim Hockin
7ce59d9bc7
Rename the JSON for GCEPersistentDisk in internal
...
I know the internal JSO tags are slated for death. Until then, make them
correct. Also fix some examples of v1b3 conversions that did not rename the
JSON field.
2015-03-23 13:54:00 -07:00
Clayton Coleman
9bb797fe93
Rename NewREST -> NewStorage to align on terminology
2015-03-23 16:52:21 -04:00
Clayton Coleman
5a3f0adbcc
Remove older names
2015-03-23 16:52:21 -04:00
Clayton Coleman
d46087db50
Move REST* interfaces into pkg/api/rest
...
Dependency chain is now api -> api/rest -> apiserver. Makes the
interfaces much cleaner to read, and cleans up some inconsistenties
that crept in along the way.
2015-03-23 16:52:21 -04:00
Clayton Coleman
d020ca00b8
Pass hostname to all kubelet config sources instead of os.Hostname()
...
Make applyDefaults be tied to the current config source.
2015-03-23 15:58:45 -04:00
Clayton Coleman
b442f76961
Syntax errors in file_test were added right as validation became more strict
2015-03-23 14:43:09 -04:00
Saad Ali
e8f70428fb
Merge pull request #5715 from jszczepkowski/kubelet-nodesel
...
Running node selector predicate on kubelet.
2015-03-23 11:06:00 -07:00
Clayton Coleman
d19aac80ea
Merge pull request #5533 from smarterclayton/burn_yaml_with_fire
...
Burn YAML with fire (kind of)
2015-03-23 13:45:52 -04:00
Victor Marmol
adac4328e8
Merge pull request #5713 from AAzza/kubelet_build_parse_dockername
...
Refactor build/parse DockerName from Kubelet. #3511
2015-03-23 08:45:53 -07:00
Victor Marmol
4e3c07543e
Merge pull request #5784 from wojtek-t/applyDefaultsInTryDecode
...
Hide applyDefaults method under pkg/kubelet/config
2015-03-23 07:32:00 -07:00
Wojciech Tyczynski
b395c40e19
Refactor pkg/kubelet/config
2015-03-23 10:29:46 +01:00
Jerzy Szczepkowski
34a8a3a844
Running node selector predicate on kubelet.
...
Added checking on kubelet if scheduled pods have matching node selector. This is the last step to fix #5207 .
2015-03-23 08:21:58 +01:00
Clayton Coleman
65425f690c
Move field errors to pkg/util/fielderrors
...
Allows pkg/api to take a reference to labels.Selector and fields.Selector
2015-03-22 17:43:34 -04:00
Salvatore Dario Minonne
4c55689fb7
Removing dead code in labels package and chaning LabelSelector type
2015-03-22 18:03:50 +01:00
Nataliia Uvarova
73c2338320
Refactor build/parse dockername. #3511
...
Functions Build/ParseDockerName now work with struct instead of the long
list of arguments. This new struct also was reused in the kubelet.go
instead of auxilary podContainer struct.
2015-03-21 09:09:03 +01:00
Ravi Gadde
5871e53060
Add timeout to kubelet client
2015-03-20 18:46:45 -07:00
Victor Marmol
4d2e7981bb
Merge pull request #5730 from yujuhong/static_stats
...
Kubelet: support retrieving stats using UID of mirror pods
2015-03-20 17:05:23 -07:00
Yu-Ju Hong
f3f3c8f151
Fix volume imports
2015-03-20 16:22:35 -07:00
Yifan Gu
3b4685ef6c
kubelet.runtime: update the import path for volume.
2015-03-20 16:16:27 -07:00
Yu-Ju Hong
15e9760bd4
Kubelet: support retrieving stats using UID of mirror pod
...
Kubelet supports retrieving stats for pods/containers with and without UID.
This does not always work for the static pods because users may get the UIDs of
the mirror pods from the API server, and use them to query Kubelet. In this
case, Kubelet would fail to locate the containers due to mismatched UIDs.
This change adds a intenral mirror to static pod UID mapping and teaches all
public-facing functions to perform UID lookup before proceeding. This allows
users to use either mirror or static pod's UID to retrieve stats.
2015-03-20 15:40:49 -07:00
Vish Kannan
f118ca8fb4
Merge pull request #5642 from thockin/volume_multi_plugins
...
Prep for multiple kinds of volume plugins
2015-03-20 15:12:30 -07:00
Saad Ali
f57540c7a0
Merge pull request #5532 from nikhiljindal/event
...
Adding GetFieldSelector() to client.EventInterface
2015-03-20 15:05:14 -07:00
Dawn Chen
fbd362d3c7
Merge pull request #5572 from yifan-gu/rkt_support
...
Add container runtime
2015-03-20 14:38:48 -07:00
Dawn Chen
7a6490f572
Merge pull request #5729 from thockin/plural_endpoints_30_restart
...
Rename Service.ContainerPort to TargetPort in v1b3
2015-03-20 14:37:46 -07:00
Yu-Ju Hong
0206115703
Merge pull request #5697 from vmarmol/doc
...
Correct documentation about stats arguments.
2015-03-20 14:22:33 -07:00
Victor Marmol
5cfe0c04f8
Merge pull request #5705 from wojtek-t/refactor_file_test
...
Refactor pkg/kubelet/config/file_test.go
2015-03-20 14:08:06 -07:00
nikhiljindal
1b87060aec
Adding GetFieldSelector() to client.EventInterface
2015-03-20 13:58:23 -07:00
Tim Hockin
4375376e9c
Rename Service.ContainerPort to TargetPort in v1b3
...
Fix all callers and examples. Part of multi-port service cleanup.
2015-03-20 13:50:06 -07:00
Tim Hockin
bfadae77e0
Promote volume plugins, prep for persistent vols
...
Move pkg/kubelet/volume/... to pkg/volume/...
Some renames to make the soon-to-come persistent volumes work clearer.
2015-03-20 13:49:40 -07:00
Yifan Gu
487d34e409
kubelet: add container runtime cache and fake runtime.
2015-03-20 13:15:20 -07:00
Yifan Gu
319d537cf9
kubelet: add container runtime interface.
2015-03-20 13:15:20 -07:00
Wojciech Tyczynski
9c4ef28b2d
Comments
2015-03-20 20:13:16 +01:00
Wojciech Tyczynski
3b367f8ab8
Refactor file_test.go
2015-03-20 20:13:16 +01:00
Abhishek Gupta
b0c23c1046
Headless Services: Adding option to specify None for PortalIP
2015-03-20 12:10:03 -07:00
Victor Marmol
c5f73516b6
Merge pull request #5704 from wojtek-t/kubelet_file_read_pod
...
Kubelet read pods from file
2015-03-20 10:00:49 -07:00
Victor Marmol
e94c5c3fa9
Merge pull request #5677 from smarterclayton/remove_healthz_global
...
Remove global map from healthz
2015-03-20 08:32:39 -07:00
Satnam Singh
ec77230386
Merge pull request #5416 from smarterclayton/use_utc_serialized_and_local_otherwise
...
Use UTC when marshalling times and Local when unmarshalling
2015-03-20 08:32:26 -07:00
Victor Marmol
dd74fa7f85
Merge pull request #5703 from fgrzadkowski/empty_pod_docs
...
Add documentation explaining there must be at least one container in a Pod
2015-03-20 08:07:25 -07:00
Wojciech Tyczynski
7a7e64331c
Kubelet file read both ContainerManifest and Pod
2015-03-20 12:09:09 +01:00
Filip Grzadkowski
a48e9af28d
Add documentation explaining there must be at least one container in a Pod
2015-03-20 11:10:30 +01:00
Wojciech Tyczynski
c5d8c391fb
Refactor kubelet/config to share code
2015-03-20 09:40:52 +01:00
Victor Marmol
fc8f4411ef
Correct documentation about stats arguments.
2015-03-19 22:11:04 -07:00
Clayton Coleman
6918a4d32e
Replace automatic YAML decoding with opt-in YAML decoding
...
Base codecs no longer automically handle YAML. Instead, clients
must convert to JSON first via yaml.ToJSON and runtime.YAMLDecoder.
2015-03-20 00:03:56 -04:00
Clayton Coleman
71abc99dbe
Expose a ToJSON and runtime.YAMLDecoder helper
...
Enables clients to optionally handle YAML
2015-03-20 00:03:56 -04:00
Clayton Coleman
022c103699
Update RollingUpdater to use resource.Builder
...
Remove last usage of ResourceFromFile
2015-03-20 00:03:54 -04:00
Clayton Coleman
84ab8f7254
Reduce probe logging level
...
Too chatty for normal operation
2015-03-19 23:06:21 -04:00
Victor Marmol
b6d2cf4b3e
Merge pull request #5685 from yujuhong/pod_status
...
Kubelet: per-pod workers should avoid grabbing the pod array lock
2015-03-19 18:54:36 -07:00
Yu-Ju Hong
0d0fb5f07b
Kubelet: per-pod workers should avoid grabbing the pod array lock
...
Per-pod worker syncs the pod and container status, and write the pod status in
the pod status cache. Given that it already owns a copy of the pod, it can
bypass the additional pod lookup step completely. This change adds a new
generatePodStatusByPod() method to achieve this. In general, per-pod worker
should avoid accessing the internal pod array completely, as this would may
lead to high contention.
This change also changes the return type of GetPodByFullName to reflect the
name, and consolidates GetPodByFullName() and GetPodByName().
2015-03-19 18:25:41 -07:00
Brian Grant
699dc96c7b
Merge pull request #5085 from smarterclayton/allow_graceful_delete
...
Support graceful deletion of resources
2015-03-19 17:58:31 -07:00
Clayton Coleman
015bc3b7bd
Remove global map from healthz
...
It currently is impossible to use two healthz handlers on different
ports in the same process. This removes the global variables in favor
of requiring the consumer to specify all health checks up front.
2015-03-19 19:49:44 -04:00
Tim Hockin
1cbde2c5c7
Merge pull request #5664 from calfonso/nfs_mount_plugin
...
Addresses cross compile for syscall.Unmount by delegating to Mount.
2015-03-19 16:19:01 -07:00
Tim Hockin
4ee6eb8c73
Make net plugins build on non-unix
2015-03-19 16:15:33 -07:00
CJ Cullen
7ddcecfd1c
Revert "Revert "[WIP] southbound networking hooks in kubelet""
2015-03-19 16:14:13 -07:00
Zach Loafman
b5d1e538df
Revert "[WIP] southbound networking hooks in kubelet"
2015-03-19 16:08:08 -07:00
Tim Hockin
1ce5dda691
Merge pull request #5069 from rajatchopra/network_hooks
...
[WIP] southbound networking hooks in kubelet
2015-03-19 15:03:53 -07:00
CJ Cullen
f6d8d5f800
Merge pull request #5522 from fabioy/expose-label.fix
...
Add "--labels" option to the "expose" kubectl command.
2015-03-19 14:40:15 -07:00
Rajat Chopra
7857aa7751
kubelet networking plugin
2015-03-19 14:15:52 -07:00
Chris Alfonso
9d0c9e7dc3
Addresses cross compile for syscall.Unmount by delegating to Mount.
2015-03-19 16:46:14 -04:00
Jerzy Szczepkowski
c0ff504ad3
Merge pull request #5501 from jszczepkowski/kubelet-spechost
...
Running resource predicate on kubelet.
2015-03-19 21:34:27 +01:00
Clayton Coleman
428d2263e5
Graceful deletion of resources
...
This commit adds support to core resources to enable deferred deletion
of resources. Clients may optionally specify a time period after which
resources must be deleted via an object sent with their DELETE. That
object may define an optional grace period in seconds, or allow the
default "preferred" value for a resource to be used. Once the object
is marked as pending deletion, the deletionTimestamp field will be set
and an etcd TTL will be in place.
Clients should assume resources that have deletionTimestamp set will
be deleted at some point in the future. Other changes will come later
to enable graceful deletion on a per resource basis.
2015-03-19 15:33:32 -04:00
Victor Marmol
6f6485909e
Merge pull request #5598 from wojtek-t/kubelet_http_read_pod
...
Kubelet read pods from http
2015-03-19 11:49:28 -07:00
Tim Hockin
9bc2b0c2db
Merge pull request #4601 from calfonso/nfs_mount_plugin
...
NFSMount storage plugin for kubelet.
2015-03-19 11:19:12 -07:00
Victor Marmol
84ee72d4a7
Merge pull request #5631 from dchen1107/podstatus
...
Remove PodIP from ContainerStatus
2015-03-19 11:03:10 -07:00
Wojciech Tyczynski
c512c549a1
Kubelet http read both ContainerManifest and Pod
2015-03-19 18:57:00 +01:00
Dawn Chen
4910be6dcb
Remove PodIP from ContainerStatus
2015-03-19 10:42:01 -07:00
Chris Alfonso
1a45e37d17
NFSMount storage plugin for kubelet.
...
* If you want to test this out when an actual NFS export a good place
to start is by running the NFS server in a container:
docker run -d --name nfs --privileged cpuguy83/nfs-server /tmp
More detail can be found here:
https://github.com/cpuguy83/docker-nfs-server
2015-03-19 13:37:38 -04:00
CJ Cullen
2e7356bca7
Merge pull request #5534 from bprashanth/generic_storage_interface
...
Add a GenericRESTStorage interface
2015-03-19 09:35:06 -07:00
CJ Cullen
80914498e4
Merge pull request #5610 from jlowdermilk/kubectl-flags
...
Declare kubectl validate flag once
2015-03-19 09:26:10 -07:00
Filip Grzadkowski
f89f91b7bd
Validate that there is at least one container in the pod
2015-03-19 12:31:53 +01:00
Jerzy Szczepkowski
5845f6ad48
Running resource predicate on kubelet.
...
Added checking on kubelet if scheduled pods do not exceed resources. Related to #5207 .
2015-03-19 10:40:10 +01:00
gmarek
cbf57ee324
Merge pull request #5588 from hurf/master
...
Fix comments on caculating scores.
2015-03-19 07:44:11 +01:00
Yu-Ju Hong
187cbcfabf
Merge pull request #5627 from vmarmol/fix-test
...
Fix data race in imageManager test.
2015-03-18 18:24:18 -07:00
Yu-Ju Hong
05c61d2e47
Merge pull request #5622 from vmarmol/http
...
Add SelfLink to Kubelet http source.
2015-03-18 18:09:05 -07:00
Victor Marmol
6db6e41a34
Merge pull request #5632 from yujuhong/manifest
...
kubelet/config/http_test: use versioned ContainerManifest
2015-03-18 17:58:19 -07:00
Yu-Ju Hong
7b71780dfc
kubelet/config/http_test: use versioned ContainerManifest
2015-03-18 17:40:40 -07:00
Dawn Chen
52e1ee9d5b
Merge pull request #5619 from vmarmol/rate
...
Spread out pod status updates to apiserver.
2015-03-18 17:26:02 -07:00
Victor Marmol
3a3b950009
Fix data race in imageManager test.
...
The background monitoring thread was using the DockerClient before we
had written our fake data. This commit stops the background thread from
running during tests.
Fixes #5611 .
2015-03-18 17:02:03 -07:00
Victor Marmol
ce96182cc3
Add SelfLink to Kubelet http source.
2015-03-18 16:38:41 -07:00
Prashanth Balasubramanian
960e16c397
Embed etcdgeneric in RESTStorage for pods
2015-03-18 16:31:33 -07:00
Brian Grant
11f9733599
Merge pull request #5587 from nikhiljindal/enable3
...
Updating integration tests to test both API versions - v1beta1 and 3
2015-03-18 16:14:20 -07:00
Victor Marmol
cda4b6c598
Spread out pod status updates to apiserver.
...
Lowers pod status interval to every 2m and spreads updates within that
time window.
2015-03-18 15:43:07 -07:00
nikhiljindal
7e36bbab3c
Updating integration tests to test both API versions - v1beta1 and 3
2015-03-18 15:24:11 -07:00
Clayton Coleman
d516a86633
Use UTC when marshalling times and Local when unmarshalling
...
Marshal to UTC and read into Local, which means clients automatically
show local time and stored values are always consistent.
2015-03-18 17:44:35 -04:00
Yifan Gu
027f6854d0
kubelet: Remove docker container in prober's interface
...
Also change
kubelet.docketIDToRef[dockertools.DockerID]*api.ObjectReference{} to
kubelet.containerIDToRef[string]*api.ObjectReference{}.
2015-03-18 14:28:27 -07:00
Jeff Lowdermilk
39211af25e
Declare kubectl validate flag once
2015-03-18 14:00:19 -07:00
Yu-Ju Hong
6e8a8b741a
Kubelet: simplify the lock acquring pattern
...
Avoid holding both podStatusesLock and podLock at the same time.
2015-03-18 11:45:29 -07:00
CJ Cullen
c34200824c
Merge pull request #5584 from brendandburns/err
...
start normalizing error handling in watch.
2015-03-18 10:49:34 -07:00
Jeff Lowdermilk
72699606a9
Merge pull request #5541 from deads2k/deads-expose-resolve-local-paths
...
allow any number of kubeconfig files
2015-03-18 10:46:47 -07:00
Victor Marmol
9586b39bb7
Merge pull request #5555 from fgrzadkowski/sync_pod_status
...
Periodically update pod status from kubelet.
2015-03-18 10:14:07 -07:00
Jeff Lowdermilk
e92067d102
Merge pull request #5481 from TamerTas/issue#4470
...
Remove cmd from kubectl/cmd/factory
2015-03-18 10:03:25 -07:00
Dawn Chen
f746123438
Merge pull request #5580 from ncdc/docker-ParseRepositoryTag
...
Use docker's ParseRepositoryTag when pulling
2015-03-18 08:55:56 -07:00
Dawn Chen
9e781bc57d
Merge pull request #5569 from vmarmol/image-gc
...
Garbage collecting images in the Kubelet.
2015-03-18 08:55:08 -07:00
Tamer Tas
b39e31d8a3
Remove cmd from kubectl/cmd/factory
2015-03-18 14:23:14 +02:00
Filip Grzadkowski
1a352b74ba
Periodically update pod status from kubelet.
2015-03-18 12:11:39 +01:00
gmarek
a3b137ce8e
Cleanup of validation.go
2015-03-18 08:59:35 +01:00
Brendan Burns
6d763dce2b
start normalizing error handling in watch.
2015-03-17 21:04:55 -07:00
Victor Marmol
d78ecf820e
Garbage collecting images in the Kubelet.
...
Integrated the imageManager into the Kubelet and applies the garbage
collection policy every 5 minutes. The default policy allows up to 90%
disk usage, after which images are garbage collected to bring limit back
down to 80%.
Fixes #157 .
2015-03-17 17:56:02 -07:00
Jeff Lowdermilk
faab509a23
Merge pull request #5543 from you-n-g/master
...
add get available versions commmand
2015-03-17 17:34:33 -07:00
Andy Goldstein
7b07960758
Use docker's ParseRepositoryTag when pulling
2015-03-17 20:15:13 -04:00
Tim Hockin
7e42fc86fd
Merge pull request #5573 from brendandburns/err
...
Set the emptyNameError to be a bad request. Always return a JSON error.
2015-03-17 16:43:22 -07:00
Brendan Burns
4725ecac3f
Set the emptyNameError to be a bad request. Always return a JSON error.
2015-03-17 16:17:14 -07:00
Yu-Ju Hong
b84de4e986
Merge pull request #5571 from vmarmol/fix
...
Adding errors to Kubelet events.
2015-03-17 16:14:58 -07:00
Dawn Chen
cbe4a1a679
Merge pull request #5510 from vmarmol/gc
...
Introduce and implement container GC policy
2015-03-17 16:02:17 -07:00
Victor Marmol
0c664a343c
Adding errors to Kubelet events.
...
This will help while debugging issues that generate events.
Also removed unecessary log line.
2015-03-17 15:55:25 -07:00
Zach Loafman
5496686f33
Revert "Use docker's ParseRepositoryTag when pulling"
2015-03-17 15:16:33 -07:00
Salvatore Dario Minonne
31ddefc347
Finalize fields.Selector
2015-03-17 22:55:43 +01:00
Dawn Chen
2a5610dbcb
Merge pull request #5558 from ncdc/docker-ParseRepositoryTag
...
Use docker's ParseRepositoryTag when pulling
2015-03-17 12:56:22 -07:00
Victor Marmol
d1ed571e28
Use containerGC in the Kubelet.
...
New policy default is 100 containers max.
Fixes #5457 .
2015-03-17 10:50:32 -07:00
Victor Marmol
4c17c09a8f
Separate GC policy into containerGC struct.
...
The policy today takes a min GC age, max dead containers per pod, and
max containers overall. When GC is called, only dead containers created
more than min GC age ago are considered. The policy tries to keep one
dead instance of every pod's containers.
2015-03-17 10:50:06 -07:00
Dawn Chen
5a04bf6316
Merge pull request #5512 from vmarmol/igc
...
Introduce and implement image GC policy
2015-03-17 10:36:22 -07:00
Victor Marmol
6b9b2a5ef1
Merge pull request #5401 from yujuhong/syncstatic
...
Sync static pods from Kubelet to the API server
2015-03-17 10:36:05 -07:00
Andy Goldstein
c08f41c18b
Use docker's ParseRepositoryTag when pulling
2015-03-17 13:23:17 -04:00
fabioy
401451c510
Add "--labels" option to the "expose" kubectl command.
2015-03-17 09:47:57 -07:00
Victor Marmol
6bcbf12a3d
Add image garbage collection policy to imageManager.
2015-03-17 09:19:04 -07:00
Victor Marmol
303a1f7ea1
Adding cAdvisor API to get image usage information.
2015-03-17 09:17:38 -07:00
Tim Hockin
879a39bcc4
Merge pull request #5192 from quinton-hoole/2015-03-06-service-namespace-clash
...
Fix service namespace clash
2015-03-17 09:10:50 -07:00
Yu-Ju Hong
929fb63b33
Sync static pods from Kubelet to the API server
...
Currently, API server is not aware of the static pods (manifests from
sources other than the API server, e.g. file and http) at all. This is
inconvenient since users cannot check the static pods through kubectl.
It is also sub-optimal because scheduler is unaware of the resource
consumption by these static pods on the node.
This change syncs the information back to the API server by creating a
mirror pod via API server for each static pod.
- Kubelet creates containers for the static pod, as it would do
normally.
- If a mirror pod gets deleted, Kubelet will re-create one. The
containers are sync'd to the static pods, so they will not be
affected.
- If a static pod gets removed from the source (e.g. manifest file
removed from the directory), the orphaned mirror pod will be deleted.
Note that because events are associated with UID, and the mirror pod has
a different UID than the original static pod, the events will not be
shown for the mirror pod when running `kubectl describe pod
<mirror_pod>`.
2015-03-17 08:45:56 -07:00
Victor Marmol
668e2dbcd8
Merge pull request #5502 from wojtek-t/completely_remove_bound_pods
...
Remove BoundPod type from source code
2015-03-17 08:09:50 -07:00
Brendan Burns
5fb18c6f33
Merge pull request #5101 from justinsb/aws_getnoderesources
...
Add support for GetNodeResources to AWS
2015-03-17 07:30:34 -07:00
Brendan Burns
b2ed6b3255
Merge pull request #3171 from anguslees/openstack-provider
...
OpenStack updates
2015-03-17 07:30:08 -07:00
Young
97b647207e
add get available versions commmand
2015-03-17 13:51:18 +00:00
Filip Grzadkowski
18b728ff44
Revert "Periodically update pod status from kubelet."
2015-03-17 13:51:45 +01:00
deads2k
8555ed3ede
allow any number of kubeconfig files
2015-03-17 08:49:34 -04:00
Wojciech Tyczynski
e6d188fca8
Remove BoundPod structure
2015-03-17 10:27:41 +01:00
Quinton Hoole
cc72eaec3a
Fix services namespace clash.
...
Serve identically names services in different namespaces on different external IP addresses.
2015-03-16 18:19:19 -07:00
Victor Marmol
c04ceec27f
Merge pull request #5531 from GoogleCloudPlatform/rel-0.13
...
Release 0.13.0
2015-03-16 17:06:57 -07:00
Victor Marmol
009737e69e
Merge pull request #5205 from fgrzadkowski/sync_pod_status
...
Periodically update pod status from kubelet.
2015-03-16 17:04:31 -07:00
Victor Marmol
fa23519387
Merge pull request #5167 from thockin/volume_wrapper_plugins
...
Implement volume wrapper plugins
2015-03-16 16:37:50 -07:00
Brendan Burns
7fbf52a599
Kubernetes version v0.13.0-dev
2015-03-16 16:31:03 -07:00
Brendan Burns
8d8b9b9a78
Kubernetes version v0.13.0
2015-03-16 16:31:03 -07:00
Tim Hockin
b42652cd3d
Retool mount detection for tests
2015-03-16 16:17:47 -07:00
Brian Grant
407589147e
Merge pull request #5005 from jdef/persistent_bindings
...
Persist Bindings annotations alongside pod Host assignment
2015-03-16 16:16:44 -07:00
Brian Grant
2f9a41b898
Merge pull request #5233 from brendandburns/labels
...
Make label and field selector query strings versionable.
2015-03-16 16:01:37 -07:00
Filip Grzadkowski
336525a27d
Periodically update pod status from kubelet.
2015-03-16 23:03:03 +01:00
Tim Hockin
9eebaa8168
Merge pull request #4115 from sub-mod/master_changes
...
Use discovery heuristics in ChooseHostInterface method to fetch PublicAddress
2015-03-16 14:31:15 -07:00
Derek Carr
1291401c2e
Merge pull request #5516 from smarterclayton/add_ttl_to_helper
...
Add TTL support to etcd_helper in preparation for graceful delete
2015-03-16 17:14:35 -04:00
Tim Hockin
1725c23eb2
Implement volume plugin wrappers
...
Convert git_repo and secret into wrappers around empty_dir.
2015-03-16 14:07:58 -07:00
Victor Marmol
bdc1981eb5
Merge pull request #5433 from wojtek-t/remove_bound_pods
...
Remove BoundPods from Kubelet
2015-03-16 13:38:24 -07:00
Clayton Coleman
bddef32193
Prepare EtcdHelper to extract more data from Node
...
In order to support graceful deletion, the resource object will
need access to the TTL value in etcd. Also, in the future we
may want to get the creation index (distinct from modifiedindex)
and expose it to clients. Change EtcdResourceVersioner to be
more type specific (objects vs lists) and provide a default
implementation that relies on the internal API convention.
Also, rename etcd_tools.go to etcd_helper.go and split a few
things up.
2015-03-16 15:33:50 -04:00
Nikhil Jindal
d1dc17120d
Merge pull request #4880 from smarterclayton/better_describe
...
Make Describe functions available to local objects
2015-03-16 12:19:22 -07:00
Clayton Coleman
4ca90e0343
FakeEtcdClient should return KeyNotFound on Delete
2015-03-16 14:22:03 -04:00
Clayton Coleman
143015025a
Support TTL in genericetcd#Update
2015-03-16 14:22:01 -04:00
Wojciech Tyczynski
5d95e9e671
Remove BoundPods from Kubelet
2015-03-16 19:17:21 +01:00
Subin M
1138045185
use ChooseHostInterface to get IP
2015-03-16 23:37:00 +05:30
Jeff Lowdermilk
e37fd2a84d
Merge pull request #5477 from dchen1107/clean
...
Convert RestartPolicy to string for v1beta3.
2015-03-16 10:23:52 -07:00
Jeff Lowdermilk
2a8528704a
Merge pull request #5446 from lavalamp/fix2
...
Add a system modeler to scheduler
2015-03-16 10:21:02 -07:00
Jeff Lowdermilk
231d6739d4
Merge pull request #5458 from mattmoor/master
...
Enable usage of a "json key" for authenticating with gcr.io.
2015-03-16 10:12:33 -07:00
Jeff Lowdermilk
f3cb9949a7
Merge pull request #5484 from smarterclayton/dont_warn_on_existing
...
Don't log when auto-published services and namespace exist already
2015-03-16 09:54:19 -07:00
Clayton Coleman
fe7a573315
Merge pull request #5369 from derekwaynecarr/namespace_registry
...
Improvements to namespace registry to align with pod model
2015-03-16 11:14:05 -04:00
Robert Bailey
26acbc417b
Merge pull request #5452 from piosz/fixes
...
Increased default timeout in APIServer to 2 minutes
2015-03-16 08:06:28 -07:00
derekwaynecarr
9824d2b5f7
Embed generic etcd in namespace rest store
2015-03-16 10:45:04 -04:00
derekwaynecarr
2d13dfaf13
Improvements to namespace registry to align with pod model
2015-03-16 10:16:28 -04:00
Angus Lees
1437e6b7ca
OpenStack: Return multiple private+public NodeAddresses
...
Add better support for the new NodeAddresses call. Note the returned
list may include IPv6 addresses (as strings) on many OpenStack clouds.
2015-03-16 17:11:36 +11:00
Angus Lees
8f5064bfea
nodecontroller: Include error in error messages
...
Makes debugging node creation failures far easier...
2015-03-16 15:36:45 +11:00
Angus Lees
437853b8cd
Keep resources as numeric values
...
Previously, this code converted to a string and reparsed back to a
numeric Quantity. Keeping it numeric avoids the overhead, but also
removes a (theoretical) run-time panic if the re-parse failed.
In addition, since Quantity can now store quantities <1, convert
openstack.org/rxTxFactor back to its original ratio, rather than
arbitrarily scaling it up by 1000.
2015-03-16 15:35:45 +11:00
Angus Lees
e14b73bd30
Reauthenticate to OpenStack periodically
...
It appears that gophercloud's "AllowReauth" AuthOption doesn't actually
do anything, and the keystone/auth token is never refreshed. Eventually
it expires and all OpenStack calls receive HTTP 401 responses.
This change reauthenticates every time the Instances() or
TCPLoadBalancer() API object is requested. This is more frequently than
required, but exposing token expiry information will require gophercloud
surgery.
2015-03-16 15:35:45 +11:00
Angus Lees
762225ed47
OpenStack: Align logging levels with devel/logging.md
2015-03-16 15:35:43 +11:00
Angus Lees
4ff292a65e
OpenStack: Support loadbalancer client IP affinity
2015-03-16 15:33:54 +11:00
Clayton Coleman
85d96f9e7a
Make describe able to be invoked on local resources
...
Support a more flexible access mechanism for getting a describer given
only an object.
2015-03-16 00:09:20 -04:00
Matt Moore
d5e0054eb0
Enable usage of a "json key" for authenticating with gcr.io.
...
With this change, you can add --google_json_key=/path/to/key.json to the DAEMON_ARGS of the kubelet, e.g.
nano /etc/default/kubelet
... # Add the flag
service kubelet restart
With this setting, minions will be able to authenticate with gcr.io repositories nearly as smoothly as if K8s were running on GCE.
NOTE: This private key can be used to access most project resources, consider dropping the service account created through this flow to a project READER, or restricting its access to just the GCS bucket containing the container images.
2015-03-15 09:24:33 -07:00
Clayton Coleman
893a64f2ed
Don't log when auto-published services and namespace exist already
...
Also, be a bit less chatty w.r.t. master setDefaults
2015-03-14 13:07:56 -04:00
Piotr Szczesniak
ffcf7b1866
Increased default timeout in APIServer to 2 minutes
...
This should for #5431
2015-03-14 06:54:31 +01:00
Justin Santa Barbara
51aded0661
Add support for GetNodeResources to AWS
2015-03-13 22:59:28 -04:00
Dawn Chen
34e9c82c70
Convert RestartPolicy to string for v1beta3.
...
Fixed #3607 and spiritually support #5475
2015-03-13 18:38:07 -07:00
Daniel Smith
992d78a32e
Add a system modeler to scheduler
...
So it can try to predict the effect its bindings will have.
2015-03-13 17:48:16 -07:00
Dawn Chen
39b52e92a9
Merge pull request #5308 from vmarmol/cadvisor-build
...
Run cAdvisor inside Kubelet
2015-03-13 16:41:40 -07:00
Eric Tune
e214802e45
Merge pull request #5460 from derekwaynecarr/eliminate_resource_quota_usage
...
Eliminate resource quota usage
2015-03-13 16:10:26 -07:00
Victor Marmol
dc96ea6300
Run cAdvisor inside the Kubelet.
...
cAdvisor is started as a Kubelet dependency during startup of the
Kubelet before the sync loops start.
2015-03-13 16:06:02 -07:00
Victor Marmol
b00e82ed93
Merge pull request #5466 from dchen1107/docker
...
Fix a regression introduced lately: When any given PodInfraContainer on ...
2015-03-13 16:04:01 -07:00
Satnam Singh
ce7658a302
Merge pull request #5445 from vmarmol/unused
...
Remove unused handleUpdate() in Kubelet.
2015-03-13 16:00:17 -07:00
Dawn Chen
732d4cb2b9
Fix a regression introduced lately: When any given PodInfraContainer on a node
...
is killed, kubelet kills all remaining containers no matter which pod that
container belongs to.
Fixed #5373
2015-03-13 15:46:30 -07:00
Alex Robinson
579edee4c2
Merge pull request #5346 from justinsb/cloudprovider_multiple_addresses
...
Let CloudProvider return list of NodeAddress, not just one net.IP
2015-03-13 15:45:11 -07:00
Dawn Chen
0cc2b62b4a
Merge pull request #5265 from ddysher/kubelet-post-status
...
kubelet post node status to master
2015-03-13 15:29:22 -07:00
Justin Santa Barbara
c3a6d00099
Rename TestIPAddress -> TestNodeAddresses
2015-03-13 18:09:31 -04:00
Justin Santa Barbara
99da56fb06
Fix problems identified in review
2015-03-13 18:07:08 -04:00
Victor Marmol
efcde725cc
Merge pull request #5166 from thockin/tmpfs
...
Add tmpfs support as a flag on emptyDir
2015-03-13 14:48:52 -07:00
Daniel Smith
b02412f44e
Merge pull request #5443 from bprashanth/rc_validation
...
Add an rc strategy, start delta validating updates
2015-03-13 13:52:19 -07:00
derekwaynecarr
799e3fa9cc
Eliminate ResourceQuotaUsage in favor of ResourceQuota status
2015-03-13 16:52:09 -04:00
derekwaynecarr
df5744ad8f
ResourceQuota should have labels in v1beta1 and v1beta2
2015-03-13 16:52:08 -04:00
Tim Hockin
caca5e7358
Add tmpfs support to EmptyDir
...
# *** ERROR: *** docs are out of sync between cli and markdown
# run hack/run-gendocs.sh > docs/kubectl.md to regenerate
#
# Your commit will be aborted unless you regenerate docs.
COMMIT_BLOCKED_ON_GENDOCS
2015-03-13 13:36:13 -07:00
Tim Hockin
50c96789e7
Add an action log to FakeMounter.
...
# *** ERROR: *** docs are out of sync between cli and markdown
# run hack/run-gendocs.sh > docs/kubectl.md to regenerate
#
# Your commit will be aborted unless you regenerate docs.
COMMIT_BLOCKED_ON_GENDOCS
2015-03-13 13:33:50 -07:00
Prashanth Balasubramanian
6193608e9b
Add an rc strategy, start delta validating updates
2015-03-13 13:09:03 -07:00
Victor Marmol
22f306299b
Merge pull request #5438 from timothysc/kube-profiling
...
Option to enable profiling on the master daemon processes.
2015-03-13 12:52:50 -07:00
Daniel Smith
e3594dfe2f
Merge pull request #5404 from derekwaynecarr/delete_events
...
Client support to delete events
2015-03-13 12:36:43 -07:00
Brendan Burns
cf68593fc2
Merge pull request #5228 from justinsb/aws_lb_string
...
Change cloud provider CreateTCPLoadBalancer to return endpoint as string
2015-03-13 12:16:26 -07:00
Vish Kannan
13253d09e1
Merge pull request #5444 from vmarmol/lock
...
Lock access and update to Kubelet pods.
2015-03-13 11:06:50 -07:00
Deyuan Deng
97e12957e6
Merge pull request #5257 from deads2k/deads-eliminate-wait-for-no-nodes
...
eliminate wait with no nodes
2015-03-13 13:48:49 -04:00
Victor Marmol
505dbc54db
Merge pull request #5022 from gmarek/client3
...
Refactor kubelet syncPod method and fix behavior of Infra Containers for RestartPolicy::Never.
2015-03-13 10:46:35 -07:00
Victor Marmol
04233cdb88
Remove unused handleUpdate() in Kubelet.
2015-03-13 10:35:50 -07:00
Victor Marmol
0e485310cf
Lock access and update to Kubelet pods.
2015-03-13 10:31:26 -07:00
Brendan Burns
6319f8a568
Merge pull request #5400 from sub-mod/proxy_test
...
fix proxy_test.go file to avoid ChooseHostInterface
2015-03-13 10:27:45 -07:00
gmarek
3489d1ae01
Refactor kubelet syncPod method
2015-03-13 18:22:42 +01:00
Rohit Jnagal
203f37a58a
Merge pull request #5240 from xudifsd/rm-double-write-in-apiserver-proxy
...
Redirector.ResourceLocation shouldn't return `"", nil`
2015-03-13 09:20:46 -07:00
Timothy St. Clair
7eebf674d4
Update to option enable profiling on the master daemon processes.
...
--profiling=true , default is false
2015-03-13 10:45:01 -05:00
Satnam Singh
53b25a7890
Merge pull request #5429 from jszczepkowski/podfactory
...
Cleanup: removed BoundPodFactory.
2015-03-13 08:13:22 -07:00
Satnam Singh
27c51ee6f5
Merge pull request #5430 from wojtek-t/remove_etcd_references_from_replication_controllers
...
Remove etcd references from ReplicationController
2015-03-13 07:54:08 -07:00
Satnam Singh
df0838ed31
Merge pull request #5426 from nikhiljindal/swagger
...
Updating api_installer to register paths in a deterministic order to get a deterministic swagger spec
2015-03-13 07:48:44 -07:00
James DeFelice
20eb3c49c5
resolves #4103
...
clarify resource conflict status, rebase to master
remove ResourceConflict, replace usage with Conflict
2015-03-13 12:16:51 +00:00
Jerzy Szczepkowski
ba9d02c0c7
Cleanup: removed BoundPodFactory.
...
Removed unused code: BoundPodFactory. Fixes #5384 .
2015-03-13 10:44:25 +01:00
Wojciech Tyczynski
07cf658100
Remove etcd references from ReplicationController
2015-03-13 10:36:54 +01:00
nikhiljindal
5b1e8589e9
Updating api_installer to register paths in a deterministic order to get a deterministic swagger spec
2015-03-12 22:55:17 -07:00
Di Xu
3fac253536
Redirector.ResourceLocation shouldn't return "", nil
2015-03-13 08:26:46 +08:00
Victor Marmol
4675fcc57d
Make ParseDockerName() return an error.
...
This forces callers to handle cases where the container name could not
be parsed.
2015-03-12 16:33:16 -07:00
Brian Grant
7d72b64f60
Merge pull request #5200 from nikhiljindal/eventConverter
...
Adding conversion functions for event field selectors
2015-03-12 16:31:57 -07:00
Brian Grant
98fedf6b2e
Merge pull request #5407 from nikhiljindal/newSwagger
...
Updating go-restful to the latest version
2015-03-12 16:26:16 -07:00
nikhiljindal
b2276b5d4b
Updating pkg/api/validation/ to consider swagger.items as object and not array
2015-03-12 16:04:11 -07:00
Nikhil Jindal
d9249a26e0
Merge pull request #5175 from thockin/plural_services_10
...
Make testing service validation easier
2015-03-12 15:48:37 -07:00
Deyuan Deng
ae162fded4
Merge pull request #4585 from pravisankar/deactivate-node
...
Allow admin user to explicitly unschedule the node
2015-03-12 18:09:02 -04:00
Satnam Singh
b5082b2904
Merge pull request #5397 from brendandburns/master
...
Fix tests on OS X by re-introducing the old choose host interface
2015-03-12 14:31:31 -07:00
Ravi Sankar Penta
f6ecec5880
Allow admin user to explicitly unschedule the node
...
Setting Unschedulable on the node will not touch any existing pods
on the node but will block scheduling of new pods on the node.
2015-03-12 14:27:27 -07:00
nikhiljindal
790a8bbd23
Adding conversion functions for event field selectors
2015-03-12 14:10:51 -07:00
derekwaynecarr
703d2a87bf
Client support to delete events
2015-03-12 16:55:31 -04:00
Subin M
269ad3216f
fix proxy_test.go file to avoid ChooseHostInterface
2015-03-13 01:40:48 +05:30
Dawn Chen
ee4e887183
Merge pull request #5395 from vmarmol/fix
...
Garbage collect unidentified Kubernetes containers.
2015-03-12 12:58:22 -07:00
Brendan Burns
fab2b53ccf
Fix tests on OS X by re-introducing the old choose host interface
...
function as a fall back.
2015-03-12 12:33:06 -07:00
Brendan Burns
266234f3b9
Make label and field selector query strings versionable.
2015-03-12 12:24:07 -07:00
Victor Marmol
51122998e3
Garbage collect unidentified Kubernetes containers.
...
These containers may be caused by a change in the Kubernetes naming
convention. The old containers are killed, the new ones started, but the
old ones are never GC'd. This change makes Kubelet GC all Kubernetes
containers, old and new.
Fixes #5372 .
2015-03-12 11:40:35 -07:00
Satnam Singh
27c77567d9
Merge pull request #5342 from nikhiljindal/masterUrl
...
Adding http:// prefix to the swagger WebServicesURL to prevent basePath validation errors
2015-03-12 10:58:36 -07:00
Brian Grant
19b6c85fa5
Merge pull request #5363 from wojtek-t/no_bound_pods_in_scheduler
...
Make scheduler to watch PodSpec.Host instead Status.Host
2015-03-12 10:57:03 -07:00
Victor Marmol
2939abb6cb
Merge pull request #5383 from wojtek-t/kubelet_test
...
Speedup pkg/kubelet/runonce_test.go
2015-03-12 10:22:03 -07:00
Alex Robinson
32fbce0707
Merge pull request #5375 from bprashanth/delete_lb
...
Don't check status of a failed delete operation
2015-03-12 09:57:35 -07:00
Victor Marmol
f9d2ab6e48
Use time.Sleep() instead of <-time.After().
2015-03-12 09:25:09 -07:00
Wojciech Tyczynski
dca3db0a50
Speedup pkg/kubelet/runonce_test.go
2015-03-12 17:12:04 +01:00
Prashanth Balasubramanian
4849f33cc5
Don't check status of a failed delete operation
2015-03-12 08:52:18 -07:00
Timothy St. Clair
308bb84cf3
Minor cleanup for etcd cleaning from kubelet
2015-03-12 09:39:22 -05:00
Brian Grant
3cbe9aadff
Merge pull request #5355 from yujuhong/fixspechost
...
Copy Spec.Host to Status.Host on pod creation
2015-03-12 07:25:29 -07:00
Wojciech Tyczynski
9f2f10d6db
Make scheduler to watch PodSpec.Host instead Status.Host
2015-03-12 13:38:58 +01:00
Satnam Singh
a3fd0a9fd5
Merge pull request #5284 from piosz/guestbook_bug
...
Rewrite guestbook example to use kube-dns instead of host:port
2015-03-11 23:14:18 -07:00
Yu-Ju Hong
533299bf0a
Copy Spec.Host to Status.Host on pod creation
2015-03-11 21:53:51 -07:00
MikeJeffrey
0c6cd21520
Merge pull request #5345 from jlowdermilk/kubectl-docs
...
Fix md generation for kubectl docs
2015-03-11 17:19:51 -07:00
Victor Marmol
1e0601da8a
Merge pull request #5343 from erictune/rm_etcd
...
Kubelet has not even heard of etcd.
2015-03-11 16:59:04 -07:00
nikhiljindal
8c3f728aa6
Adding http:// prefix to the swagger WebServicesURL to prevent basePath validation errors
2015-03-11 16:52:45 -07:00
Justin Santa Barbara
bc16d83a51
Let CloudProvider return list of NodeAddress, not just one net.IP
...
This lets cloud providers populate the NodeAddress array
2015-03-11 16:50:26 -07:00
Jeff Lowdermilk
a5746c9a0e
Fix md generation for kubectl docs
...
Display usage string, not long help, as code, remove angle brackets from
output (.md interprets as tags and hides).
2015-03-11 16:42:40 -07:00
Eric Tune
ae9bc28f8b
Remove mentions of etcd in kubelet.
2015-03-11 16:40:20 -07:00
Eric Tune
ac7bf05079
Kubelet has not even heard of etcd.
2015-03-11 16:29:31 -07:00
Eric Tune
e9b6c75b6a
Stop updating boundPods objects.
...
Does not clean up your existing boundPods records.
Does not clean up all the dead code. Future PRs from me
will do that.
2015-03-11 16:06:03 -07:00
Victor Marmol
03b182e8e9
Merge pull request #5325 from brendandburns/api3
...
Add and extend timeouts.
2015-03-11 15:20:21 -07:00
Brendan Burns
b53b2e1de0
Add and extend timeouts.
2015-03-11 14:12:46 -07:00
Prashanth Balasubramanian
28d9260c0b
Sync replication count with the api server on pod creation/deletion.
2015-03-11 13:29:20 -07:00
Daniel Smith
cc3a433a7a
fix goroutine leak
2015-03-11 12:51:20 -07:00
Zach Loafman
e780592315
Merge pull request #5264 from jlowdermilk/kube-up
...
Standalone kubeconfig for gce kube-up (mulligan)
2015-03-11 11:46:45 -07:00
Brian Grant
0b48d3209e
Merge pull request #5299 from yujuhong/updatable_v1beta3
...
v1beta3: fields that cannot be updated are marked "cannot be udpated"
2015-03-11 11:36:59 -07:00
Brian Grant
1a75c8843c
Merge pull request #5256 from jszczepkowski/podspec-host
...
Implemented writing Host in Pod.Spec during binding.
2015-03-11 11:30:45 -07:00
Nikhil Jindal
56d365bdd8
Merge pull request #5301 from lavalamp/fix6
...
double-fix crash on my cluster
2015-03-11 10:44:42 -07:00
Yu-Ju Hong
0524d6479d
v1beta3: fields that cannot be updated are marked "cannot be udpated"
2015-03-11 10:10:08 -07:00
Nikhil Jindal
9baa261728
Merge pull request #5219 from jlowdermilk/kubectl-err-handling
...
Make kubectl commands return errors and centralize exit handling
2015-03-11 10:06:52 -07:00
Daniel Smith
6606f9c9f5
double-fix crash on my cluster
2015-03-11 09:54:33 -07:00
Brian Grant
e32d0dbfd9
Merge pull request #5237 from jszczepkowski/stop-labels
...
Added support for labels to "kubectl stop".
2015-03-11 09:51:30 -07:00
Dawn Chen
88e0b04916
Merge pull request #5287 from ncdc/master
...
Remove debugging log message from ExecInContainer
2015-03-11 09:45:37 -07:00
Brian Grant
168eb000c0
Merge pull request #4619 from erictune/no_port_conflict
...
Remove HostPort conflict checking.
2015-03-11 09:41:55 -07:00
Wojciech Tyczynski
0ffd607c79
PodWorkers test.
2015-03-11 16:58:22 +01:00
Victor Marmol
18ebae9653
Merge pull request #5239 from wojtek-t/desired_pod_cache
...
Change PodWorkers to have desired cache.
2015-03-11 08:54:49 -07:00
Wojciech Tyczynski
80576dfed3
Change PodWorkers to have desired cache.
2015-03-11 16:38:31 +01:00
Tim Hockin
52298ab851
Merge pull request #4865 from sub-mod/proxier_go_change
...
use ChooseHostInterface in kube-proxy
2015-03-11 08:09:32 -07:00
Andy Goldstein
0c798bbe52
Remove debugging log message from ExecInContainer
2015-03-11 10:07:14 -04:00
Jerzy Szczepkowski
9a6857cf2c
Fixed writing Host in Pod.Spec during binding.
...
Fixed writing Host in Pod.Spec during binding. Related to #5207 .
2015-03-11 14:48:10 +01:00
Piotr Szczesniak
4679a37b38
Rewrite guestbook example to use kube-dns instead of host:port
...
This fixes #5091
2015-03-11 09:51:47 +01:00
Jerzy Szczepkowski
110ab79f05
Added support for labels to "kubectl stop".
...
Added support for labels and --all to "kubectl stop". Fixes #5178 .
2015-03-11 09:43:29 +01:00
Subin M
b8c91e7344
use ChooseHostInterface in kube-proxy
2015-03-11 13:50:53 +05:30
Eric Tune
5e8d70f76b
Remove HostPort conflict checking.
...
We decided to get rid of boundPods. Removing this check is
a prerequisite for that. This check had some value before we had
IP-per-Pod. However, AIUI, use of HostPort is strongly discouraged
in Kubernetes. It still exists as part of a Pod spec because
of ContainerVM, where it is used. But, this change does not affect
ContainerVM, where there is no master.
If someone did create pods with HostPort using kubernetes, the following
would happen:
- The scheduler would try not to put two conflicting pods on the same
machine (pkg/scheduler/predicates.go : PodFitsPorts() )
- I'm not sure if it is currently possible for a race to occur where
the PodFitsPorts check were bypassed. Maybe it could happen.
- If the kubelet was sent conflicting pods, it would detect them in
( pkg/kubelet/kubelet.go : filterHostPortConflicts() ). It would
arbitrarily pick one pod to run and another to ignore.
- If all of the above happened and the user filed and issue on github,
we might figure out that the user used HostPort and tell the user to stop.
TODO:
- e2e test
- Several of the demos in examples/ use hostPort. Change them to
not specify hostPort and have a service instead.
2015-03-10 22:46:30 -07:00
Deyuan Deng
9982aaa960
kubelet post node status to master
2015-03-10 23:17:36 -04:00
Federico Simoncelli
daed0af3b5
api: return endpoints target object references
...
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-03-10 18:32:53 -04:00
Brian Grant
827a92316c
Merge pull request #5251 from derekwaynecarr/namespace_lifecycle
...
Add a NamespacePhase to Namespace
2015-03-10 15:21:07 -07:00
Jeff Lowdermilk
7db006ab1a
Generate standalone kubeconfig on kube-up, clear on kube-down.
...
Also tweaked the ginkgo tests to pull auth directly from a kubeconfig file
instead of the legacy kubernetes_auth file.
2015-03-10 14:23:34 -07:00
Salvatore Dario Minonne
925fa6baf8
Adding fields selector
2015-03-10 22:13:10 +01:00
Brian Grant
9aa744925e
Merge pull request #5030 from simon3z/nodeinfo
...
Add support for fetching node collected information
2015-03-10 14:05:41 -07:00
Daniel Smith
a89c1959d4
Merge pull request #5122 from markturansky/volume_interface_improvements
...
Change volume.NewBuilder podUID argument to ObjectRef
2015-03-10 13:37:49 -07:00
Daniel Smith
e1f64b2901
Merge pull request #5235 from jszczepkowski/pods-watch
...
Watch support in PodInterface.
2015-03-10 11:59:04 -07:00
Paul Morie
a486ab078f
Fix selfLink issues in integration test
2015-03-10 14:40:16 -04:00
markturansky
c7e619d4a0
Change volume.NewBuild arg from podUID to ObjectReference
2015-03-10 14:40:16 -04:00
Brian Grant
7aa060bae7
Merge pull request #4706 from mikedanese/PATCH
...
add PATCH verb to apiserver
2015-03-10 11:38:22 -07:00
Brian Grant
a4d79bfb2c
Merge pull request #5139 from ddysher/node-more-describe
...
Add more information to node describe
2015-03-10 11:26:51 -07:00
Brian Grant
721e754083
Merge pull request #5153 from abhgupta/abhgupta-dev
...
Using only pods within the same namespace for spreading logic
2015-03-10 11:24:33 -07:00
deads2k
91b92eba2f
eliminate wait with no nodes
2015-03-10 14:22:43 -04:00
Brian Grant
a5ecfbfe42
Merge pull request #5185 from smarterclayton/ignore_creation_timestamp
...
Ignore changes to creation timestamp from clients on update
2015-03-10 11:21:13 -07:00
Dawn Chen
56cbe6c59f
Merge pull request #5231 from mikedanese/no-more-globals
...
Move global func into NodeController
2015-03-10 11:12:45 -07:00
derekwaynecarr
7de138a9bb
Add a NamespacePhase to Namespace
2015-03-10 14:11:54 -04:00
Derek Carr
99a5ab4cfa
Merge pull request #5248 from pmorie/fix-events
...
Fix event recorder not to log events without a reference
2015-03-10 14:08:00 -04:00
Brian Grant
186f17737e
Merge pull request #5252 from erictune/remove_etcd_flags
...
Remove --etcd_servers flag from kubelet and proxy.
2015-03-10 11:06:12 -07:00
Brian Grant
b3d3db08ef
Merge pull request #5064 from justinsb/ignore_stopped_aws_instances
...
Ignore EC2 instances that are stopped
2015-03-10 11:03:34 -07:00
Mike Danese
46ec580771
add PATCH to apiserver
2015-03-10 10:56:15 -07:00
Nikhil Jindal
25ff33ae6e
Merge pull request #5214 from brendandburns/agent
...
Add user agent and source IP logging to the httpserver logs.
2015-03-10 10:53:55 -07:00
Jeff Lowdermilk
cd7d78b696
Make kubectl commands return errors and centralize exit handling
2015-03-10 10:19:43 -07:00
Alex Mohr
4dc1826ab8
Merge pull request #5229 from brendandburns/errors
...
Switch selector parse errors to return HTTP 400 instead of the default (500)
2015-03-10 10:16:41 -07:00
Dawn Chen
106e38ebb3
Merge pull request #5213 from yifan-gu/clean_syncPod
...
Refactor pkg/kubelet/kubelet.go: shouldContainerBeRestarted().
2015-03-10 09:44:32 -07:00
Brian Grant
ac582b0d93
Merge pull request #5230 from justinsb/aws_zones
...
AWS support for Zones
2015-03-10 09:38:23 -07:00
Brian Grant
6062e14313
Merge pull request #5220 from nikhiljindal/camelCaseFieldSelectors
...
Changing v1beta3 field selectors to be camelCased
2015-03-10 09:35:03 -07:00
Brian Grant
482e6735fb
Merge pull request #5236 from tkulczynski/cidrapifix
...
Change field names from cidr to podCIDR in json
2015-03-10 09:34:16 -07:00
Eric Tune
2ca265ae3b
Remove --etcd_servers flag from kubelet and proxy.
...
All the distros that use this have been updated,
or have PRs out to update them, or owners
have been asked to fix RPMs.
Removing this prevents further use of this model.
Remove now dead code: EtcdClientOrDie
Remove now dead pkg/proxy/config/etcd.go.
Remove unused imports.
2015-03-10 09:29:09 -07:00
Paul Morie
a373b234e9
Fix event recorder not to log events without a reference
2015-03-10 11:36:43 -04:00
Federico Simoncelli
644d775bc1
kubelet: retport system info in node information
...
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-03-10 10:11:02 -04:00
Federico Simoncelli
1b18440f35
kubelet: add GetNodeInfo implementation
...
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-03-10 10:11:01 -04:00
Federico Simoncelli
eb0b6f2bcf
kubelet: improve client url composition
...
Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
2015-03-10 10:05:19 -04:00
Justin Santa Barbara
3eab40cabd
AWS support for Zones
2015-03-10 05:49:26 -07:00
Tomek Kulczynski
243a3ae315
Change field names from cidr to podCIDR in json
2015-03-10 12:48:34 +01:00
Jerzy Szczepkowski
0342ba3476
Watch support in PodInterface.
...
Added Watch support to PodInterface. Extended pods e2e to test watch. Resolves #4777 .
2015-03-10 09:45:44 +01:00
Mike Danese
14f705c74c
move global func into NodeController
2015-03-09 21:25:19 -07:00
Brendan Burns
5b3b330bb8
Switch some parse errors to return HTTP 400 instead of the default (500)
2015-03-09 20:42:14 -07:00
Justin Santa Barbara
5d36d3cdbe
Change cloud provider CreateTCPLoadBalancer to return endpoint as string
...
Some load balancers (particularly AWS ELB) define the public endpoint
as a hostname (instead of using IP addresses).
This is a partial fix for #5224 ; there will also be some proxy work.
2015-03-09 20:35:13 -07:00
Mike Danese
c1b1f29bdc
migrate healthz in pkg/kubelet/server.go to custom health checks
2015-03-09 19:26:07 -07:00
Mike Danese
400e7e4145
support user supplied health functions in pkg/healthz
2015-03-09 19:26:07 -07:00
Justin Santa Barbara
a3ae480acc
Ignore EC2 instances that are stopped
...
Otherwise we pick up previous cluster instances (in EC2, stopped instances hang around for
a while - maybe 30 minutes?)
2015-03-09 19:03:46 -07:00
nikhiljindal
916ca9cc68
Changing v1beta3 field selectors to be camelCased
2015-03-09 18:01:01 -07:00
Jeff Lowdermilk
a280e0da2d
Revert "Standalone kubeconfig for gce kube-up"
2015-03-09 17:45:06 -07:00
Yifan Gu
241ef34fba
Refactor pkg/kubelet/kubelet.go: shouldContainerBeRestarted().
...
Simplify the function signature.
2015-03-09 17:42:57 -07:00
Brendan Burns
a99f4f3e47
Add user agent and source IP logging to the httpserver logs.
2015-03-09 17:01:47 -07:00
Brian Grant
7b72d9539f
Merge pull request #5054 from smarterclayton/switch_to_sub_bindings
...
Make Pod binding a subresource (and be generic to other types)
2015-03-09 16:41:26 -07:00
Satnam Singh
89bc7bbea9
Merge pull request #5154 from jlowdermilk/kube-up
...
Standalone kubeconfig for gce kube-up
2015-03-09 16:22:51 -07:00
Jeff Lowdermilk
4173d369aa
Generate standalone kubeconfig on kube-up, clear on kube-down.
...
Also tweaked the ginkgo tests to pull auth directly from a kubeconfig file
instead of the legacy kubernetes_auth file.
2015-03-09 16:02:00 -07:00
Deyuan Deng
58776da6a4
Add more information to node describe
2015-03-09 18:56:59 -04:00
Daniel Smith
6de2e615cb
Merge pull request #5193 from bprashanth/e2e_stop_controller
...
Properly reap replication controllers in e2e test
2015-03-09 15:38:26 -07:00
Alex Mohr
56bdd94985
Merge pull request #5199 from brendandburns/master
...
Fix the test by using an even more bogus tld.
2015-03-09 14:35:14 -07:00
Brendan Burns
0ad6e5b48c
Fix the test by using an even more bogus tld.
2015-03-09 14:31:39 -07:00
Brendan Burns
8dd61e25fa
Merge pull request #5137 from ddysher/gce-externalid
...
Use FormatInt instead of string for external id.
2015-03-09 13:47:24 -07:00
Alex Mohr
37bfb0d7cf
Merge pull request #5159 from brendandburns/coverage
...
Expand test coverage in master.
2015-03-09 13:26:37 -07:00
Prashanth Balasubramanian
0e484f25b1
Properly reap replication controllers in e2e test
2015-03-09 13:08:12 -07:00
Clayton Coleman
dfc19185f5
Add a subbindings resource as /pods/{name}/binding
...
Allows POST to create a binding as a child. Also refactors internal
and v1beta3 Binding to be more generic (so that other resources can
support Bindings).
2015-03-09 15:37:19 -04:00
Jeff Lowdermilk
d8bbda2558
Merge pull request #5016 from brendandburns/kubecfg
...
Differentiate between server error messages and client error messages in kubectl
2015-03-09 12:29:51 -07:00
Daniel Smith
2a7be5619a
Merge pull request #5116 from justinsb/skip_duplicate_node_address
...
Don't allow duplicate values in NodeAddresses
2015-03-09 11:59:54 -07:00
Clayton Coleman
227a1d306d
Support SubResource call on Request
...
Allows better semantic use of Request when dealing with sub resources,
and allows clients to ignore ordering. Supports multiple segments because
sub-resources are less tightly structured than regular resources.
2015-03-09 14:39:31 -04:00
Clayton Coleman
4b16a87096
Simplify api_installer and setup methods
2015-03-09 14:39:31 -04:00
Clayton Coleman
42ff28c1a2
Merge pull request #5150 from vishh/issue_3628_1
...
Add json description to v1beta3 API.
2015-03-09 14:38:23 -04:00
Victor Marmol
e187be9fe1
Merge pull request #5143 from vmarmol/cadvisor-pkg
...
Refactoring Kubelet's cAdvisor interface into a package.
2015-03-09 11:36:03 -07:00
Victor Marmol
ab3c9de34b
Refactoring cAdvisor interface into a package.
...
This will make it easier to start running the real cAdvisor alongside
Kubelet. This change is primarily no-op refactoring. The main behavioral
change is that we always create a cAdvisor interface and expect it to
always be available. When we make a request, if cAdvisor is not
connected the request fails with a connection error. This failure is
handled today as well.
2015-03-09 11:19:05 -07:00
Alex Mohr
d98485242e
Merge pull request #4780 from jdef/bug_4757
...
add unit test for #4757
2015-03-09 11:13:53 -07:00
Rohit Jnagal
8798b0ae14
Merge pull request #5158 from thockin/use_fuzz_no_custom
...
Use new gofuzz features
2015-03-09 10:13:46 -07:00
Rohit Jnagal
77546692a7
Merge pull request #5187 from vmarmol/wait-docker
...
Kubelet: wait up to 5m for Docker to come up.
2015-03-09 10:09:09 -07:00
Victor Marmol
ca84aae454
Kubelet: wait up to 5m for Docker to come up.
...
The Kubelet assumes Docker is running during its execution and on
machine boot it is a race between Docker coming up and Kubelet calling
Docker. This PR waits for Docker to be up before the Kubelet begins
doing useful work. On timeout, Kubelet exits and expects to be
restarted.
2015-03-09 09:50:34 -07:00
Clayton Coleman
d016f478e0
Ignore changes to creation timestamp from clients on update
...
CreationTimestamp is not an authoritative field (like UID) so mismatches
can be safely ignored.
2015-03-09 12:04:35 -04:00
James DeFelice
bf02d17244
rebased to master
2015-03-09 14:08:11 +00:00
James DeFelice
4943fe937b
implemented nil err checks, cc @yujuhong @davidopp
2015-03-09 14:06:27 +00:00
James DeFelice
e5350d61a8
added comment suggested by @davidopp
2015-03-09 14:06:27 +00:00
James DeFelice
436790ccd1
add unit test for #4757
...
fixed compilation error
2015-03-09 14:06:27 +00:00
Tim Hockin
0b888e8673
Make testing service validation easier
...
Part of multi-port services.
If people like this, we could start to apply this pattern elsewhere.
TL;DR: don't redefine objects over and over changing one thing each
time. Instead provide a func that mutates a base object to test facets
of validation. Much easier to read and to update.
2015-03-08 21:41:37 -07:00
Clayton Coleman
0f87337667
Kubelet tests broken on Macs with uppercase names
...
Hostname behavior across operating systems is inconsistent (Macs can
have uppercase host names, so can some other systems). In general,
always strings.ToLower(os.Hostname()).
2015-03-08 23:44:32 -04:00
Brendan Burns
7c654a3d1b
Expand test coverage in master, kubectl/cmd/util, pkg/registry/resourcequota, and api/rest.
2015-03-07 15:24:39 -08:00
Brendan Burns
f505a33998
Differentiate between server error messages and client error messages in kubectl
2015-03-07 11:39:23 +01:00
Tim Hockin
fd1e49ce2f
Use new gofuzz features
2015-03-07 00:04:14 -08:00
Vish Kannan
53ec66caf4
Merge pull request #5152 from vmarmol/cadvisor-dep
...
Rename cAdvisor info API to cadvisorApi
2015-03-06 18:09:28 -08:00
Victor Marmol
1866adddd3
Merge pull request #5157 from yifan-gu/clean_prober
...
Adjust prober's logging verbose.
2015-03-06 18:04:12 -08:00
Yifan Gu
da5d7c7814
Adjust prober's logging.
2015-03-06 17:30:29 -08:00
Victor Marmol
798513844c
Merge pull request #5148 from yifan-gu/clean_prober
...
Refactor pkg/kubelet/kubelet.go: probeContainer().
2015-03-06 17:04:57 -08:00
Yifan Gu
276fb1731c
Refactor pkg/kubelet/kubelet.go: probeContainer().
...
Put the retry loop in probe.go into a function.
2015-03-06 16:57:20 -08:00
Yifan Gu
131e8a0e35
Refactor pkg/kubelet/kubelet.go: probeContainer().
...
Update the probe_test.go.
2015-03-06 16:38:09 -08:00
Yifan Gu
09af0cd3b5
Refactor pkg/kubelet/kubelet.go: probeContainer().
...
Split the function into probeContainerLiveness() and probeContainerReadiness().
2015-03-06 16:37:58 -08:00
Abhishek Gupta
baa61fa157
Adding test cases for namespace checks
2015-03-06 16:31:15 -08:00
Abhishek Gupta
5ce4558955
Using only pods within the namespace for spreading logic
2015-03-06 16:31:15 -08:00
Victor Marmol
43b469bd9f
Rename cAdvisor info API to cadvisorApi
2015-03-06 16:06:38 -08:00
Dawn Chen
9439c0f3bd
Merge pull request #5103 from yujuhong/naming
...
kubelet: revamp the pod/container naming scheme
2015-03-06 15:58:58 -08:00
Vish Kannan
9e5c79a587
Merge pull request #5151 from vmarmol/cadvisor-dep
...
Update cAdvisor godep
2015-03-06 15:56:48 -08:00
Vishnu Kannan
28aef4ba53
Add json description to v1beta3 API.
2015-03-06 23:53:35 +00:00
Victor Marmol
a35f4374c5
Update cAdvisor ContainerInfo references to v1 API.
...
The cAdvisor data structures were versioned recently. We use the v1
versions so this commit makes that explicit.
2015-03-06 15:42:06 -08:00
Daniel Smith
05ea93f985
Merge pull request #5147 from a-robinson/func
...
Re-add the defer statements around the monitor() calls in the apiserver.
2015-03-06 15:31:45 -08:00
Alex Robinson
60f0e9d673
Fix the broken calls to the monitor() by having it take arguments as pointers.
...
This is needed for the changes to various labels from later in the function
to be picked up.
2015-03-06 23:16:44 +00:00
Brian Grant
a858c7423e
Merge pull request #5070 from vishh/issue_3628
...
Adding description to some of the v1beta3 objects.
2015-03-06 14:49:11 -08:00
Brian Grant
f557837d43
Merge pull request #5066 from vmarmol/man
...
Adding links to relevant docs from API types.
2015-03-06 14:46:43 -08:00
Eric Tune
c12303eaa3
Merge pull request #4749 from derekwaynecarr/make_quota_more_efficient
...
Make admission control plug-ins work from indexes
2015-03-06 14:11:12 -08:00
Vishnu Kannan
bd83093b0b
Adding description to some of the v1beta3 objects.
2015-03-06 21:50:50 +00:00
Eric Tune
b259640a5f
Merge pull request #5072 from justinsb/fix_aws_test
...
Fix the logic around the AWS instance test
2015-03-06 13:49:41 -08:00
Yu-Ju Hong
fe70be9261
kubelet: revamp the pod/container naming scheme
...
There are two main goals for this change.
1. Fix the naming scheme in kubelet so that it accepts DNS subdomain
name/namespaces correctly (#4920 ). The design is discussed in #3453 .
2. Prepare for syncing the static pods back to the apiserver(#4090 ). This
includes
- Eliminate the source component in the internal full pod name (#4922 ). Pods
no longer need sources as they will all be sync'd via apiserver.
- Changing the naming scheme for the static (file-, http-, and etcd-based)
pods such that they are distinguishable when syncing back to the apiserver.
The changes includes:
* name = <pod.Name>-<hostname>
* namespace = <cluster_namespace> (i.e. "default" for now).
* container_name = k8s_<contianer_name>.<hash_of_container>_<pod_name>_<namespace>_<uid>_<random>
Note that this is not backward-compatible, meaning the kubelet won't recognize
existing running containers using the old naming scheme.
2015-03-06 13:14:45 -08:00
Yu-Ju Hong
32fd331e73
Revert "Split up kubelet "source seen" logic"
...
We want to sync pods from file/http/etcd sources to the apiserver, hence
differentiating sources is no longer desired.
This reverts commit 110ab6f1bd
.
2015-03-06 12:57:48 -08:00
Deyuan Deng
50de1a80c2
kubelet should take a client interface
2015-03-06 15:01:55 -05:00
Dawn Chen
2d0743b143
Merge pull request #5019 from yujuhong/reject_pods
...
kubelet: reject pods on host port conflict
2015-03-06 11:42:04 -08:00
Dawn Chen
3835e0e6e6
Merge pull request #4943 from vmarmol/image-manager
...
Implementing ImageManager to take over image lifecycle.
2015-03-06 11:09:38 -08:00
Victor Marmol
3ae717be97
Merge pull request #5094 from gmarek/client4
...
Refactor Kubelets syncPod function by wrapping some functionalities into separate functions
2015-03-06 10:58:05 -08:00
Victor Marmol
4f3f073f3c
Implementing ImageManager to take over image lifecycle.
...
All images are tracked, when they were created and when they were last
used. FreeSpace() evicts these images in least recently used order,
breaking ties with oldest first.
2015-03-06 10:48:28 -08:00
Yu-Ju Hong
3ccdb8db98
kubelet: reject pods on host port conflict
...
When a host port conflict is detected, kubelet should set the pod status to
fail. The failed status will then be polled by other components at a later time,
which allows replication controller to create a new pod if necessary.
To achieve this, this change stores the pod status information in a status map
upon the detecton of port conflict. GetPodStatus() consults this status map
before attempting to query docker. The entries in the status map will be removed
when the pod is no longer associated with the node.
2015-03-06 10:46:49 -08:00
Deyuan Deng
3c460831ca
Use FormatInt instead of string for external id.
2015-03-06 13:45:52 -05:00
Daniel Smith
244766ac89
Merge pull request #5002 from satnam6502/proxy-200
...
Do not fail status 200 responses to proxy calls
2015-03-06 10:20:07 -08:00
Daniel Smith
b0f49449e1
Merge pull request #4985 from thockin/gofuzz
...
Update gofuzz dep
2015-03-06 10:19:01 -08:00
gmarek
4a01a4dbf5
Refactor Kubelets syncPod function by wrapping some functionalities into functions
2015-03-06 18:32:11 +01:00
Tim Hockin
ca265c5705
Merge pull request #4898 from gmarek/client2
...
Loosen label and annotation validation and related tests
2015-03-06 09:14:24 -08:00
Tim Hockin
788d9994a1
Merge pull request #5132 from pmorie/mount-refactor
...
Fix mount refactor nits
2015-03-06 09:00:01 -08:00
Paul Morie
17b51a93a3
Fix mount refactor nits
2015-03-06 11:46:07 -05:00
Tim Hockin
f9e2df3a10
Define semantic equal for time
2015-03-06 08:21:39 -08:00
Tim Hockin
0b38282b9b
Fuzz util.Time with no nsec because JSON
2015-03-06 08:21:10 -08:00
Tim Hockin
b3304c49ad
Use deep spew in serialization test & go obj diff
2015-03-06 08:21:10 -08:00
Brendan Burns
5b6a78fc77
Place external load balancers in a namespace, and add a test to validate the behavior.
2015-03-06 17:16:27 +01:00
Brendan Burns
2700871b04
Merge pull request #5013 from smarterclayton/misc_fixup
...
Small cleanups to a number of client behaviors
2015-03-06 15:41:34 +01:00
Brendan Burns
de669b5435
Merge pull request #5058 from bprashanth/resourceVersion_doc
...
Clarify resourceVersion documentation
2015-03-06 15:41:12 +01:00
Brendan Burns
2263d86a7b
Merge pull request #5073 from yujuhong/immutable
...
v1beta1/v1beta2: fields that cannot be updated are marked immutable
2015-03-06 15:40:43 +01:00
derekwaynecarr
2ed8eed004
Make admission control plug-ins work from indexes
2015-03-06 09:36:57 -05:00
Brendan Burns
d4755704b1
Merge pull request #5104 from liggitt/secure_kubelet
...
Plumb tls and cert options into kubelet start
2015-03-06 15:32:23 +01:00
Brendan Burns
784dd82880
Merge pull request #5117 from lavalamp/fix4
...
Make unexported fields panic (informatively) instead of silently passing
2015-03-06 15:21:54 +01:00
gmarek
26b7fbeedf
apply comments
2015-03-06 13:21:40 +01:00
Satnam Singh
cb4c931b0b
Do not fail status 200 responses to proxy calls
2015-03-06 00:29:19 -08:00
gmarek
bb8a4f5ed3
apply comments
2015-03-06 08:23:22 +01:00
gmarek
726a5af075
Loosen label and annotation validation and related tests
2015-03-06 08:23:22 +01:00
Mike Danese
438052c453
fix variable shadowing bug in etcd_tools.go
2015-03-05 22:34:28 -08:00
Dawn Chen
54b2b47caa
Merge pull request #4756 from vishh/kubelet
...
Relax constraints on container status while fetching container logs
2015-03-05 21:49:48 -08:00
Daniel Smith
3ef3777192
Make unexported fields panic (informatively)
...
...Also fix some incorrect calls to semantic.DeepEqual, and a bug where
it returned true incorrectly.
2015-03-05 21:40:37 -08:00
Prashanth Balasubramanian
1ed3f7ffcd
Clarify documentation around resourceVersion
2015-03-05 20:57:22 -08:00
Yu-Ju Hong
823ea36cb1
v1beta1/v1beta2: fields that cannot be updated are marked "cannot be udpated"
2015-03-05 18:05:13 -08:00
Victor Marmol
79f2773745
Merge pull request #5120 from dchen1107/docker
...
monit health check kubelet and restart unhealthy one
2015-03-05 17:39:03 -08:00
Dawn Chen
7a47ea8913
Ask monit health check kubelet; if failed, restart.
2015-03-05 17:29:38 -08:00
Dawn Chen
43b4f41202
Allow /healthz check from localhost
2015-03-05 17:27:56 -08:00
Victor Marmol
b314dc6025
Merge pull request #5032 from yifan-gu/clean_syncPod
...
Refactor pkg/kubelet/kubelet.go: syncPod().
2015-03-05 17:24:20 -08:00
Yifan Gu
ed1823e276
Refactor pkg/kubelet/kubelet.go: syncPod().
...
Makes the syncPod() takes only the containers that belongs to the pod.
2015-03-05 16:40:50 -08:00
Justin Santa Barbara
bf031fb082
Don't allow duplicate values in NodeAddresses
2015-03-05 16:40:28 -08:00
Victor Marmol
33e6c3ebb3
DockerCache doesn't get containers at startup.
...
Fixes #5092 .
2015-03-05 16:25:13 -08:00
Vishnu Kannan
f6910803a9
Relax constraints on container status while fetching container logs
2015-03-06 00:19:52 +00:00
Satnam Singh
61e38920a5
Do not fail status 200 responses to proxy calls
2015-03-05 16:19:13 -08:00
Salvatore Dario Minonne
75f2efb500
moving ParseSelector to Parse for labels only.
2015-03-05 22:39:36 +01:00
Jordan Liggitt
02622b1401
Plumb tls and cert options into kubelet start
2015-03-05 16:30:52 -05:00
Brian Grant
4624d116f3
Merge pull request #5061 from thockin/docs1
...
Better docs for Services and public IPs.
2015-03-05 11:52:38 -08:00
Daniel Smith
6453bf3e61
Merge pull request #4974 from pmorie/record-sources
...
Allow multiple sources to be used with record package
2015-03-05 11:51:08 -08:00
Paul Morie
02b18edac6
Allow multiple sources to be used with record package
2015-03-05 13:54:29 -05:00