Hover over sections to explore
deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: nginx-deployment
  labels:
    app: nginx
spec:
  replicas: 3
  selector:
    matchLabels:
      app: nginx
  template:
    metadata:
      labels:
        app: nginx
    spec:
      containers:
      - name: nginx
        image: nginx:1.14.2
        ports:
        - containerPort: 80

Select a YAML section

Kubernetes Logo

Kubernetes Deployment

apps/v1 API

pod-1
pod-2
pod-3

3 Replicas

Pod instances to maintain

🏷️
app:nginx
🏷️
app:nginx
🏷️
app:nginx

Label Selector

Matching pods with app=nginx

nginx

v1.14.2

🐳

Container Image

nginx:1.14.2

Container
80

Container Port 80

HTTP traffic endpoint