Skip to content

Commit

Permalink
idaholab#281, arkime capture work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
mmguero committed Dec 8, 2023
1 parent 5ba889e commit bf64861
Show file tree
Hide file tree
Showing 6 changed files with 89 additions and 6 deletions.
2 changes: 2 additions & 0 deletions kubernetes/07-arkime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ spec:
name: upload-common-env
- configMapRef:
name: arkime-env
- configMapRef:
name: arkime-offline-env
- secretRef:
name: arkime-secret-env
env:
Expand Down
3 changes: 0 additions & 3 deletions kubernetes/21-zeek-live.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ spec:
name: zeek-live-env
- configMapRef:
name: pcap-capture-env
env:
- name: ZEEK_DISABLED
value: "true"
volumeMounts:
- mountPath: /var/local/ca-trust/configmap
name: zeek-live-var-local-catrust-volume
Expand Down
3 changes: 0 additions & 3 deletions kubernetes/22-suricata-live.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ spec:
name: suricata-live-env
- configMapRef:
name: pcap-capture-env
env:
- name: SURICATA_DISABLED
value: "true"
volumeMounts:
- mountPath: /var/local/ca-trust/configmap
name: suricata-live-var-local-catrust-volume
Expand Down
85 changes: 85 additions & 0 deletions kubernetes/23-arkime-live.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: arkime-live-deployment
namespace: malcolm
spec:
selector:
matchLabels:
name: arkime-live-deployment
replicas: 1
template:
metadata:
labels:
name: arkime-live-deployment
spec:
containers:
- name: arkime-live-container
image: ghcr.io/mmguero-dev/malcolm/arkime:23.12.1
imagePullPolicy: Always
stdin: false
tty: true
securityContext:
capabilities:
add:
# IPC_LOCK - to lock memory, preventing swapping
- IPC_LOCK
# SYS_RESOURCE - for increasing memlock limits
- SYS_RESOURCE
# NET_ADMIN and NET_RAW - to turn on promiscuous mode and capture raw packets
- NET_ADMIN
- NET_RAW
# SYS_NICE - to set process nice values, real-time scheduling policies, I/O scheduling
- SYS_NICE
envFrom:
- configMapRef:
name: process-env
- configMapRef:
name: ssl-env
- configMapRef:
name: opensearch-env
- secretRef:
name: auth-env
- configMapRef:
name: upload-common-env
- configMapRef:
name: pcap-capture-env
- configMapRef:
name: arkime-env
- configMapRef:
name: arkime-live-env
- secretRef:
name: arkime-secret-env
volumeMounts:
- mountPath: /var/local/ca-trust/configmap
name: arkime-live-var-local-catrust-volume
- mountPath: /var/local/curlrc/secretmap
name: arkime-live-opensearch-curlrc-secret-volume
- mountPath: "/data/pcap"
name: arkime-live-pcap-volume
initContainers:
- name: arkime-live-dirinit-container
image: ghcr.io/mmguero-dev/malcolm/dirinit:23.12.1
imagePullPolicy: Always
stdin: false
tty: true
envFrom:
- configMapRef:
name: process-env
env:
- name: PUSER_MKDIR
value: "/data/pcap:arkime-live"
volumeMounts:
- name: arkime-live-pcap-volume
mountPath: "/data/pcap"
volumes:
- name: arkime-live-var-local-catrust-volume
configMap:
name: var-local-catrust
- name: arkime-live-opensearch-curlrc-secret-volume
secret:
secretName: opensearch-curlrc
- name: arkime-live-pcap-volume
persistentVolumeClaim:
claimName: pcap-claim
File renamed without changes.
2 changes: 2 additions & 0 deletions scripts/malcolm_kubernetes.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@
MALCOLM_PROFILES_CONTAINERS[PROFILE_MALCOLM] = [
'api',
'arkime',
'arkime-live',
'dashboards',
'dashboards-helper',
'filebeat',
Expand All @@ -220,6 +221,7 @@
]
MALCOLM_PROFILES_CONTAINERS[PROFILE_HEDGEHOG] = [
'arkime',
'arkime-live',
'file-monitor',
'filebeat',
'pcap-capture',
Expand Down

0 comments on commit bf64861

Please sign in to comment.