-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Revamp the example repo for modern use cases #559
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+210
−100
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,30 +1,49 @@ | ||
| # Kubernetes Examples | ||
|
|
||
| This directory contains a number of examples of how to run real applications | ||
| with Kubernetes. | ||
| Welcome to the official Kubernetes Examples repository! This curated collection, | ||
| stewarded by SIG Apps, provides high-quality, educational examples for running a | ||
| diverse range of applications and workloads on Kubernetes. | ||
|
|
||
| Refer to the [Kubernetes documentation] for how to execute the tutorials. | ||
| Our goal is to offer a central hub where you can: | ||
| * **Discover** practical implementations for various use cases. | ||
| * **Learn** common patterns and best practices for deploying applications on Kubernetes. | ||
| * **Explore** configurations for general-purpose applications as well as specialized | ||
| ones like AI/ML workloads and platforms. | ||
|
|
||
| ### Maintained Examples | ||
| ## Browse Examples | ||
|
|
||
| Maintained Examples are expected to be updated with every Kubernetes release, to | ||
| use the latest and greatest features, current guidelines and best practices, | ||
| and to refresh command syntax, output, changed prerequisites, as needed. | ||
| We encourage you to explore the subdirectories to find examples relevant to your needs. | ||
| Examples are organized into categories, such as: | ||
|
|
||
| |Name | Description | Notable Features Used | Complexity Level| | ||
| ------------- | ------------- | ------------ | ------------ | | ||
| |[Guestbook](guestbook/) | PHP app with Redis | Deployment, Service | Beginner | | ||
| |[Guestbook-Go](guestbook-go/) | Go app with Redis | Deployment, Service | Beginner | | ||
| |[WordPress](mysql-wordpress-pd/) | WordPress with MySQL | Deployment, Persistent Volume with Claim | Beginner| | ||
| |[Cassandra](cassandra/) | Cloud Native Cassandra | Daemon Set, Stateful Set, Replication Controller | Intermediate | ||
| * [ai](ai/): Demonstrations of AI/ML model training, serving, end-to-end platform | ||
| reference manifests, and MLOps toolchains. | ||
| * ... (and more as the collection grows!) | ||
|
|
||
| > Note: Please add examples that are maintained to the list above. | ||
| Each example includes its own detailed `README.md` file covering: | ||
| * Purpose and learning objectives | ||
| * Prerequisites (including Kubernetes version and hardware if applicable) | ||
| * Step-by-step deployment instructions | ||
| * Verification and cleanup commands | ||
| * Key Kubernetes concepts used | ||
|
|
||
| See [Example Guidelines](guidelines.md) for a description of what goes | ||
| in this directory, and what examples should contain. | ||
| ## Contributing to Kubernetes Examples | ||
|
|
||
| [Kubernetes documentation]: https://kubernetes.io/docs/tutorials/ | ||
| We welcome contributions from the community! If you have an example that showcases | ||
| how to run applications or workloads on Kubernetes effectively and educates users, | ||
| please consider sharing it. | ||
|
|
||
| ### Contributing | ||
| Before contributing, please thoroughly review our: | ||
| 1. [Example Guidelines](guidelines.md): These outline the standards, structure, | ||
| and best practices all examples must follow. | ||
| 2. [CONTRIBUTING.md](CONTRIBUTING.md): This provides instructions on the contribution | ||
| process, including how to propose, submit, and review examples. | ||
|
|
||
| Please see [CONTRIBUTING.md](CONTRIBUTING.md) for instructions on how to contribute. | ||
| Your contributions help make Kubernetes more accessible and understandable for everyone. | ||
|
|
||
| ## Our Philosophy | ||
|
|
||
| We aim for these examples to be: | ||
| * **Educational:** Clearly explaining how and why things work. | ||
| * **Practical:** Demonstrating real-world (though possibly simplified) applications and platforms. | ||
| * **Current:** Reflecting modern Kubernetes features and best practices. | ||
| * **Maintained:** Kept up-to-date by the community and SIG Apps. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| # AI/ML Examples on Kubernetes | ||
|
|
||
| Welcome to the AI/ML examples section! Our goal is to provide a collection of | ||
| community-curated, open-source reference manifests for deploying and managing | ||
| AI/ML workloads, MLOps toolchains, and end-to-end platforms on Kubernetes. | ||
|
|
||
| This area is under active development as part of a broader initiative to enhance | ||
| the `kubernetes/examples` repository. We aim to simplify the developer and operator | ||
| experience for AI applications on Kubernetes, promoting best practices and interoperability. | ||
|
|
||
| ## Vision for AI/ML Examples | ||
|
|
||
| We envision this section housing examples such as: | ||
| * Setups for distributed training frameworks. | ||
| * Configurations for model serving solutions. | ||
| * Blueprints for data versioning and experiment tracking integrations. | ||
| * End-to-end MLOps platform examples. | ||
| * "AI Kits" designed to help AI/ML experts quickly get started on Kubernetes. | ||
|
|
||
| ## Call for Contributions | ||
|
|
||
| The success of this initiative depends on community contributions! If you have expertise | ||
| in running AI/ML workloads on Kubernetes or ideas for valuable examples, we strongly | ||
| encourage you to contribute. | ||
|
|
||
| We are particularly interested in examples that are: | ||
| * Educational and provide an easy start for AI/ML practitioners new to Kubernetes. | ||
| * Modular and showcase best practices. | ||
| * Cover a diverse range of tools and MLOps stages. | ||
|
|
||
| ## Current Status | ||
|
|
||
| _This section is currently being populated. Check back soon for our first set of AI/ML examples!_ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this still used or should I remove it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For removal.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kubernetes/kubernetes#93949 It's broken and removed in k/k in 2020, so it should be safe for us to clean up.