Skip to content

Instantly share code, notes, and snippets.

View raif-ahmed's full-sized avatar
:octocat:

Raif Ahmed raif-ahmed

:octocat:
  • Amsterdam Netherlands
View GitHub Profile
apiVersion: v1
items:
- apiVersion: neuvector.com/v1
kind: NvSecurityRule
metadata:
name: nv.httpd.sample1
namespace: sample1
spec:
dlp:
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
name: neuvector-monitoring
namespace: neuvector
spec:
groups:
- name: neuvector
rules:
- alert: neuvectorEnforcerDown
# NV Exporter Conf File - Using Secrets/ConfigMap
# Use config map for not-secret configuration data
apiVersion: v1
kind: ConfigMap
metadata:
name: nv-exporter-cm
namespace: neuvector
data:
CTRL_API_SERVICE: neuvector-svc-controller.neuvector:10443
EXPORTER_PORT: '8068'
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: neuvector-prometheus
namespace: neuvector
spec:
endpoints:
- port: prometheus-exporter
interval: 30s
scheme: http
apiVersion: v1
items:
- apiVersion: neuvector.com/v1
kind: NvSecurityRule
metadata:
name: nv.httpd.sample1
namespace: sample1
spec:
dlp: