Files
my-rook-config/pkg/daemon/multus/nginx-pod.yaml
T
Blaine Gardner b0167660f5 operator: pull multus validation test images before test
Before starting multus validation test clients, pull the client image to
all nodes. This will ensure that variations in client readiness timing
will not be affected by variations in the time nodes take to pull the
image. This is intended to reduce the number of false reports of flaky
multus networks.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit 3a27cb60b3)
2023-05-19 20:40:05 +00:00

53 lines
1.5 KiB
YAML

# This is a Pod and not a Deployment because there is intended to only be one running
apiVersion: apps/v1
kind: Pod
metadata:
name: multus-validation-test-web-server
labels:
app: multus-validation-test-web-server
app.kubernetes.io/name: "nginx"
app.kubernetes.io/instance: "nginx" # there is only one instance
app.kubernetes.io/component: "server"
app.kubernetes.io/part-of: "multus-validation-test"
app.kubernetes.io/managed-by: "rook-cli"
annotations:
k8s.v1.cni.cncf.io/networks: "{{ .NetworksAnnotationValue }}"
spec:
# TODO: selectors, affinities, tolerations
securityContext:
runAsNonRoot: true
runAsUser: 101
runAsGroup: 101
seccompProfile:
type: RuntimeDefault
containers:
- name: multus-validation-test-web-server
image: nginxinc/nginx-unprivileged:stable-alpine
resources: {}
ports:
- containerPort: 8080
readinessProbe:
httpGet:
port: 8080
scheme: HTTP
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- "ALL"
volumeMounts:
- name: var-cache-nginx
mountPath: /var/cache/nginx
- name: server-conf
mountPath: /etc/nginx/conf.d
- name: var-run
mountPath: /var/run
volumes:
- name: var-cache-nginx
emptyDir: {}
- name: server-conf
configMap:
name: multus-validation-test-web-server-conf
- name: var-run
emptyDir: {}