forked from google/trillian
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtrillian-log-signer-deployment.yaml
90 lines (90 loc) · 2.62 KB
/
trillian-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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
io.kompose.service: trillian-log-signer
name: trillian-logsigner-deployment
spec:
replicas: 2
selector:
matchLabels:
io.kompose.service: trillian-log-signer
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
io.kompose.service: trillian-log-signer
spec:
volumes:
- name: google-cloud-key
secret:
secretName: trillian-key
restartPolicy: Always
containers:
- name: trillian-log-signer
# TODO(RJPercival): Pass STORAGE_FLAG via --config to protect any
# sensitive contents (e.g. passwords) from being seen in process list.
args: [
"$(STORAGE_FLAG)",
"--storage_system=$(STORAGE_SYSTEM)",
"--etcd_servers=trillian-etcd-cluster-client:2379",
"--quota_system=etcd",
"--etcd_http_service=trillian-logsigner-http",
"--http_endpoint=0.0.0.0:8091",
"--sequencer_guard_window=1s",
"$(SIGNER_INTERVAL)",
"$(SIGNER_NUM_SEQUENCERS)",
"$(SIGNER_BATCH_SIZE)",
"$(SIGNER_DEQUEUE_BUCKET_FRACTION)",
"$(SIGNER_MASTER_HOLD_JITTER)",
"--alsologtostderr"
]
envFrom:
- configMapRef:
name: deploy-config
- secretRef:
name: trillian-secrets
# Update this with the name of your project:
image: gcr.io/${PROJECT_ID}/log_signer:${IMAGE_TAG}
imagePullPolicy: Always
resources:
limits:
cpu: "1"
requests:
cpu: "1"
livenessProbe:
httpGet:
path: /healthz
port: 8091
failureThreshold: 3
periodSeconds: 30
timeoutSeconds: 5
ports:
- containerPort: 8091
name: http-metrics
volumeMounts:
- name: google-cloud-key
mountPath: /var/secrets/google
- name: prometheus-to-sd
image: gcr.io/google-containers/prometheus-to-sd:v0.5.2
ports:
- name: profiler
containerPort: 6060
command:
- /monitor
- --stackdriver-prefix=custom.googleapis.com
- --source=logsigner:http://localhost:8091/metrics
- --pod-id=$(POD_NAME)
- --namespace-id=$(POD_NAMESPACE)
- --scrape-interval=5s
- --export-interval=60s
env:
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace