Files
my-rook-config/pkg/daemon/multus/image-pull-daemonset.yaml
T
iPraveenParihar 78d6528153 test: allow specifying custom nginx image for multus validation
Allow overriding the nginx server image used for the web server and clients from CLI with --nginx-image flag.
Set default image in flag as 'nginxinc/nginx-unprivileged:stable-alpine'

Signed-off-by: iPraveenParihar <praveenparihar68@gmail.com>
2023-05-24 21:04:24 +05:30

40 lines
1.1 KiB
YAML

apiVersion: apps/v1
kind: DaemonSet
metadata:
name: multus-validation-test-image-pull
labels:
app: multus-validation-test-image-pull
app.kubernetes.io/name: "image-puller"
app.kubernetes.io/instance: "image-puller"
app.kubernetes.io/component: "image-puller"
app.kubernetes.io/part-of: "multus-validation-test"
app.kubernetes.io/managed-by: "rook-cli"
spec:
selector:
matchLabels:
app: multus-validation-test-image-pull
template:
metadata:
labels:
app: multus-validation-test-image-pull
spec:
# TODO: selectors, affinities, tolerations
securityContext:
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
containers:
- name: sleep
# use nginx image because it's already used for the web server pod and has a non-root user
image: "{{ .NginxImage }}"
command:
- sleep
- infinity
resources: {}
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- "ALL"
readOnlyRootFilesystem: true