rte.yaml 1.6 KB
Newer Older
J
Jenny Li 已提交
1 2 3 4 5
apiVersion: v1
kind: Pod
metadata:
  labels:
    app: milvus-e2e
6
  namespace: milvus-ci
J
Jenny Li 已提交
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
spec:
  enableServiceLinks: false
  containers:
  - name: main
    image: milvusdb/krte:20211213-dcc15e9
    env:
    - name: DOCKER_IN_DOCKER_ENABLED
      value: "true"
    - name: DOCKER_VOLUME_DIRECTORY
      value: "/mnt/disk/.docker"
    tty: true
    securityContext:
      privileged: true
    args: ["cat"]
    resources:
      limits:
        cpu: "6"
        memory: 12Gi
      requests:
        cpu: "0.5"
        memory: 5Gi
    volumeMounts:
    - mountPath: /docker-graph
      name: docker-graph
    - mountPath: /var/lib/docker
      name: docker-root
    - mountPath: /lib/modules
      name: modules
      readOnly: true
    - mountPath: /sys/fs/cgroup
      name: cgroup
    - mountPath: /mnt/disk/.docker
      name: build-cache
      subPath: docker-volume
    - mountPath: /ci-logs
      name: ci-logs  
  - name: pytest
44
    image: harbor.milvus.io/dockerhub/milvusdb/pytest:20230217-d6b17e1
J
Jenny Li 已提交
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
    resources:
      limits:
        cpu: "6"
        memory: 12Gi
      requests:
        cpu: "0.5"
        memory: 5Gi
    volumeMounts:
    - mountPath: /ci-logs
      name: ci-logs
  volumes:
  - emptyDir: {}
    name: docker-graph
  - emptyDir: {}
    name: docker-root
60 61 62 63
  - hostPath:
      path: /tmp/krte/cache
      type: DirectoryOrCreate
    name: build-cache
J
Jenny Li 已提交
64 65 66 67 68 69 70 71 72 73 74 75
  - hostPath:
      path: /lib/modules
      type: Directory
    name: modules
  - hostPath:
      path: /sys/fs/cgroup
      type: Directory
    name: cgroup
  - name: ci-logs
    nfs:
      path: /ci-logs
      server: 172.16.70.239