Lightweight Kubernetes
 
 
 
 
Go to file
Kubernetes Submit Queue 3787a068fc Merge pull request #30955 from lojies/modifygetresource
Automatic merge from submit-queue

use valid_resources to replace kubectl.PossibleResourceTypes

```release
Fix resource list printed by kubectl help 
```

 `kubectl get` return 

> 
You must specify the type of resource to get. Valid resource types include:
   * componentstatuses (aka 'cs')
   * configmaps
   * daemonsets (aka 'ds')
   * deployments
   * events (aka 'ev')
   * endpoints (aka 'ep')
   * horizontalpodautoscalers (aka 'hpa')
   * ingress (aka 'ing')
   * jobs
   * limitranges (aka 'limits')
   * nodes (aka 'no')
   * namespaces (aka 'ns')
   * pods (aka 'po')
   * persistentvolumes (aka 'pv')
   * persistentvolumeclaims (aka 'pvc')
   * quota
   * resourcequotas (aka 'quota')
   * replicasets (aka 'rs')
   * replicationcontrollers (aka 'rc')
   * secrets
   * serviceaccounts (aka 'sa')
   * services (aka 'svc')
error: Required resource not specified.
See 'kubectl get -h' for help and examples.

while `kubectl get --help` return

> root@k8s-node1:~# kubectl get --help
Display one or many resources.
Possible resource types include (case insensitive): pods (po), services (svc), deployments,
replicasets (rs), replicationcontrollers (rc), nodes (no), events (ev), limitranges (limits),
persistentvolumes (pv), persistentvolumeclaims (pvc), resourcequotas (quota), namespaces (ns),
serviceaccounts (sa), ingresses (ing), horizontalpodautoscalers (hpa), daemonsets (ds), configmaps,
componentstatuses (cs), endpoints (ep), and secrets.
By specifying the output as 'template' and providing a Go template as the value
of the --template flag, you can filter the attributes of the fetched resource(s).
......

kubectl.PossibleResourceTypes missing some resouces such as jobs quota.
describe and explain have the same problem.

i think using valid_resources to replace kubectl.PossibleResourceTypes more suitable.
2016-08-19 15:49:15 -07:00
.github issue-template: remove emoji suggestion 2016-08-14 22:07:43 +03:00
Godeps Revert go version to 1.6 in Godep file 2016-08-19 07:40:09 -07:00
api/swagger-spec Initial Quobyte support 2016-08-18 17:13:50 +02:00
build Merge pull request #30870 from piosz/rescheduler-setup 2016-08-19 02:54:24 -07:00
cluster Merge pull request #30901 from ronnielai/percent1 2016-08-19 15:46:11 -07:00
cmd Merge pull request #27778 from screeley44/k8-vol-executor 2016-08-19 08:27:48 -07:00
contrib Merge pull request #29006 from jsafrane/dynprov2 2016-08-18 09:56:16 -07:00
docs Merge pull request #30630 from silasbw/short-n0 2016-08-19 14:34:13 -07:00
examples etcd3 validation showed that several unit tests that depend on apiserver being fully 2016-08-18 14:12:24 -05:00
federation Merge pull request #31028 from mwielgus/secret-fix 2016-08-19 15:47:11 -07:00
hack Merge pull request #31025 from david-mcmahon/fix-set-e 2016-08-19 15:46:57 -07:00
hooks Use make as the main build tool 2016-07-12 21:52:00 -07:00
logo Convert the font (ubuntu) to paths in SVG 2016-05-23 18:38:45 -07:00
pkg Merge pull request #30955 from lojies/modifygetresource 2016-08-19 15:49:15 -07:00
plugin Merge pull request #30944 from ericchiang/oidc-auth-provider-dont-trim-issuer 2016-08-19 15:48:46 -07:00
release Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
staging/src/k8s.io/client-go update generated files, including the client 2016-08-11 17:06:55 -07:00
test Merge pull request #30994 from gmarek/unused 2016-08-19 15:48:00 -07:00
third_party Merge pull request #28133 from freehan/e2ejunit 2016-07-09 01:55:07 -07:00
vendor Add go-openapi dependencies and update Godeps 2016-08-18 13:50:50 -07:00
www add back missing analytics link 2015-08-13 10:03:07 -07:00
.generated_docs Implement kubectl top command with subcommands. 2016-08-11 17:25:18 +02:00
.gitignore Do not ignore .drone.sec file 2016-08-18 13:50:50 -07:00
CHANGELOG.md Merge pull request #30344 from ZJU-SEL/remove-duplicate-words 2016-08-17 00:13:16 -07:00
CONTRIB.md Markdown files in root updated by update-generated-docs.sh. 2016-03-31 16:53:52 -07:00
CONTRIBUTING.md Update CONTRIBUTING.md 2016-07-14 16:33:34 +03:00
DESIGN.md Markdown files in root updated by update-generated-docs.sh. 2016-03-31 16:53:52 -07:00
LICENSE Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
Makefile Add GUBERNATOR flag for remote node e2e tests to produce gubernator link 2016-08-16 17:10:59 -07:00
Makefile.generated_files Add a verbosity concept to kubernetes scripts 2016-08-04 22:01:22 -07:00
OWNERS Adding top-level OWNERS file. 2016-08-16 23:06:21 -07:00
README.md correcting mistakes 2016-07-21 11:26:01 +05:30
Vagrantfile added vagrant vsphere support 2016-03-30 22:55:08 +03:00
code-of-conduct.md code-of-conduct: provide concrete points of contact 2016-06-29 14:36:14 -07:00
labels.yaml Adding file to manage labels: issue #1423. 2016-07-28 21:12:07 -07:00

README.md

Kubernetes

Submit Queue Widget GoDoc Widget Coverage Status Widget

Are you ...

  • Interested in learning more about using Kubernetes? Please see our user-facing documentation on kubernetes.io
  • Interested in hacking on the core Kubernetes code base? Keep reading!

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

Kubernetes is:

  • lean: lightweight, simple, accessible
  • portable: public, private, hybrid, multi cloud
  • extensible: modular, pluggable, hookable, composable
  • self-healing: auto-placement, auto-restart, auto-replication

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


Kubernetes is ready for Production!

With the 1.0.1 release Kubernetes is ready to serve your production workloads.

Kubernetes can run anywhere!

You can run Kubernetes on your local workstation under Vagrant, cloud providers (e.g. GCE, AWS, Azure), and physical hardware. Essentially, anywhere Linux runs you can run Kubernetes. Checkout the Getting Started Guides for details.

Concepts

Kubernetes works with the following concepts:

Cluster
A cluster is a set of physical or virtual machines and other infrastructure resources used by Kubernetes to run your applications. Kubernetes can run anywhere! See the Getting Started Guides for instructions for a variety of services.
Node
A node is a physical or virtual machine running Kubernetes, onto which pods can be scheduled.
Pod
Pods are a colocated group of application containers with shared volumes. They're the smallest deployable units that can be created, scheduled, and managed with Kubernetes. Pods can be created individually, but it's recommended that you use a replication controller even if creating a single pod.
Replication controller
Replication controllers manage the lifecycle of pods. They ensure that a specified number of pods are running at any given time, by creating or killing pods as required.
Service
Services provide a single, stable name and address for a set of pods. They act as basic load balancers.
Label
Labels are used to organize and select groups of objects based on key:value pairs.

Documentation

Kubernetes documentation is organized into several categories.

Community, discussion, contribution, and support

See which companies are committed to driving quality in Kubernetes on our community page.

Do you want to help "shape the evolution of technologies that are container packaged, dynamically scheduled and microservices oriented?"

You should consider joining the Cloud Native Computing Foundation. For details about who's involved and how Kubernetes plays a role, read their announcement.

Code of conduct

Participation in the Kubernetes community is governed by the Kubernetes Code of Conduct.

Are you ready to add to the discussion?

We have presence on:

You can also view recordings of past events and presentations on our Media page.

For Q&A, our threads are at:

Want to contribute to Kubernetes?

If you're interested in being a contributor and want to get involved in developing Kubernetes, start in the Kubernetes Developer Guide and also review the contributor guidelines.

Support

While there are many different channels that you can use to get ahold of us, you can help make sure that we are efficient in getting you the help that you need.

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. We don't bite!

Community resources

You can find more projects, tools and articles related to Kubernetes on the awesome-kubernetes list. Add your project there and help us make it better.

Instructive & educational resources for the Kubernetes community. By the community.

  • Community Documentation

Here you can learn more about the current happenings in the kubernetes community.

Analytics