kube-bench installation on OpenShift 3.11 #793
Unanswered
adshafqat
asked this question in
Questions and Help
Replies: 1 comment 4 replies
-
Could you show me the content of Dockerfile? And what is the CPU arch of your OpenShift cluster? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I try to run kube-bench in OpenShift, the container creation failed and I see this error
Error: failed to start container "kube-bench": Error response from daemon: oci runtime error: container_linux.go:235: starting container process caused "exec: "kube-bench": executable file not found in $PATH"
Any idea what could be the reason of this issue?
Below you can find the content of job.yaml file
apiVersion: batch/v1
kind: Job
metadata:
name: kube-bench
spec:
template:
metadata:
labels:
app: kube-bench
spec:
hostPID: true
containers:
- name: kube-bench
image: docker-registry.default.svc:5000/openshift/kube-bench:latest
command: ["kube-bench"]
volumeMounts:
- name: var-lib-etcd
mountPath: /var/lib/etcd
readOnly: true
- name: var-lib-kubelet
mountPath: /var/lib/kubelet
readOnly: true
- name: etc-systemd
mountPath: /etc/systemd
readOnly: true
- name: etc-kubernetes
mountPath: /etc/kubernetes
readOnly: true
- name: usr-bin
mountPath: /usr/local/mount-from-host/bin
readOnly: true
restartPolicy: Never
nodeSelector:
node-role.kubernetes.io/master: 'true'
volumes:
- name: var-lib-etcd
hostPath:
path: "/var/lib/etcd"
- name: var-lib-kubelet
hostPath:
path: "/var/lib/kubelet"
- name: etc-systemd
hostPath:
path: "/etc/systemd"
- name: etc-kubernetes
hostPath:
path: "/etc/kubernetes"
- name: usr-bin
hostPath:
path: "/usr/bin"
Beta Was this translation helpful? Give feedback.
All reactions