# A three-document YAML stream: the shape `kubectl apply -f` reads and most naive parsers do not.
# A loader that calls the single-document API returns only the ConfigMap and silently drops two
# objects; the multi-document API returns all three in order.
apiVersion: v1
kind: ConfigMap
metadata:
  name: orders-config
  namespace: example-apps
  labels:
    app.kubernetes.io/name: orders
data:
  LOG_LEVEL: info
  FEATURE_FLAGS: |
    checkout_v2=true
    slow_path=false
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: orders
  namespace: example-apps
  labels:
    app.kubernetes.io/name: orders
    app.kubernetes.io/version: 1.4.0
spec:
  replicas: 3
  selector:
    matchLabels:
      app.kubernetes.io/name: orders
  template:
    metadata:
      labels:
        app.kubernetes.io/name: orders
    spec:
      containers:
        - name: orders
          image: registry.example.invalid/example-org/orders:1.4.0
          ports:
            - containerPort: 8080
              name: http
          envFrom:
            - configMapRef:
                name: orders-config
          resources:
            requests:
              cpu: 100m
              memory: 128Mi
            limits:
              cpu: 500m
              memory: 512Mi
          readinessProbe:
            httpGet:
              path: /healthz
              port: http
            initialDelaySeconds: 5
---
apiVersion: v1
kind: Service
metadata:
  name: orders
  namespace: example-apps
spec:
  type: ClusterIP
  selector:
    app.kubernetes.io/name: orders
  ports:
    - name: http
      port: 80
      targetPort: http
