- Add YAML-based configuration loaded from config.yaml (CONFIG_LOCATION env var) - Add PyYAML dependency and install requirements in Dockerfile - Replace Config.from_env() with get_config() singleton pattern - Remove server_header from config (now randomized from wordlists only) - Update docker-compose.yaml to mount config.yaml read-only - Update Helm chart: restructure values.yaml, generate config.yaml in ConfigMap - Update Kubernetes manifests: ConfigMap now contains config.yaml, deployments mount it - Remove Helm secret.yaml (dashboard path now auto-generated in config.yaml)
57 lines
1.3 KiB
YAML
57 lines
1.3 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: krawl-server
|
|
namespace: krawl-system
|
|
labels:
|
|
app: krawl-server
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: krawl-server
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: krawl-server
|
|
spec:
|
|
containers:
|
|
- name: krawl
|
|
image: ghcr.io/blessedrebus/krawl:latest
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- containerPort: 5000
|
|
name: http
|
|
protocol: TCP
|
|
env:
|
|
- name: CONFIG_LOCATION
|
|
value: "config.yaml"
|
|
volumeMounts:
|
|
- name: config
|
|
mountPath: /app/config.yaml
|
|
subPath: config.yaml
|
|
readOnly: true
|
|
- name: wordlists
|
|
mountPath: /app/wordlists.json
|
|
subPath: wordlists.json
|
|
readOnly: true
|
|
- name: database
|
|
mountPath: /app/data
|
|
resources:
|
|
requests:
|
|
memory: "64Mi"
|
|
cpu: "100m"
|
|
limits:
|
|
memory: "256Mi"
|
|
cpu: "500m"
|
|
volumes:
|
|
- name: config
|
|
configMap:
|
|
name: krawl-config
|
|
- name: wordlists
|
|
configMap:
|
|
name: krawl-wordlists
|
|
- name: database
|
|
persistentVolumeClaim:
|
|
claimName: krawl-db
|