Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ This repo uses ArgoCD's app-of-apps pattern: a root Application (`root-app.yaml`
| 9 | kong | API gateway |
| 9 | metadata-event-handler | Kafka→ES event indexer |
| 9 | kg-integration | EBRAINS Knowledge Graph integration |
| 9 | audit-trail | |
| 10 | bff | Backend-for-frontend (web) |
| 10 | bff-cli | Backend-for-frontend (CLI) |
| 11 | portal | Frontend UI |
Expand Down
7 changes: 7 additions & 0 deletions clusters/dev/apps/audit-trail/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: v2
name: audit-trail
version: 0.1.0
dependencies:
- name: audit-trail-service
version: "0.2.0"
repository: https://pilotdataplatform.github.io/helm-charts/
28 changes: 28 additions & 0 deletions clusters/dev/apps/audit-trail/application.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: audit-trail
namespace: argocd
annotations:
argocd.argoproj.io/sync-wave: "9"
spec:
project: default
source:
repoURL: https://github.com/PilotDataPlatform/pilot-hdc-platform-gitops.git
targetRevision: main
path: clusters/dev/apps/audit-trail
helm:
valueFiles:
- ../../registry.yaml
- ../../versions.yaml
- values.yaml
destination:
server: https://kubernetes.default.svc
namespace: utility
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
- ServerSideApply=true
17 changes: 17 additions & 0 deletions clusters/dev/apps/audit-trail/templates/external-secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: external-secrets.io/v1
kind: ExternalSecret
metadata:
name: audit-trail-credentials
namespace: utility
spec:
refreshInterval: 1h
secretStoreRef:
kind: ClusterSecretStore
name: vault
target:
name: audit-trail-credentials
data:
- secretKey: atlas-password
remoteRef:
key: secret/data/atlas
property: atlas-password
61 changes: 61 additions & 0 deletions clusters/dev/apps/audit-trail/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
audit-trail-service:
image:
repository: n47w5524.c1.de1.container-registry.ovh.net/hdc-services-image/audit-trail
pullPolicy: IfNotPresent

fullnameOverride: audit-trail
replicaCount: 1

container:
port: 5077

service:
type: ClusterIP
port: 5077

imagePullSecrets:
- name: docker-registry-secret

extraEnv:
ATLAS_ADMIN: "admin"
ATLAS_HOST: "atlas.utility"
ATLAS_PORT: "21000"

extraEnvYaml:
- name: ATLAS_PASSWD
valueFrom:
secretKeyRef:
name: audit-trail-credentials
key: atlas-password

resources:
limits:
cpu: "1"
memory: 500Mi
requests:
cpu: 10m
memory: 50Mi

readinessProbe:
failureThreshold: 3
initialDelaySeconds: 5
periodSeconds: 10
successThreshold: 1
tcpSocket:
port: 5077

livenessProbe:
failureThreshold: 3
httpGet:
path: /v1/health/
port: 5077
scheme: HTTP
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 3

updateStrategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 33%
type: RollingUpdate
7 changes: 7 additions & 0 deletions docs/vault-secrets.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,13 @@ vault kv put secret/bff-cli \
guacamole-jwt-public-key='<public-key-pem>'
```

## Atlas (`secret/atlas`)

```bash
vault kv put secret/atlas \
atlas-password=$(openssl rand -hex 24)
```

## Guacamole (`secret/guacamole`)

```bash
Expand Down
Loading