76 lines
2.1 KiB
YAML
76 lines
2.1 KiB
YAML
|
|
---
|
||
|
|
# Transparency-log Deployment: serves POST /api/v1/log/entries (ADR-0005)
|
||
|
|
# backed by the real Trillian LogServer in this namespace.
|
||
|
|
#
|
||
|
|
# Image: build+push to the in-cluster Harbor registry as
|
||
|
|
# harbor.basicstack.de/proofedmesh/transparency-log:<tag>
|
||
|
|
# — before the first apply. See deploy/trillian/README.md for the build
|
||
|
|
# command (uses the Dockerfile at services/transparency-log/Dockerfile).
|
||
|
|
apiVersion: v1
|
||
|
|
kind: Service
|
||
|
|
metadata:
|
||
|
|
name: transparency-log
|
||
|
|
namespace: agent-trust
|
||
|
|
spec:
|
||
|
|
selector:
|
||
|
|
app.kubernetes.io/name: transparency-log
|
||
|
|
ports:
|
||
|
|
- name: http
|
||
|
|
port: 80
|
||
|
|
targetPort: 8080
|
||
|
|
---
|
||
|
|
apiVersion: apps/v1
|
||
|
|
kind: Deployment
|
||
|
|
metadata:
|
||
|
|
name: transparency-log
|
||
|
|
namespace: agent-trust
|
||
|
|
labels:
|
||
|
|
app.kubernetes.io/name: transparency-log
|
||
|
|
app.kubernetes.io/part-of: proofedmesh
|
||
|
|
spec:
|
||
|
|
replicas: 1
|
||
|
|
selector:
|
||
|
|
matchLabels:
|
||
|
|
app.kubernetes.io/name: transparency-log
|
||
|
|
template:
|
||
|
|
metadata:
|
||
|
|
labels:
|
||
|
|
app.kubernetes.io/name: transparency-log
|
||
|
|
spec:
|
||
|
|
containers:
|
||
|
|
- name: transparency-log
|
||
|
|
image: harbor.basicstack.de/proofedmesh/transparency-log:v0.1.0
|
||
|
|
imagePullPolicy: IfNotPresent
|
||
|
|
args:
|
||
|
|
- --addr=:8080
|
||
|
|
- --backend=trillian
|
||
|
|
- --trillian-addr=$(TRILLIAN_ADDR)
|
||
|
|
- --trillian-log-id=$(TRILLIAN_LOG_ID)
|
||
|
|
env:
|
||
|
|
- name: TRILLIAN_ADDR
|
||
|
|
value: trillian-log-server.agent-trust.svc.cluster.local:8090
|
||
|
|
- name: TRILLIAN_LOG_ID
|
||
|
|
valueFrom:
|
||
|
|
configMapKeyRef:
|
||
|
|
name: trillian-log-id
|
||
|
|
key: TRILLIAN_LOG_ID
|
||
|
|
ports:
|
||
|
|
- containerPort: 8080
|
||
|
|
name: http
|
||
|
|
readinessProbe:
|
||
|
|
tcpSocket:
|
||
|
|
port: 8080
|
||
|
|
initialDelaySeconds: 3
|
||
|
|
periodSeconds: 5
|
||
|
|
livenessProbe:
|
||
|
|
tcpSocket:
|
||
|
|
port: 8080
|
||
|
|
initialDelaySeconds: 10
|
||
|
|
periodSeconds: 20
|
||
|
|
resources:
|
||
|
|
requests:
|
||
|
|
cpu: "20m"
|
||
|
|
memory: "64Mi"
|
||
|
|
limits:
|
||
|
|
memory: "256Mi"
|