apiVersion: apps/v1 kind: Deployment metadata: name: pubsub-consumer spec: replicas: 1 selector: matchLabels: app: pubsub-consumer template: metadata: labels: app: pubsub-consumer spec: imagePullSecrets: - name: gitlab-registry-credentials containers: - name: pubsub-consumer image: {{ CI_REGISTRY_IMAGE }}:latest command: ["python", "-u", "pubsub-consumer.py"]