Skip to content

Commit

Permalink
Add deployment for Dragonfly reporter (#40)
Browse files Browse the repository at this point in the history
Signed-off-by: GitHub <[email protected]>
  • Loading branch information
shenanigansd authored Mar 2, 2024
1 parent 581ee08 commit f661a0a
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 0 deletions.
11 changes: 11 additions & 0 deletions kubernetes/manifests/dragonfly/reporter/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Dragonfly Reporter

Infra configuration for the [Dragonfly Reporter](https://github.com/vipyrsec/dragonfly-reporter).

## Secrets
This deployment expects a number of secrets and environment variables to exist in a secret called `dragonfly-reporter-secrets`.


| Environment | Description |
|-------------------------|---------------------------------------------|
| OBSERVATION_API_TOKEN | The auth token for PyPI's Obeservations API |
31 changes: 31 additions & 0 deletions kubernetes/manifests/dragonfly/reporter/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: dragonfly
name: reporter
spec:
replicas: 1
selector:
matchLabels:
app: reporter
template:
metadata:
labels:
app: reporter
spec:
containers:
- name: reporter
image: ghcr.io/vipyrsec/dragonfly-reporter:edge
imagePullPolicy: Always
envFrom:
- secretRef:
name: dragonfly-reporter-env
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
runAsNonRoot: true
runAsUser: 10000
runAsGroup: 10000
readOnlyRootFilesystem: true
12 changes: 12 additions & 0 deletions kubernetes/manifests/dragonfly/reporter/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
namespace: dragonfly
name: reporter
spec:
selector:
app: reporter
ports:
- protocol: TCP
port: 8000
targetPort: 8000

0 comments on commit f661a0a

Please sign in to comment.