Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change to deploy discovery-engine in accuknox-agents namespace #620

Merged
merged 1 commit into from
Dec 2, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 14 additions & 5 deletions deployments/k8s/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
apiVersion: v1
kind: Namespace
metadata:
name: accuknox-agents
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: knoxautopolicy
namespace: accuknox-agents
labels:
deployment: knoxautopolicy
spec:
Expand Down Expand Up @@ -34,15 +40,16 @@ apiVersion: v1
kind: ConfigMap
metadata:
name: knoxautopolicy-config
namespace: accuknox-agents
data:
conf.yaml: |-
application:
name: knoxautopolicy
network:
operation-mode: 1 # 1: cronjob | 2: one-time-job
cron-job-time-interval: "0h0m10s" # format: XhYmZs
operation-trigger: 1000
network-log-from: "hubble" # db|hubble|feed-consumer
operation-trigger: 5
network-log-from: "kubearmor" # db|hubble|feed-consumer
network-log-file: "./flow.json" # file path
network-policy-to: "db" # db, file
network-policy-dir: "./"
Expand All @@ -69,8 +76,8 @@ data:
cron-job-time-interval: "0h0m10s" # format: XhYmZs
dbname: ./accuknox-obs.db
system-observability: true
network-observability: true
write-logs-to-db: true
network-observability: false
write-logs-to-db: false

publisher:
enable: true
Expand Down Expand Up @@ -120,6 +127,7 @@ apiVersion: v1
kind: Service
metadata:
name: knoxautopolicy
namespace: accuknox-agents
labels:
service: knoxautopolicy
spec:
Expand All @@ -134,6 +142,7 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: knoxautopolicy
namespace: accuknox-agents
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
Expand All @@ -146,4 +155,4 @@ roleRef:
subjects:
- kind: ServiceAccount
name: knoxautopolicy
namespace: explorer
namespace: accuknox-agents