All Projects → ContainerSolutions → Kubernetes Examples

ContainerSolutions / Kubernetes Examples

Licence: mit
Minimal self-contained examples of standard Kubernetes features and patterns in YAML

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Kubernetes Examples

Grabana
User-friendly Go library for building Grafana dashboards
Stars: ✭ 313 (-61.41%)
Mutual labels:  hacktoberfest, yaml
Circe Yaml
YAML parser for circe using SnakeYAML
Stars: ✭ 102 (-87.42%)
Mutual labels:  hacktoberfest, yaml
Communityscrapers
This is a public repository containing scrapers created by the Stash Community.
Stars: ✭ 51 (-93.71%)
Mutual labels:  hacktoberfest, yaml
Config Lint
Command line tool to validate configuration files
Stars: ✭ 118 (-85.45%)
Mutual labels:  hacktoberfest, yaml
Dark
(grafana) Dashboards As Resources in Kubernetes
Stars: ✭ 190 (-76.57%)
Mutual labels:  hacktoberfest, yaml
Configurate
A simple configuration library for Java applications providing a node structure, a variety of formats, and tools for transformation
Stars: ✭ 148 (-81.75%)
Mutual labels:  hacktoberfest, yaml
Dynaconf
Configuration Management for Python ⚙
Stars: ✭ 2,082 (+156.72%)
Mutual labels:  hacktoberfest, yaml
Esphome
ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems.
Stars: ✭ 4,324 (+433.17%)
Mutual labels:  hacktoberfest, yaml
Packagedev
Tools to ease the creation of snippets, syntax definitions, etc. for Sublime Text.
Stars: ✭ 378 (-53.39%)
Mutual labels:  hacktoberfest, yaml
Ace3
Open-source realism mod for Arma 3
Stars: ✭ 798 (-1.6%)
Mutual labels:  hacktoberfest
Itk
Insight Toolkit (ITK) -- Official Repository. ITK builds on a proven, spatially-oriented architecture for processing, segmentation, and registration of scientific images in two, three, or more dimensions.
Stars: ✭ 801 (-1.23%)
Mutual labels:  hacktoberfest
Meyda
Audio feature extraction for JavaScript.
Stars: ✭ 792 (-2.34%)
Mutual labels:  hacktoberfest
Hexpm
API server and website for Hex
Stars: ✭ 798 (-1.6%)
Mutual labels:  hacktoberfest
Rescript React Native
ReScript bindings for React Native
Stars: ✭ 802 (-1.11%)
Mutual labels:  hacktoberfest
Burnttoast
Module for creating and displaying Toast Notifications on Microsoft Windows 10.
Stars: ✭ 796 (-1.85%)
Mutual labels:  hacktoberfest
Score
ossia score, an interactive sequencer for the intermedia arts.
Stars: ✭ 808 (-0.37%)
Mutual labels:  hacktoberfest
Snoowrap
A JavaScript wrapper for the reddit API
Stars: ✭ 795 (-1.97%)
Mutual labels:  hacktoberfest
Laminas Eventmanager
Trigger and listen to events within a PHP application
Stars: ✭ 793 (-2.22%)
Mutual labels:  hacktoberfest
Yaml.js
Standalone JavaScript YAML 1.2 Parser & Encoder. Works under node.js and all major browsers. Also brings command line YAML/JSON conversion tools.
Stars: ✭ 810 (-0.12%)
Mutual labels:  yaml
Metasfresh
We do Open Source ERP - Fast, Flexible & Free Software to scale your Business.
Stars: ✭ 807 (-0.49%)
Mutual labels:  hacktoberfest

yamllint

Kubernetes Examples

A reference repository of YAML with canonical and as-simple-as-possible demonstrations of kubernetes functionality and features.

See here for a searchable front-end: https://k8s-examples.container-solutions.com/

Why?

At Container Solutions we find we regularly need chunks of YAML to demonstrate something specific, such as:

  • A simple deployment

  • A simple pod

  • A pod with a volume

This might be to do a basic test of an environment, find an example to tinker with, or send to someone to get them going.

Usage

The examples can be used by a kubectl plugin examples. This plugin can be installed by krew:

  • first install krew
  • Install a custom plugin index: kubectl krew index add cs https://github.com/ContainerSolutions/kubernetes-examples.git
  • Install this plugin: kubectl krew install cs/examples

Interactively discover by first selecting the resource type:

$ kubectl examples

filter by resource type

$ kubectl examples Service

filter by resource type and pattern

$ kubectl examples Pod res

If there is only a single match selected by the parameters, it is printed to the stdout. So you can deploy a modified version of a sample by:

$ export KUBE_EDITOR='code -w'
$ kubectl examples Ingress fanout | kubectl create -f - --edit

Sections

broken-* - yamls that exemplify broken kubernetes yaml states

[A-Z][a-zA-Z]* - Example yamls that correspond to resource types.

test - Scripts to test or validate the YAML

Within those folders are either simple/canonical examples, or examples in subfolders that expose particular items of functionality that are highlighted by their yaml path, eg Pod/spec.initContainers/.

If an example is an exemplar of a particular feature but tightly related to another resource, then an absolute folder might be added eg in Service there is Service/Pod.spec.subdomain.

Symlinks are also used to make finding things easier, eg Service/headless-service -> Service/spec.clusterIP.

plugins - a directory following the spec for a Custom krew plugin index

Principles

The examples seek to be:

  • As simple as possible to illustrate the functionality

  • Self-contained (ie limited to one .yaml file)

  • Non-conflicting (eg resource names are unique)

  • Clear (eg resource names are verbose and unambiguous)

Sources / Thanks To

Official Kubernetes docs

Kubernetes by Example

Practical Kubernetes

Security Examples

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].