Files
krawl.es/kubernetes/manifests/deployment.yaml

62 lines
1.5 KiB
YAML
Raw Normal View History

# Source: krawl-chart/templates/deployment.yaml
2025-12-14 19:08:01 +01:00
apiVersion: apps/v1
kind: Deployment
metadata:
name: krawl
2025-12-14 19:08:01 +01:00
namespace: krawl-system
labels:
app.kubernetes.io/name: krawl
app.kubernetes.io/instance: krawl
app.kubernetes.io/version: "1.0.0"
2025-12-14 19:08:01 +01:00
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: krawl
app.kubernetes.io/instance: krawl
2025-12-14 19:08:01 +01:00
template:
metadata:
labels:
app.kubernetes.io/name: krawl
app.kubernetes.io/instance: krawl
2025-12-14 19:08:01 +01:00
spec:
containers:
- name: krawl-chart
image: "ghcr.io/blessedrebus/krawl:1.0.0"
2025-12-14 19:08:01 +01:00
imagePullPolicy: Always
ports:
- name: http
containerPort: 5000
2025-12-14 19:08:01 +01:00
protocol: TCP
env:
- name: CONFIG_LOCATION
value: "config.yaml"
2025-12-14 19:08:01 +01:00
volumeMounts:
- name: config
mountPath: /app/config.yaml
subPath: config.yaml
readOnly: true
2025-12-14 19:08:01 +01:00
- name: wordlists
mountPath: /app/wordlists.json
subPath: wordlists.json
readOnly: true
- name: database
mountPath: /app/data
2025-12-14 19:08:01 +01:00
resources:
limits:
cpu: 500m
memory: 256Mi
requests:
cpu: 100m
memory: 64Mi
2025-12-14 19:08:01 +01:00
volumes:
- name: config
configMap:
name: krawl-config
2025-12-14 19:08:01 +01:00
- name: wordlists
configMap:
name: krawl-wordlists
- name: database
persistentVolumeClaim:
claimName: krawl-db