Config Files · 1 file

Sample Kubernetes YAML File

Kubernetes manifests declare Deployments, Services and Ingresses as YAML documents. Our sample is realistic and valid for its tool, with fake hosts and secrets.

Kubernetes YAML · 1.3 KB

Kubernetes Deployment + Service

A multi-document Kubernetes manifest: a Deployment with probes, resource limits and a Secret reference, a Service and an Ingress. All hosts, keys and secrets are fake.

CC0 · free for any use · Verified by an independent tool · Report a problem

deployment.yaml — first linesYAML
# Sample Kubernetes manifests — samplefiles.com
apiVersion: apps/v1
kind: Deployment
metadata:
  name: sample-api
  labels: { app: sample-api }
spec:
  replicas: 3
  selector:
    matchLabels: { app: sample-api }
  template:
    metadata:
      labels: { app: sample-api }
    spec:
      containers:
        - name: api
          image: ghcr.io/example/sample-api:1.4.2
          ports: [{ containerPort: 3000 }]
          env:
            - name: DATABASE_URL
              valueFrom:
                secretKeyRef: { name: sample-api-secrets, key: database-url }
          resources:
            requests: { cpu: 100m, memory: 128Mi }
            limits: { cpu: 500m, memory: 512Mi }

File details

Size
1.3 KB (1,362 bytes)
MIME type
application/yaml
SHA-256
f5c44f7b419b07db91862290287eb10d4ac368643e941a4861d2566c397e7da8
MD5
4aabff428983fa18aa31983e82ebd974

Download from the command line

curl -L -o deployment.yaml https://files.samplefiles.com/config/kubernetes/deployment.yaml

Or check the download in your browser with the checksum calculator.