2021-04-29 16:45:17 +08:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Pod
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: milvus-e2e
|
|
|
|
spec:
|
2021-11-09 19:12:30 +08:00
|
|
|
enableServiceLinks: false
|
2021-04-29 16:45:17 +08:00
|
|
|
containers:
|
|
|
|
- name: main
|
2021-07-22 15:52:12 +08:00
|
|
|
image: milvusdb/krte:20210722-806d13f
|
2021-04-29 16:45:17 +08:00
|
|
|
env:
|
|
|
|
- name: DOCKER_IN_DOCKER_ENABLED
|
|
|
|
value: "true"
|
2021-06-01 14:52:31 +08:00
|
|
|
- name: DOCKER_VOLUME_DIRECTORY
|
|
|
|
value: "/mnt/disk/.docker"
|
2021-08-03 07:51:24 +08:00
|
|
|
- name: KRTE_POD_IP
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: status.podIP
|
2021-04-29 16:45:17 +08:00
|
|
|
securityContext:
|
|
|
|
privileged: true
|
|
|
|
tty: true
|
|
|
|
args: ["cat"]
|
|
|
|
resources:
|
|
|
|
limits:
|
2021-08-03 21:57:24 +08:00
|
|
|
cpu: "6"
|
|
|
|
memory: 12Gi
|
2021-09-06 19:06:41 +08:00
|
|
|
ephemeral-storage: "100Gi"
|
2021-04-29 16:45:17 +08:00
|
|
|
requests:
|
2021-11-04 11:00:33 +08:00
|
|
|
cpu: "2"
|
2021-08-03 21:57:24 +08:00
|
|
|
memory: 10Gi
|
2021-09-06 19:06:41 +08:00
|
|
|
ephemeral-storage: "100Gi"
|
2021-04-29 16:45:17 +08:00
|
|
|
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
|
2021-08-03 07:51:24 +08:00
|
|
|
- name: etcd
|
2021-08-11 11:50:11 +08:00
|
|
|
image: quay.io/coreos/etcd:v3.5.0
|
2021-08-03 21:57:24 +08:00
|
|
|
env:
|
|
|
|
- name: ETCD_LOG_LEVEL
|
|
|
|
value: debug
|
2021-10-13 19:07:04 +08:00
|
|
|
- name: ETCD_LOGGER
|
|
|
|
value: zap
|
2021-08-24 11:11:54 +08:00
|
|
|
- name: ETCD_QUOTA_BACKEND_BYTES
|
|
|
|
value: "4294967296"
|
2021-08-25 11:51:52 +08:00
|
|
|
- name: ETCD_AUTO_COMPACTION_MODE
|
|
|
|
value: "revision"
|
|
|
|
- name: ETCD_AUTO_COMPACTION_RETENTION
|
|
|
|
value: "1000"
|
2021-09-18 09:47:50 +08:00
|
|
|
- name: ETCD_SNAPSHOT_COUNT
|
|
|
|
value: "10000"
|
2021-09-24 18:33:56 +08:00
|
|
|
- name: GODEBUG
|
|
|
|
value: "gctrace=1"
|
2021-08-03 07:51:24 +08:00
|
|
|
command:
|
|
|
|
- etcd
|
|
|
|
- -advertise-client-urls=http://127.0.0.1:2379
|
|
|
|
- -listen-client-urls=http://0.0.0.0:2379
|
|
|
|
resources:
|
|
|
|
limits:
|
2021-08-03 21:57:24 +08:00
|
|
|
cpu: "2"
|
2021-08-24 11:11:54 +08:00
|
|
|
memory: "6Gi"
|
2021-11-04 11:00:33 +08:00
|
|
|
requests:
|
|
|
|
cpu: "1"
|
|
|
|
memory: "4Gi"
|
2021-08-03 07:51:24 +08:00
|
|
|
ports:
|
|
|
|
- containerPort: 2379
|
|
|
|
name: client
|
|
|
|
protocol: TCP
|
2021-04-29 16:45:17 +08:00
|
|
|
volumes:
|
|
|
|
- emptyDir: {}
|
|
|
|
name: docker-graph
|
|
|
|
- emptyDir: {}
|
|
|
|
name: docker-root
|
|
|
|
- hostPath:
|
|
|
|
path: /tmp/krte/cache
|
|
|
|
type: DirectoryOrCreate
|
|
|
|
name: build-cache
|
|
|
|
- hostPath:
|
|
|
|
path: /lib/modules
|
|
|
|
type: Directory
|
|
|
|
name: modules
|
|
|
|
- hostPath:
|
|
|
|
path: /sys/fs/cgroup
|
|
|
|
type: Directory
|
|
|
|
name: cgroup
|
|
|
|
affinity:
|
|
|
|
podAntiAffinity:
|
2021-08-04 19:43:24 +08:00
|
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
|
|
- labelSelector:
|
|
|
|
matchExpressions:
|
2021-11-01 09:51:52 +08:00
|
|
|
- key: jenkins/label
|
2021-08-04 19:43:24 +08:00
|
|
|
operator: In
|
|
|
|
values:
|
2021-11-01 09:51:52 +08:00
|
|
|
- milvus-e2e-test-kind-nightly
|
2021-08-04 19:43:24 +08:00
|
|
|
topologyKey: kubernetes.io/hostname
|