Commit Graph

4757 Commits (e87d735304ec16680015f534789e480fb393ba9c)

Author SHA1 Message Date
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
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
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