fixed image and entrypoint

This commit is contained in:
dwertent
2021-10-21 11:32:20 +03:00
parent a90177e7c0
commit d194dd173f
2 changed files with 5 additions and 8 deletions
+1 -1
View File
@@ -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"]
+4 -7
View File
@@ -72,10 +72,8 @@ metadata:
data:
config.json: |
{
"adminMail": "",
"customerGUID": "<MyGUID>",
"clusterName": "<MyK8sClusterName>",
"invitationParam": ""
"customerGUID": <MyGUID>,
"clusterName": <MyK8sClusterName>
}
---
@@ -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