conventions.io

Tech Challenge

2026-09-23

⚙️

Daily Tech Challenge

DevOps

medium
Question 1 of 5

An engineer converts a batch worker into a Deployment and copies the pod template from an old Job, keeping its restart policy. What happens when they run `kubectl apply -f worker.yaml`?

Example
apiVersion: apps/v1
kind: Deployment
metadata:
  name: worker
spec:
  replicas: 2
  selector:
    matchLabels:
      app: worker
  template:
    metadata:
      labels:
        app: worker
    spec:
      restartPolicy: OnFailure
      containers:
        - name: worker
          image: acme/worker:2.3

Wednesday, September 23, 2026 · A new challenge drops every day