diff options
Diffstat (limited to 'kubernetes/namespaces/bots/sir-lancebot/deployment.yaml')
| -rw-r--r-- | kubernetes/namespaces/bots/sir-lancebot/deployment.yaml | 47 | 
1 files changed, 47 insertions, 0 deletions
diff --git a/kubernetes/namespaces/bots/sir-lancebot/deployment.yaml b/kubernetes/namespaces/bots/sir-lancebot/deployment.yaml new file mode 100644 index 0000000..981107c --- /dev/null +++ b/kubernetes/namespaces/bots/sir-lancebot/deployment.yaml @@ -0,0 +1,47 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: +  name: sir-lancebot +  namespace: bots +spec: +  replicas: 1 +  selector: +    matchLabels: +      app: sir-lancebot +  template: +    metadata: +      labels: +        app: sir-lancebot +    spec: +      containers: +      - name: sir-lancebot +        image: ghcr.io/python-discord/sir-lancebot:latest +        imagePullPolicy: Always +        resources: +          requests: +            cpu: 400m +            memory: 200Mi +          limits: +            cpu: 500m +            memory: 400Mi +        envFrom: +        - secretRef: +            name: sir-lancebot-env +        - secretRef: +            name: redis-credentials +        securityContext: +          readOnlyRootFilesystem: true +        volumeMounts: +            - name: lancebot-data-vol +              mountPath: /bot/bot/exts/fun/_latex_cache +            - name: lancebot-logs-vol +              mountPath: /bot/bot/log +      volumes: +      - name: lancebot-data-vol +        emptyDir: {} +      - name: lancebot-logs-vol +        emptyDir: {} +      securityContext: +        fsGroup: 1000 +        runAsUser: 1000 +        runAsNonRoot: true  |