apiVersion: apps/v1
kind: Deployment
metadata:
  name: rendertron
spec:
  selector:
    matchLabels:
      app: rendertron
  template:
    metadata:
      labels:
        app: rendertron
    spec:
      containers:
        - name: rendertron
          image: ghcr.io/hos/rendertron:latest
          resources:
            limits:
              memory: '128Mi'
              cpu: '500m'
          ports:
            - containerPort: 8080
          volumeMounts:
            - name: config-volume
              mountPath: /rendertron/config.json
              subPath: config.json
      volumes:
        - name: config-volume
          configMap:
            name: rendertron-config
