mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-10 05:44:04 +00:00
The nginx container seems to error out when using UID=123. Depending on the timing between container initialization and "kubectl wait", the test might have gotten lucky and found the pod briefly in Ready state before nginx errored out. But on some of the nodes, the pod never got reported as Ready. Also, don't block in "kubectl wait --for=condition=Ready" when wrapping that command in a waitForProcess call, because waitForProcess is designed for short-lived commands. Signed-off-by: Dan Mihai <dmihai@microsoft.com>
46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
#
|
|
# Copyright (c) 2024 Microsoft
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
apiVersion: v1
|
|
kind: ReplicationController
|
|
metadata:
|
|
name: policy-rc-test
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
app: policy-nginx-rc
|
|
template:
|
|
metadata:
|
|
name: nginx
|
|
labels:
|
|
app: policy-nginx-rc
|
|
spec:
|
|
terminationGracePeriodSeconds: 0
|
|
runtimeClassName: kata
|
|
containers:
|
|
- name: nginxtest
|
|
image: quay.io/fidencio/${nginx_version}
|
|
ports:
|
|
- containerPort: 80
|
|
volumeMounts:
|
|
- name: host-empty-vol
|
|
mountPath: "/host/cache"
|
|
- name: host-empty-vol
|
|
mountPath: "/host/cache-read-only"
|
|
readOnly: true
|
|
- mountPath: /tmp/results
|
|
name: hostpath-vol
|
|
- mountPath: /tmp/results-read-only
|
|
name: hostpath-vol-read-only
|
|
readOnly: true
|
|
volumes:
|
|
- name: host-empty-vol
|
|
emptyDir: {}
|
|
- name: hostpath-vol
|
|
hostPath:
|
|
path: /tmp/results
|
|
- name: hostpath-vol-read-only
|
|
hostPath:
|
|
path: /tmp/results-read-only |