File size: 951 Bytes
9c4b01e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
36
apiVersion: apps/v1
kind: Deployment
metadata:
  name: warden-ml
spec:
  replicas: 1
  selector:
    matchLabels:
      app: warden-ml
  minReadySeconds: 5
  strategy:
    type: RollingUpdate
    rollingUpdate:
      maxSurge: 1
      maxUnavailable: 1
  template:
    metadata:
      labels:
        app: warden-ml
    spec:
      containers:
      - name: warden-ml
        image: vivekmetaphy/warden-ml:v3
        ports:
        - containerPort: 8000  
        resources:
          requests:
            memory: "2Gi"       # Minimum memory required for the container
            cpu: "1000m"         # Minimum CPU required for the containe
          limits:
            memory: "4Gi"       # Minimum memory required for the container
            cpu: "2000m"         # Minimum CPU required for the containe         # Maximum CPU the container can use
      # imagePullSecrets:
      # - name: acr-secret
      # dnsPolicy: ClusterFirstWithHostNet