File size: 1,467 Bytes
857a91b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
apiVersion: apps/v1
kind: Deployment
metadata:
  name: matrix-runtime
  namespace: matrix-runtime
  labels:
    app: matrix-runtime
spec:
  replicas: 1
  selector:
    matchLabels:
      app: matrix-runtime
  template:
    metadata:
      labels:
        app: matrix-runtime
    spec:
      securityContext:
        runAsNonRoot: true
        runAsUser: 10001
        fsGroup: 10001
      containers:
        - name: matrix-runtime
          image: ghcr.io/agent-matrix/matrix-runtime:latest
          args: ["--mode", "customer-agent"]
          ports:
            - name: http
              containerPort: 8080
          envFrom:
            - configMapRef:
                name: matrix-runtime
            - secretRef:
                name: matrix-runtime
          livenessProbe:
            httpGet:
              path: /v1/health
              port: http
            initialDelaySeconds: 10
            periodSeconds: 20
          readinessProbe:
            httpGet:
              path: /v1/health
              port: http
            initialDelaySeconds: 5
            periodSeconds: 10
          resources:
            requests:
              cpu: 500m
              memory: 1Gi
            limits:
              cpu: "2"
              memory: 4Gi
          volumeMounts:
            - name: data
              mountPath: /var/lib/matrix-runtime
      volumes:
        - name: data
          persistentVolumeClaim:
            claimName: matrix-runtime-data