apiVersion: apps/v1
kind: Deployment
metadata:
  name: webhook-proxy
  namespace: beta-parrot-bot
  labels:
    app: webhook-proxy
spec:
  selector:
    matchLabels:
      app: webhook-proxy
  replicas: 1
  template:
    metadata:
      labels:
        app: webhook-proxy
    spec:
      imagePullSecrets:
        - name: docker-pass
      containers:
        - name: telegram-drawer
          image: ghcr.io/danilandreev/github-parrot-bot-dev
          ports:
            - containerPort: 3100
          volumeMounts:
            - mountPath: /.env
              subPath: .env
              name: env
      volumes:
        - name: env
          configMap:
            name: webhook-proxy
            items:
              - key: env
                path: .env