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
# 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
Download from the command line
curl -L -o deployment.yaml https://files.samplefiles.com/config/kubernetes/deployment.yamlwget https://files.samplefiles.com/config/kubernetes/deployment.yamlhttps://files.samplefiles.com/config/kubernetes/deployment.yamlprintf '%s %s\n' f5c44f7b419b07db91862290287eb10d4ac368643e941a4861d2566c397e7da8 deployment.yaml | shasum -a 256 -cOr check the download in your browser with the checksum calculator.