Kubernetes
Install and attach K2's Node.js Language Agent with your Node.js application hosted on Kubernetes for Runtime Self Application Protection.
Steps to protect Node.js Web Application
Option 1: (Recommended)
apiVersion: v1 kind: Pod metadata: name: application-pod spec: containers: - image: k8s.gcr.io/test-webserver name: app-container volumeMounts: - mountPath: /opt/k2-ic name: k2-volume-1-10-16-PRODUCTION volumes: - name: k2-volume-1-10-16-PRODUCTION # Your Volume Config herenode --require /opt/k2-ic/k2-njs-agent/ <main-module>
require('/opt/k2-ic/k2-njs-agent/k2');
Option 2:
Last updated
Was this helpful?