deployment.yaml 769 Bytes
Newer Older
Vasiliy's avatar
Vasiliy committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
apiVersion: apps/v1
kind: Deployment
metadata:
  name: converter-dp
spec:
  selector:
    matchLabels:
      app: converter
  template:
    metadata:
      labels:
        app: converter
    spec:
      containers:
        - name: worker
          image: vozerov/converter:v24
          command: ["python3"]
          args: ["/app/worker.py"]
          volumeMounts:
          - name: config
            mountPath: /app/.env
            subPath: .env
          resources:
            requests:
              cpu: 1500m
              memory: 1Gi
            limits:
              cpu: 1500m
              memory: 1Gi
      nodeSelector:
        mcs.mail.ru/mcs-nodepool: converters
      volumes:
      - name: config
        configMap:
          name: converter-config