2023-05-08 14:20:00 -06:00
|
|
|
apiVersion: apps/v1
|
|
|
|
|
kind: DaemonSet
|
|
|
|
|
metadata:
|
2023-09-23 10:44:49 -06:00
|
|
|
name: multus-validation-test-image-pull-{{ .NodeType }}
|
2023-05-08 14:20:00 -06:00
|
|
|
labels:
|
|
|
|
|
app: multus-validation-test-image-pull
|
2023-09-23 10:44:49 -06:00
|
|
|
nodeType: "{{ .NodeType }}"
|
2023-05-08 14:20:00 -06:00
|
|
|
app.kubernetes.io/name: "image-puller"
|
2023-09-23 10:44:49 -06:00
|
|
|
app.kubernetes.io/instance: "image-puller-{{ .NodeType }}"
|
2023-05-08 14:20:00 -06:00
|
|
|
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
|
2023-09-23 10:44:49 -06:00
|
|
|
nodeType: "{{ .NodeType }}"
|
2023-05-08 14:20:00 -06:00
|
|
|
template:
|
|
|
|
|
metadata:
|
|
|
|
|
labels:
|
|
|
|
|
app: multus-validation-test-image-pull
|
2023-09-23 10:44:49 -06:00
|
|
|
nodeType: "{{ .NodeType }}"
|
2023-05-08 14:20:00 -06:00
|
|
|
spec:
|
2023-09-23 10:44:49 -06:00
|
|
|
nodeSelector:
|
|
|
|
|
{{- range $k, $v := .Placement.NodeSelector }}
|
|
|
|
|
{{ $k }}: {{ $v }}
|
|
|
|
|
{{- end }}
|
|
|
|
|
tolerations:
|
|
|
|
|
{{- range $idx, $toleration := .Placement.Tolerations }}
|
|
|
|
|
- {{ $toleration.ToJSON }}
|
|
|
|
|
{{- end }}
|
2023-05-08 14:20:00 -06:00
|
|
|
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
|
2023-05-13 17:29:21 +05:30
|
|
|
image: "{{ .NginxImage }}"
|
2023-05-08 14:20:00 -06:00
|
|
|
command:
|
|
|
|
|
- sleep
|
|
|
|
|
- infinity
|
|
|
|
|
resources: {}
|
|
|
|
|
securityContext:
|
|
|
|
|
allowPrivilegeEscalation: false
|
|
|
|
|
capabilities:
|
|
|
|
|
drop:
|
|
|
|
|
- "ALL"
|
|
|
|
|
readOnlyRootFilesystem: true
|