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

Simple Kubernetes Service - Kubernetes-yaml Typing CST Test

Loading…

Simple Kubernetes Service — Kubernetes-yaml Code

A simple Kubernetes Service exposing the Nginx Deployment.

# kubernetes/demo-service.yaml
apiVersion: v1
kind: Service
metadata:
	name: nginx-service
	namespace: default
spec:
	type: ClusterIP
	selector:
		app: nginx
	ports:
	- protocol: TCP
		port: 80
		targetPort: 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 Deployment

Practice Other Languages

CReactPythonC++RustTypeScriptKotlinPHPJavaC#RubyMqlCqlN1qlCypher