Production-Grade Container Scheduling and Management
Go to file
Kubernetes Submit Queue 3e78c4904e
Merge pull request #54530 from sjenning/validate-state-transition
Automatic merge from submit-queue (batch tested with PRs 56108, 56811, 57335, 57331, 54530). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

api: validate container phase transitions

https://github.com/kubernetes/kubernetes/issues/54499 exposed an issue where a container was transitioning from the terminal phases of `Succeeded` or `Failed` to `Pending`.  It is due to a bug in the kubelet, but additional validation in the API server can prevent this invalid phase transition from being accepted.

@smarterclayton @derekwaynecarr @dashpole @joelsmith @frobware 

I confirmed that the reproducer in https://github.com/kubernetes/kubernetes/issues/54499 does not work with this validation in place.  The erroneous kubelet status update is rejected:
```
status_manager.go:437] Failed to update status for pod "test_default(2f02ecdf-b92a-11e7-a2d0-1c1b0deeddfa)": Pod "test" is invalid: status.containerStatuses[0].state: Forbidden: may not be transitioned to non-terminated state
```

However, it only works to a point with this particular issue.  The termination hangs and eventually the resource is removed from etcd and the status update goes through because there is no old statuses to compare.  Not exactly sure how this happens since there is no pod in etcd anymore  ¯\\_(ツ)_/¯
2017-12-18 17:45:43 -08:00
.github
api Use k8s.gcr.io vanity domain for container images 2017-12-18 09:18:34 -08:00
build gcloud docker now auths k8s.gcr.io by default 2017-12-18 09:18:34 -08:00
cluster Merge pull request #54174 from thockin/gcr-vanity 2017-12-18 14:45:45 -08:00
cmd Use k8s.gcr.io vanity domain for container images 2017-12-18 09:18:34 -08:00
docs Use k8s.gcr.io vanity domain for container images 2017-12-18 09:18:34 -08:00
examples gcloud docker now auths k8s.gcr.io by default 2017-12-18 09:18:34 -08:00
Godeps Merge pull request #56685 from m1093782566/fix-nodeport 2017-12-18 14:45:42 -08:00
hack Merge pull request #54174 from thockin/gcr-vanity 2017-12-18 14:45:45 -08:00
logo
pkg Merge pull request #54530 from sjenning/validate-state-transition 2017-12-18 17:45:43 -08:00
plugin Merge pull request #57348 from tallclair/psp-owners 2017-12-18 13:29:51 -08:00
staging Merge pull request #56811 from liggitt/cache-key 2017-12-18 17:45:36 -08:00
test Merge pull request #57331 from aleksandra-malinowska/autoscaling-test-fix-13 2017-12-18 17:45:40 -08:00
third_party
translations
vendor Merge pull request #56685 from m1093782566/fix-nodeport 2017-12-18 14:45:42 -08:00
.bazelrc
.generated_files
.gitattributes
.gitignore
.kazelcfg.json
BUILD.bazel
CHANGELOG-1.2.md
CHANGELOG-1.3.md
CHANGELOG-1.4.md Use k8s.gcr.io vanity domain for container images 2017-12-18 09:18:34 -08:00
CHANGELOG-1.5.md Use k8s.gcr.io vanity domain for container images 2017-12-18 09:18:34 -08:00
CHANGELOG-1.6.md Use k8s.gcr.io vanity domain for container images 2017-12-18 09:18:34 -08:00
CHANGELOG-1.7.md Update CHANGELOG-1.7.md for v1.7.11. 2017-11-25 16:37:13 -05:00
CHANGELOG-1.8.md Update CHANGELOG-1.8.md for v1.8.5. 2017-12-07 09:10:33 -08:00
CHANGELOG-1.9.md Update CHANGELOG-1.9.md for v1.9.0. 2017-12-15 14:15:58 -08:00
CHANGELOG-1.10.md Add CHANGELOG-1.10.md for v1.10.0-alpha.1. 2017-12-18 13:41:16 -08:00
CHANGELOG.md
code-of-conduct.md
CONTRIBUTING.md Pointed to community/contributors/guide/README.md 2017-12-15 22:08:34 +05:30
labels.yaml
LICENSE
Makefile
Makefile.generated_files
OWNERS
OWNERS_ALIASES Create sig-autoscaling-maintainers alias 2017-11-17 17:57:33 +01:00
README.md Reword double negative; link to readme 2017-12-07 20:58:47 -06:00
SUPPORT.md
Vagrantfile fix download link for fedora libvirt vagrant box 2017-11-18 22:26:57 +05:30
WORKSPACE

Kubernetes

Submit Queue Widget GoDoc Widget CII Best Practices


Kubernetes is an open source system for managing containerized applications across multiple hosts, providing basic mechanisms for deployment, maintenance, and scaling of applications.

Kubernetes builds upon a decade and a half of experience at Google running production workloads at scale using a system called Borg, combined with best-of-breed ideas and practices from the community.

Kubernetes is hosted by the Cloud Native Computing Foundation (CNCF). If you are a company that wants to help shape the evolution of technologies that are container-packaged, dynamically-scheduled and microservices-oriented, consider joining the CNCF. For details about who's involved and how Kubernetes plays a role, read the CNCF announcement.


To start using Kubernetes

See our documentation on kubernetes.io.

Try our interactive tutorial.

Take a free course on Scalable Microservices with Kubernetes.

To start developing Kubernetes

The community repository hosts all information about building Kubernetes from source, how to contribute code and documentation, who to contact about what, etc.

If you want to build Kubernetes right away there are two options:

You have a working Go environment.
$ go get -d k8s.io/kubernetes
$ cd $GOPATH/src/k8s.io/kubernetes
$ make
You have a working Docker environment.
$ git clone https://github.com/kubernetes/kubernetes
$ cd kubernetes
$ make quick-release

For the full story, head over to the developer's documentation.

Support

If you need support, start with the troubleshooting guide and work your way through the process that we've outlined.

That said, if you have questions, reach out to us one way or another.

Analytics