apiVersion: apps/v1
kind: Deployment
metadata:
  name: florale-emotion-bot
  labels:
    app: florale-emotion-bot
spec:
  replicas: 1
  selector:
    matchLabels:
      app: florale-emotion-bot
  template:
    metadata:
      labels:
        app: florale-emotion-bot
    spec:
      # Temporary workaround: ktown can't reach Harbor (ImagePullBackOff).
      # Pin to nuc until node networking to registry is fixed.
      nodeSelector:
        kubernetes.io/hostname: nuc
      imagePullSecrets:
      - name: harbor-registry-secret
      containers:
      - name: florale-emotion-bot
        image: registry.julianvollmer.de/florale-emotion/florale-emotion-bot:__IMAGE_TAG__
        env:
        - name: NODE_ENV
          value: "production"
        resources:
          requests:
            memory: "128Mi"
            cpu: "50m"
          limits:
            memory: "256Mi"
            cpu: "100m"
        # Social Media Bot läuft als Cronjob/Scheduled Task
        # Keine Health Checks nötig da es kein HTTP Service ist
# Bot läuft als interner Service ohne öffentliche Exposition
# Kein Service nötig, da keine HTTP-Requests von außen