apiVersion: apps/v1 kind: Deployment metadata: labels: kafka: cli name: cli namespace: kafka spec: replicas: 1 selector: matchLabels: kafka: cli strategy: type: Recreate template: metadata: labels: kafka: cli spec: containers: - name: cli image: juplo/toolbox command: [ "sleep infinity" ] restartPolicy: Always status: {}