diff --git a/build/Dockerfile b/build/Dockerfile index 6385051f..f80803cb 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -24,4 +24,4 @@ COPY --from=builder /work/build/ubuntu-latest/kubescape /usr/bin/kubescape # # Download the frameworks. Use the "--use-default" flag when running kubescape # RUN kubescape download framework nsa && kubescape download framework mitre -CMD ["kubescape"] +ENTRYPOINT ["kubescape"] diff --git a/examples/cronjob/ks-cronjob.yaml b/examples/cronjob/ks-cronjob.yaml index 49f46efe..b00b2aff 100644 --- a/examples/cronjob/ks-cronjob.yaml +++ b/examples/cronjob/ks-cronjob.yaml @@ -72,10 +72,8 @@ metadata: data: config.json: | { - "adminMail": "", - "customerGUID": "", - "clusterName": "", - "invitationParam": "" + "customerGUID": , + "clusterName": } --- @@ -104,12 +102,11 @@ spec: spec: containers: - name: kubescape - image: quay.io/armosec/kubescape:latset + image: quay.io/armosec/kubescape:latest imagePullPolicy: IfNotPresent command: ["/bin/sh","-c"] args: - - kubescape scan framework nsa --exclude-namespaces kube-system,kube-public - #- kubescape scan framework nsa --use-default --exclude-namespaces kube-system,kube-public + - kubescape scan framework nsa --submit volumeMounts: - name: kubescape-config-volume mountPath: /root/.kubescape/config.json