forked from google/keytransparency
-
Notifications
You must be signed in to change notification settings - Fork 0
/
log-signer-deployment.yaml
59 lines (59 loc) · 1.62 KB
/
log-signer-deployment.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert --file ../../docker-compose.yml
kompose.version: 1.14.0 ()
creationTimestamp: null
labels:
io.kompose.service: log-signer
name: log-signer
spec:
replicas: 1
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
io.kompose.service: log-signer
spec:
containers:
- command:
- /go/bin/trillian_log_signer
- --mysql_uri=test:zaphod@tcp(db:3306)/test
- --http_endpoint=0.0.0.0:8091
- --sequencer_guard_window=0s
- --sequencer_interval=1s
- --num_sequencers=1
- --batch_size=50
- --force_master=true
- --alsologtostderr
image: us.gcr.io/key-transparency/log-signer:latest
livenessProbe:
httpGet:
path: /metrics
port: 8091
name: log-signer
ports:
- containerPort: 8091
resources: {}
- name: prometheus-to-sd
image: gcr.io/google-containers/prometheus-to-sd:v0.2.6
command:
- /monitor
- --stackdriver-prefix=custom.googleapis.com
- --source=logsigner:http://localhost:8091/metrics
- --pod-id=$(POD_NAME)
- --namespace-id=$(POD_NAMESPACE)
- --metrics-resolution=5s
env:
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
restartPolicy: Always
status: {}