mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-02 18:23:12 +00:00
Without setting the cpu limit / request to 1, we can make this test run in a smaller VM instance without any issue. Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
31 lines
629 B
YAML
31 lines
629 B
YAML
#
|
|
# Copyright (c) 2021 Apple Inc.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
---
|
|
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: inotify-configmap-testing
|
|
spec:
|
|
containers:
|
|
- name: c1
|
|
image: quay.io/kata-containers/fsnotify:latest
|
|
command: ["bash"]
|
|
args: ["-c", "inotifywait --timeout 120 -r /config/ && [[ -L /config/config.toml ]] && echo success" ]
|
|
resources:
|
|
requests:
|
|
memory: 50Mi
|
|
limits:
|
|
memory: 1024Mi
|
|
volumeMounts:
|
|
- name: config
|
|
mountPath: /config
|
|
runtimeClassName: kata
|
|
restartPolicy: Never
|
|
volumes:
|
|
- name: config
|
|
configMap:
|
|
name: cm
|