Λογότυπο Kubescape Operator

Kubescape Operator

Κοινότητα
nitinjain999
kubescape-operator

Install, tune and troubleshoot the Kubescape operator for continuous in-cluster security — posture scans on every change, vulnerabilities filtered to packages that actually load (relevancy), eBPF runtime threat detection against learned container profiles, NetworkPolicies generated from observed traffic, SecurityException resources with an expiry, and Prometheus metrics and alerts. Flux or Argo CD install with a capability matrix, preflight for kernel and overlap with Falco or Trivy Operator, upgrade and rollback. Interactive when run without arguments. Use when asked to "install kubescape in the cluster", "continuous kubernetes security scanning", "which CVEs actually run", "runtime alerts for containers", "generate network policies from traffic", "kubescape operator not working", or "node-agent crashloop". One-off scans, CIS audits and the PR gate → /platform-skills:kubescape. Falco rules → /platform-skills:runtime-security. Trivy Operator → /platform-skills:trivy.

Add to TypingMind

Επισκόπηση

Εκδότηςnitinjain999
Αποθετήριοplatform-skills
Όνομα δεξιότηταςkubescape-operator
Αστέρια
71
Διακλαδώσεις
14
Συνοδευτικά αρχεία
Μόνο οδηγίες
Άδεια χρήσηςApache-2.0
Σύνδεσμοι
  • Οδηγίες σε Markdown

    Ένα αρχείο SKILL.md που το μοντέλο φορτώνει όταν χρειάζεται, ώστε να καταναλώνει token μόνο όταν ένα αίτημα είναι πράγματι σχετικό.

  • Λειτουργεί με οποιοδήποτε LLM

    Οι δεξιότητες AI είναι απλό Markdown, όχι κώδικας για συγκεκριμένο πάροχο, επομένως αυτή η δεξιότητα λειτουργεί με GPT, Claude, Gemini, Grok ή ένα τοπικό μοντέλο.

  • Αυτοτελής

    Όλα όσα χρειάζεται το μοντέλο περιλαμβάνονται στις οδηγίες — χωρίς επιπλέον αρχεία για συγχρονισμό.

  • Ανοιχτού κώδικα

    Δημοσιεύτηκε στο GitHub από τον λογαριασμό nitinjain999. Ελέγξτε τα αρχεία της δεξιότητας στο αποθετήριο πριν την εγκαταστήσετε.

Εγκατάσταση

Εγκαταστήστε τη δεξιότητα AI Kubescape Operator στο TypingMind για να τη χρησιμοποιείτε με οποιοδήποτε LLM ή προσθέστε τη σε άλλον πράκτορα AI που διαβάζει αρχεία SKILL.md.

1

Εγκατάσταση στο TypingMind

Το TypingMind εγκαθιστά μια δεξιότητα απευθείας από τον φάκελό της στο GitHub — διαβάζει το SKILL.md, συγκεντρώνει τα συνοδευτικά αρχεία σε πακέτο και αποθηκεύει το αποτέλεσμα τοπικά.

  1. Ανοίξτε την εφαρμογή και μεταβείτε στα Πρόσθετα → Δεξιότητες.
  2. Επιλέξτε «Εγκατάσταση από GitHub».
  3. Επικολλήστε το παρακάτω URL του φακέλου της δεξιότητας και επιβεβαιώστε.
    https://github.com/nitinjain999/platform-skills/tree/main/plugins/platform-skills/skills/kubescape-operator
  4. Ενεργοποιήστε τη δεξιότητα σε κάθε συνομιλία όπου θέλετε να είναι διαθέσιμη.
Πρόσθετα → Δεξιότητες → Προσθήκη δεξιότητας → Από URL του GitHub, έπειτα επικολλήστε το URL του φακέλου και πατήστε «Συνέχεια».
2

Εγκατάσταση σε άλλον πράκτορα AI

Κάθε πράκτορας AI που υποστηρίζει τη μορφή Agent Skills μπορεί να χρησιμοποιήσει αυτή τη δεξιότητα — αντιγράψτε τον φάκελο στον κατάλογο δεξιοτήτων του.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/nitinjain999/platform-skills.git /tmp/platform-skills
mkdir -p .claude/skills
cp -r /tmp/platform-skills/plugins/platform-skills/skills/kubescape-operator .claude/skills/kubescape-operator
Επανεκκινήστε το Claude Code μετά την αντιγραφή, ώστε να εντοπίσει τη νέα δεξιότητα.

Χρησιμοποιήστε τη στο TypingMind

Ενεργοποιήστε τη δεξιότητα Kubescape Operator σε οποιαδήποτε συνομιλία στο TypingMind και το μοντέλο αναλαμβάνει τα υπόλοιπα. Το όνομα και η περιγραφή της περιλαμβάνονται στην προτροπή συστήματος και, μόλις προκύψει ένα σχετικό αίτημα, το μοντέλο φορτώνει μόνο του τις πλήρεις οδηγίες — δεν χρειάζεται ποτέ να την καλείτε χειροκίνητα και δεν καταναλώνει token μέχρι να χρησιμοποιηθεί πραγματικά.

Το μοντέλο φορτώνει αυτόματα τη δεξιότητα Kubescape Operator μόλις λάβει ένα σχετικό αίτημα.

Λειτουργεί με οποιοδήποτε μοντέλο AI

Οι δεξιότητες AI είναι οδηγίες σε απλό κείμενο Markdown και όχι κώδικας για συγκεκριμένο πάροχο, οπότε η δεξιότητα Kubescape Operator δεν περιορίζεται στο μοντέλο για το οποίο γράφτηκε. Εγκαταστήστε τη μία φορά στο TypingMind και χρησιμοποιήστε τη με GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ή ένα τοπικό μοντέλο που εκτελείτε εσείς — πάντα με τα δικά σας κλειδιά API.

  • Φόρτωση μόνο όταν χρειάζεται

    Η προτροπή συστήματος περιλαμβάνει μόνο το όνομα και την περιγραφή. Οι οδηγίες ανακτώνται με το πρώτο σχετικό αίτημα, οπότε μια δεξιότητα που δεν χρησιμοποιείται δεν έχει κόστος.

  • Αλλάξτε μοντέλο κατά τη διάρκεια της συνομιλίας

    Επειδή η δεξιότητα αποτελείται από οδηγίες και όχι από κώδικα, η αλλαγή μοντέλου δεν επηρεάζει τη λειτουργία της — το επόμενο μοντέλο διαβάζει το ίδιο αρχείο SKILL.md.

Οδηγίες δεξιότητας

Αυτό είναι το περιεχόμενο του αρχείου SKILL.md που φορτώνει το μοντέλο. Διαβάστε το πριν από την εγκατάσταση — μια δεξιότητα αποτελείται από οδηγίες που θα ακολουθήσει το μοντέλο σας.

Run Kubescape inside the cluster: posture that updates itself, CVEs ranked by whether they load, alerts on behaviour a container never showed, and NetworkPolicies drafted from real traffic.

Read references/kubescape-operator.md before responding. It holds the preflight, the capability matrix and install profiles, the scanner image override, result commands, runtime and NetworkPolicy details, exceptions, metrics and troubleshooting. The working files are in examples/kubescape-operator.

The GitOps engine for this organisation is ${user_config.gitops_engine}. If that reads as a literal placeholder or is empty, it is not configured: detect Flux (kubectl get crd helmreleases.helm.toolkit.fluxcd.io) or Argo CD (kubectl get crd applications.argoproj.io), or ask.

Ownership boundary (enforced at the menu)

QuestionAuthoritative command
"Scan continuously, keep results in the cluster"this command
"Which CVEs are in code that actually runs?"this command (vulns)
"Alert on unexpected container behaviour"this command (runtime), or /platform-skills:runtime-security where Falco runs
"Draft NetworkPolicies from traffic"this command (netpol)
"Score the cluster now / CIS audit / PR gate"/platform-skills:kubescape
"CVE reports with Trivy Operator"/platform-skills:trivy k8s
"Dashboards and alert routing"/platform-skills:observability

Mode dispatch

Parse the first word of $ARGUMENTS as the mode. When $ARGUMENTS is empty, or is a question in plain words, run the interactive wizard.

ModeWhat it does
installPreflight, pick a profile, write the Flux (or Argo CD) manifests, install, verify, upgrade or roll back
vulnsRead and rank vulnerability results; on-demand scan; private registries
runtimeEnable detection, check learning progress, bind rules, route alerts, test an alert
netpolTurn a generated policy into a reviewed NetworkPolicy in Git
exceptionsAccept a risk in the cluster: SecurityException with reason, author, expiry
metricsExporter, ServiceMonitor, alert rules
debugDiagnose an operator that installs but misbehaves
(empty)Interactive wizard

Step 0 — detect before asking (silent)

bash
kubectl config current-context
kubectl version -o json | jq -r .serverVersion.gitVersion            # >= 1.28
kubectl get nodes -o jsonpath='{range .items[*]}{.status.nodeInfo.kernelVersion}{"  "}{.spec.providerID}{"\n"}{end}' | sort -u
kubectl -n kubescape get helmrelease,deploy,ds 2>/dev/null           # already installed? which profile?
kubectl get crd | grep -E 'helm.toolkit.fluxcd.io|argoproj.io|monitoring.coreos.com|kyverno'
kubectl get ds -A | grep -iE 'falco|tetragon'                       # another eBPF agent
kubectl get deploy -A | grep -i trivy-operator                      # another CVE operator

Then, only if a node-agent profile is in play, run the kernel preflight from the reference on one node per node image (CONFIG_FANOTIFY_ACCESS_PERMISSIONS, CONFIG_DEBUG_INFO_BTF). Tell the user what you found in one short block before the first question, for example:

Cluster: prod-eu-west-1 (EKS, Kubernetes 1.33, 3 node images)
Flux: yes · Prometheus Operator: yes · Falco: yes (daemonset falco) · Trivy Operator: no
Kernel: fanotify permissions ✔ on all node images
Kubescape: not installed

Interactive wizard

Ask with the AskUserQuestion tool when it is available (one question per call, recommended option first); otherwise print the numbered menu and wait.

Layer 1 — What do you want?

What do you want Kubescape to do in this cluster?
  1. "Install it" / "change what it does"                  → install
  2. "Show me which vulnerabilities actually matter"       → vulns
  3. "Alert me when a container does something odd"       → runtime
  4. "Write NetworkPolicies from real traffic"             → netpol
  5. "We accept this risk in the cluster"                  → exceptions
  6. "Get it into Prometheus / Grafana"                    → metrics
  7. "It's installed but something is wrong"               → debug

  Just a score or a CIS audit right now → /platform-skills:kubescape cluster

Not installed and the user picked 2–6 → say it needs install first and offer it.

Layer 2 — Install profile (install only)

Offer the profiles from the reference, pre-selected from Step 0:

Which profile?
  a. Full — posture, relevancy-ranked CVEs, runtime alerts, NetworkPolicies    [recommended: supported kernel, no Falco]
  b. Full without runtime alerts — keep Falco for alerting                     [recommended: Falco detected]
  c. Posture + CVEs, no node-agent — any kernel, no privileged DaemonSet       [required: kernel lacks fanotify permissions]
  d. Posture only — Trivy Operator keeps CVEs                                  [recommended: Trivy Operator detected]

State why the recommended one fits, in one line. Never offer a node-agent profile on nodes that failed the kernel preflight: the install would fail and Flux would uninstall the release.

Layer 3 — Only the settings that can hurt

  • Overlap (detected Falco or Trivy Operator): "Turn off Kubescape's <runtime alerts | CVE scanning> so each signal has one owner? [Y]".
  • Learning period (runtime): "Profiles learn for 24h before anomaly rules fire. Keep 24h? [Y]" Shorter means more false alerts.
  • Cluster name (install): "Name this cluster in reports? []". The chart default cluster makes clusters indistinguishable.
  • Alert destination (runtime): logs only (default), Alertmanager or syslog. HTTP only with a Kubescape backend configured (server plus credentials); chart 1.40.4 ignores the HTTP URL otherwise.

Status card (every mode ends with this)

Kubescape operator — prod-eu-west-1                      chart 1.40.4 · scanner v4.0.16
Posture      ✔ 214 workloads scanned · 3 critical · 41 high      last scan 12m ago
CVEs         ✔ relevancy on · 2 critical in loaded packages (of 31 total)
Runtime      ✔ 38/41 profiles completed · 0 alerts in 24h
NetPol       ✔ 41 generated · 0 applied from Git yet
Exceptions   2 active · next expiry 2026-12-31 (payments-api C-0237)

Next: /platform-skills:kubescape-operator netpol payments

Build it from kubectl get workloadconfigurationscansummaries -A, vulnerabilitymanifestsummaries -A, containerprofiles -A annotations, generatednetworkpolicies -A, se -A/cse. Show only lines for enabled capabilities; one next command.


Mode: install

  1. Step 0 and the profile (Layer 2).
  2. Copy examples/kubescape-operator/flux/ into the user's GitOps path; apply the profile's capability changes; set clusterName; keep version exact and kubescape.image.tag at v4.0.16 (or later) — the bundled v4.0.13 scanner produces no results; keep global.enableClusterWideSecretAccess: false (the chart default true lets the scanner and operator read every Secret in the cluster) and ask for explicit approval before turning it on.
  3. Argo CD: same values in an Application (helm.valuesObject, ServerSideApply=true).
  4. Commit, reconcile, then verify: HelmRelease Ready, pods, APIService Available, kubescape operator scan configurations followed by summaries appearing.
  5. Restart workloads once if runtime capabilities are on, so profiles reach complete.
  6. Print the status card, the blast radius (privileged DaemonSet per node, fail-open admission webhook, kubevuln memory) and the rollback (flux suspend, git revert).

Upgrade: bump version in a PR; read the release notes; compare the new bundled scanner tag with the override.

Mode: vulns

  1. kubectl get vulnerabilitymanifestsummaries -A → rank by critical.relevant then high.relevant (with relevancy) or by all (without, and say so).
  2. Top five workloads: image, critical/high, fixable count. Image CI gate → /platform-skills:trivy.
  3. On demand: kubescape operator scan vulnerabilities --include-namespaces <ns>.
  4. Private registry pulls failing → imageScanning.privateRegistries.credentials from a managed secret.

Mode: runtime

  1. Preflight passed? Falco on the same nodes? (Layer 3 overlap.)
  2. capabilities.runtimeDetection: enable, alertCRD.installDefault: true; one node pool first.
  3. Learning: list containerprofiles with kubescape.io/status and kubescape.io/completion; explain ready = still learning, completed = active.
  4. Bindings: keep all-rules-all-pods. A binding cannot reach a namespace in excludeNamespaces (node-agent never traces it). To narrow a noisy namespace (CI runners) to signature rules, use the opt-in examples/kubescape-operator/ci-runners/ in two steps: first its binding (after the operator is Ready; Flux dependsOn), then switch the operator's Kustomization to ci-runners/release/, which adds the post-renderer that removes the namespace from the default binding. Never the other way round, and never in the base install.
  5. Alerts: logs, Alertmanager or syslog exporter values (HTTP needs backend submission; see the reference).
  6. Prove it: after completed, kubectl exec into a test pod and show the R2000/R0001 alert in kubectl -n kubescape logs ds/node-agent.

Mode: netpol

  1. kubectl -n <ns> get generatednetworkpolicies; pick the workload (<kind>-<name>).
  2. Extract .spec. Use policyRef (dns, server) to identify each destination, then write in-cluster peers as podSelector/namespaceSelector and external ones as a reviewed ipBlock CIDR — NetworkPolicy has no hostname peers (FQDN rules need a CNI-specific policy such as Cilium toFQDNs). The policy selects only this workload, so it isolates only these pods. Add a namespace-wide default-deny later, once every workload in the namespace has a reviewed allow policy and its traffic is validated; earlier, it cuts traffic for pods that have none yet.
  3. Ask how long the workload has run; under one full traffic cycle (daily jobs, weekly reports) → wait.
  4. Commit for the GitOps reconciler; one namespace at a time; rollback = revert. Never kubectl apply the generated object to production.
  5. Hardening the rest of the namespace → /platform-skills:kubernetes.

Mode: exceptions

  1. Control ID, kind, name, namespace (from the last summary or the user); reason; author; expiry (default 90 days).
  2. Write a SecurityException from examples/kubescape-operator/security-exception.yaml (ClusterSecurityException with namespaceSelector for many namespaces); action: ignore, or alert_only to keep it visible.
  3. Confirm capabilities.riskAcceptance: enable; apply through Git; show the control at passed (w/exceptions) after the automatic rescan.
  4. Remind: a file exception in CI wins over this for the same control and resource.

Mode: metrics

  1. capabilities.prometheusExporter: enable; ServiceMonitor with the Prometheus Operator, otherwise configurations.prometheusAnnotations: enable.
  2. Apply examples/kubescape-operator/prometheusrule.yaml; fix the release label to the user's Prometheus ruleSelector.
  3. Without relevancy, explain why relevant series are 0 and the fallback alert exists.
  4. Dashboards → /platform-skills:observability.

Mode: debug

Classify, then follow the matching troubleshooting entry in the reference:

SymptomFirst commandUsual cause
node-agent CrashLoopBackOffkubectl -n kubescape logs ds/node-agent --previous | grep -i fanotifyrunc path (global.overrideRuntimePath) or kernel without fanotify permissions
Installed, no resultskubectl -n kubescape logs deploy/kubescape | grep 'scanning failed'bundled scanner v4.0.13 (framework 'C-0042' not found)
HelmRelease gone / InstallFailedkubectl -n kubescape get hr kubescape -o jsonpath='{.status.conditions}'node-agent not Ready → Flux uninstall remediation
APIService unavailablekubectl get apiservice v1beta1.spdx.softwarecomposition.kubescape.iostorage starting or out of memory
Profiles stay partialkubectl get containerprofiles -n <ns> annotationspods older than node-agent → restart
No metricsport-forward the exporter, curl /metricsServiceMonitor selection, or scans failing

Use the systematic order: evidence first, one hypothesis, smallest test, then the fix with verification and rollback.


Agent behavior

Never do these

  • Enable a node-agent capability on nodes that failed the kernel preflight.
  • Enable remediation or autoUpgrading.
  • Turn on global.enableClusterWideSecretAccess without explicit security approval.
  • Install with the chart's bundled scanner (v4.0.13) and call it done.
  • Apply a generated NetworkPolicy directly to production.
  • Use kubectl get applicationprofiles or networkneighborhoods (removed); use containerprofiles.
  • Run Kubescape runtime detection and Falco on the same nodes without saying so.

Always do these

  • Show the Step 0 findings before the first question.
  • State blast radius and rollback for install and upgrade.
  • End with the status card and one next command.

Cross-references

  • references/kubescape-operator.md — full operator reference
  • /platform-skills:kubescape — CLI, CIS audits, PR gate, VAP
  • /platform-skills:runtime-security · /platform-skills:trivy · /platform-skills:fluxcd · /platform-skills:observability

Συχνές ερωτήσεις

Τι κάνει η δεξιότητα AI Kubescape Operator;

Install, tune and troubleshoot the Kubescape operator for continuous in-cluster security — posture scans on every change, vulnerabilities filtered to packages that actually load (relevancy), eBPF runtime threat detection against learned container profiles, NetworkPolicies generated from observed traffic, SecurityException resources with an expiry, and Prometheus metrics and alerts. Flux or Argo CD install with a capability matrix, preflight for kernel and overlap with Falco or Trivy Operator, upgrade and rollback. Interactive when run without arguments. Use when asked to "install kubescape...

Γιατί να χρησιμοποιήσετε τη δεξιότητα Kubescape Operator στο TypingMind;

Επειδή την εγκαθιστάτε μία φορά και τη χρησιμοποιείτε με οποιοδήποτε μοντέλο. Η Kubescape Operator είναι απλό Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως η ίδια δεξιότητα λειτουργεί με GPT-5, Claude, Gemini, Grok ή ένα τοπικό μοντέλο — και μπορείτε να αλλάξετε μοντέλο κατά τη διάρκεια της συνομιλίας χωρίς να διακοπεί η λειτουργία της. Το TypingMind λειτουργεί με τα δικά σας κλειδιά API, οπότε πληρώνετε απευθείας τους παρόχους αντί για συνδρομή ανά θέση χρήστη, ενώ οι δεξιότητες και οι συνομιλίες σας παραμένουν στον δικό σας χώρο αποθήκευσης.

Πώς εγκαθιστώ τη δεξιότητα Kubescape Operator στο TypingMind;

Στο TypingMind, ανοίξτε Πρόσθετα → Δεξιότητες → Εγκατάσταση από το GitHub και επικολλήστε τη διεύθυνση https://github.com/nitinjain999/platform-skills/tree/main/plugins/platform-skills/skills/kubescape-operator. Το TypingMind διαβάζει το αρχείο SKILL.md και εγκαθιστά τη δεξιότητα, την οποία μπορείτε να ενεργοποιείτε ανά συνομιλία.

Ποια μοντέλα AI μπορούν να χρησιμοποιήσουν τη δεξιότητα Kubescape Operator;

Οποιοδήποτε μοντέλο συνδέετε στο TypingMind. Οι δεξιότητες AI είναι απλές οδηγίες Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως τα GPT, Claude, Gemini, Grok και τα τοπικά μοντέλα μπορούν όλα να φορτώσουν αυτή τη δεξιότητα όταν ένα αίτημα αντιστοιχεί σε αυτή.

Με πόσα μοντέλα AI μπορώ να χρησιμοποιήσω τη δεξιότητα Kubescape Operator;

Με όσα θέλετε. Στο TypingMind μπορείτε να χρησιμοποιήσετε τη δεξιότητα Kubescape Operator με οποιοδήποτε μοντέλο υποστηρίζει δεξιότητες, όπως τα GPT, Claude, Gemini, Grok, DeepSeek, Mistral και Llama, χρησιμοποιώντας τα δικά σας κλειδιά API.

Είναι δωρεάν η δεξιότητα AI Kubescape Operator;

Ναι. Δημοσιεύεται στο GitHub από τον λογαριασμό nitinjain999 με την άδεια χρήσης Apache-2.0. Πληρώνετε μόνο τον δικό σας πάροχο AI για τα token που χρησιμοποιείτε.

Τι είναι οι δεξιότητες AI;

Μια δεξιότητα AI είναι ένα επαναχρησιμοποιήσιμο πακέτο οδηγιών που διδάσκει σε ένα μοντέλο AI πώς να εκτελεί μια συγκεκριμένη εργασία. Ακολουθεί την ανοιχτή μορφή Agent Skills: ένα αρχείο SKILL.md με όνομα και περιγραφή, μαζί με τυχόν σενάρια κώδικα, πρότυπα ή αρχεία αναφοράς που μπορεί να χρειαστεί το μοντέλο. Το μοντέλο διαβάζει τις οδηγίες μόνο όταν το αίτημά σας αντιστοιχεί στη δεξιότητα, οπότε μια εγκατεστημένη δεξιότητα δεν κοστίζει τίποτα μέχρι να χρησιμοποιηθεί.

Σε τι διαφέρουν οι δεξιότητες AI από τα πρόσθετα ή τους συνδέσμους MCP;

Ένα πρόσθετο ή ένας σύνδεσμος MCP παρέχει στο μοντέλο νέα εργαλεία που μπορεί να καλέσει — κώδικα που εκτελείται κάπου και επιστρέφει ένα αποτέλεσμα. Μια δεξιότητα AI παρέχει αντί γι’ αυτό γνώσεις και διαδικασίες στο μοντέλο: πώς να προσεγγίσει μια εργασία, ποια βήματα να ακολουθήσει και ποια χαρακτηριστικά έχει ένα καλό αποτέλεσμα. Οι δεξιότητες είναι απλό Markdown, επομένως δεν χρειάζονται διακομιστή, κλειδί API ή περιβάλλον εκτέλεσης και λειτουργούν με οποιοδήποτε μοντέλο.

Προβολή όλων

Δημιουργήστε τώρα τον δικό σας χώρο εργασίας AI

Εγγραφείτε στο ενημερωτικό μας δελτίο για να ενημερώνεστε για νέες λειτουργίες και μελλοντικές κληρώσεις δώρων 👇