72 lines
1.8 KiB
YAML
72 lines
1.8 KiB
YAML
|
|
apiVersion: v1
|
||
|
|
kind: Service
|
||
|
|
metadata:
|
||
|
|
name: trillian-log-server
|
||
|
|
namespace: agent-trust
|
||
|
|
spec:
|
||
|
|
selector:
|
||
|
|
app.kubernetes.io/name: trillian-log-server
|
||
|
|
ports:
|
||
|
|
- name: grpc
|
||
|
|
port: 8090
|
||
|
|
targetPort: 8090
|
||
|
|
- name: metrics
|
||
|
|
port: 8091
|
||
|
|
targetPort: 8091
|
||
|
|
---
|
||
|
|
apiVersion: apps/v1
|
||
|
|
kind: Deployment
|
||
|
|
metadata:
|
||
|
|
name: trillian-log-server
|
||
|
|
namespace: agent-trust
|
||
|
|
labels:
|
||
|
|
app.kubernetes.io/name: trillian-log-server
|
||
|
|
app.kubernetes.io/part-of: proofedmesh
|
||
|
|
spec:
|
||
|
|
replicas: 1
|
||
|
|
selector:
|
||
|
|
matchLabels:
|
||
|
|
app.kubernetes.io/name: trillian-log-server
|
||
|
|
template:
|
||
|
|
metadata:
|
||
|
|
labels:
|
||
|
|
app.kubernetes.io/name: trillian-log-server
|
||
|
|
spec:
|
||
|
|
containers:
|
||
|
|
- name: log-server
|
||
|
|
image: gcr.io/trillian-opensource-ci/log_server:v1.6.1
|
||
|
|
args:
|
||
|
|
- --storage_system=mysql
|
||
|
|
- --mysql_uri=$(MYSQL_URI)
|
||
|
|
- --rpc_endpoint=0.0.0.0:8090
|
||
|
|
- --http_endpoint=0.0.0.0:8091
|
||
|
|
- --alsologtostderr
|
||
|
|
envFrom:
|
||
|
|
- secretRef:
|
||
|
|
name: trillian-mysql
|
||
|
|
ports:
|
||
|
|
- containerPort: 8090
|
||
|
|
name: grpc
|
||
|
|
- containerPort: 8091
|
||
|
|
name: metrics
|
||
|
|
readinessProbe:
|
||
|
|
# Trillian's /metrics endpoint only comes up once DB connectivity is
|
||
|
|
# ready, which is exactly the readiness semantics we want.
|
||
|
|
httpGet:
|
||
|
|
path: /metrics
|
||
|
|
port: 8091
|
||
|
|
initialDelaySeconds: 10
|
||
|
|
periodSeconds: 5
|
||
|
|
livenessProbe:
|
||
|
|
httpGet:
|
||
|
|
path: /metrics
|
||
|
|
port: 8091
|
||
|
|
initialDelaySeconds: 60
|
||
|
|
periodSeconds: 20
|
||
|
|
resources:
|
||
|
|
requests:
|
||
|
|
cpu: "50m"
|
||
|
|
memory: "128Mi"
|
||
|
|
limits:
|
||
|
|
memory: "512Mi"
|