# Three YAML documents in one file, separated by ---
# Free sample from 99helpers.com/file-types/yaml
# Shaped like Kubernetes manifests; every name is fictional.
---
apiVersion: v1
kind: ConfigMap
metadata:
  name: sample-config
  labels:
    app: sample
data:
  GREETING: "Hello from 99helpers"
  LOG_LEVEL: info
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: sample-web
spec:
  replicas: 2
  selector:
    matchLabels:
      app: sample
  template:
    metadata:
      labels:
        app: sample
    spec:
      containers:
        - name: web
          image: registry.example.com/sample-web:1.0.0
          ports:
            - containerPort: 8080
          envFrom:
            - configMapRef:
                name: sample-config
---
apiVersion: v1
kind: Service
metadata:
  name: sample-web
spec:
  selector:
    app: sample
  ports:
    - port: 80
      targetPort: 8080
...
