-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add deployment for Dragonfly reporter (#40)
Signed-off-by: GitHub <[email protected]>
- Loading branch information
1 parent
581ee08
commit f661a0a
Showing
3 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |