Run Vulnetix CLI as Kubernetes Jobs with secret management, persistent volumes, and cloud-native security scanning workflows.
Add Vulnetix to Kubernetes
Create vulnetix-job.yaml and run the Vulnetix CLI in your Kubernetes pipeline. It collects SARIF, CycloneDX and SPDX artifacts automatically and uploads them for centralised vulnerability management:
apiVersion: batch/v1
kind: Job
metadata:
name: vulnetix-scan
spec:
template:
spec:
restartPolicy: Never
initContainers:
# No published Vulnetix image; stage the binary on a shared volume.
- name: install-vulnetix
image: alpine:3.20
command: ["/bin/sh", "-c"]
args:
- |
apk add --no-cache ca-certificates curl tar
curl -fsSL https://cli.vulnetix.com/install.sh | sh -s -- --install-dir /opt/vulnetix/bin
volumeMounts:
- name: cli
mountPath: /opt/vulnetix/bin
containers:
- name: vulnetix
image: alpine:3.20
env:
- name: VULNETIX_ORG_ID
valueFrom:
secretKeyRef:
name: vulnetix-secrets
key: org-id
- name: VULNETIX_API_KEY
valueFrom:
secretKeyRef:
name: vulnetix-secrets
key: api-key
command: ["/opt/vulnetix/bin/vulnetix"]
args: ["scan", "--severity", "high"]
volumeMounts:
- name: cli
mountPath: /opt/vulnetix/bin
- name: workspace
mountPath: /workspace
volumes:
- name: cli
emptyDir: {}
- name: workspace
hostPath:
path: /path/to/project
Why run Vulnetix in Kubernetes?
Every scan from every job lands in one queue, deduplicated and prioritised with EPSS, CISA KEV and Coalition ESS exploit intelligence, so your Kubernetes pipeline gates merges on what is actually exploitable, not raw scanner noise.