Kubernetes
Packet Viewer can be deployed using the Kubernetes container orchestration system.
Here is a sample Kubernetes Deployment that runs Packet Viewer in a Pod. Note that the resource limits should be replaced after determining the requirements for your environment.
---
apiVersion: v1
kind: Service
metadata:
name: packet-viewer-service
spec:
type: NodePort
selector:
app: packet-viewer
ports:
- protocol: TCP
port: 443
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: packet-viewer-data-pvc
spec:
storageClassName: manual
accessModes:
- ReadWriteMany
resources:
requests:
storage: 5Gi
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: packet-viewer-config-pvc
spec:
storageClassName: manual
accessModes:
- ReadOnlyMany
resources:
requests:
storage: 10Mi
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: packet-viewer-deployment
spec:
replicas: 1
selector:
matchLabels:
app: packet-viewer
strategy:
type: Recreate
template:
metadata:
labels:
app: packet-viewer
spec:
containers:
- name: app
image: packet-viewer:v1.4.1
resources:
limits:
memory: 512M
requests:
memory: 512M
ports:
- containerPort: 443
volumeMounts:
- name: packet-viewer-data
mountPath: /data/captures
volumeMounts:
- name: packet-viewer-config
mountPath: /config
volumes:
- name: packet-viewer-data
persistentVolumeClaim:
claimName: packet-viewer-data-pvc
volumes:
- name: packet-viewer-config
persistentVolumeClaim:
claimName: packet-viewer-config-pvc