1. Home
  2. /
  3. Kubernetes-yaml
  4. /
  5. Simple Kubernetes Deployment

Simple Kubernetes Deployment - Kubernetes-yaml Typing CST Test

Loading…

Simple Kubernetes Deployment — Kubernetes-yaml Code

A simple Kubernetes Deployment running an Nginx container.

# kubernetes/demo-deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
	name: nginx-deployment
	namespace: default
spec:
	replicas: 3
	selector:
		matchLabels:
		app: nginx
	template:
		metadata:
		labels:
		app: nginx
		spec:
		containers:
		- name: nginx
		image: nginx:1.21
		ports:
		- containerPort: 80

Kubernetes-yaml Language Guide

Kubernetes (K8s) is an open-source container orchestration platform that automates deployment, scaling, and management of containerized applications. It uses declarative YAML manifests to define the desired state of resources.

Primary Use Cases

  • ▸Deploying and scaling containerized applications
  • ▸Automating rolling updates and rollbacks
  • ▸Service discovery and load balancing
  • ▸Resource monitoring and self-healing
  • ▸Multi-cloud and hybrid infrastructure management

Notable Features

  • ▸Automated container orchestration
  • ▸Declarative YAML configuration
  • ▸Self-healing and auto-scaling
  • ▸Service discovery and load balancing
  • ▸Extensible via CRDs and operators

Origin & Creator

Created by Google based on their internal Borg system, first released in 2014, and now maintained by the Cloud Native Computing Foundation (CNCF).

Industrial Note

Kubernetes is widely used in DevOps, microservices orchestration, hybrid/multi-cloud deployments, edge computing, and large-scale enterprise cloud platforms.

More Kubernetes-yaml Typing Exercises

Simple Kubernetes Service

Practice Other Languages

CReactPythonC++RustTypeScriptKotlinPHPJavaC#RubyMqlCqlN1qlCypher