forked from google/trillian
-
Notifications
You must be signed in to change notification settings - Fork 0
/
log-deployment.yaml
79 lines (79 loc) · 2.17 KB
/
log-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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
app.kubernetes.io/name: trillian
app.kubernetes.io/component: logserver
name: trillian-log-deployment
spec:
replicas: 4
template:
metadata:
labels:
app.kubernetes.io/name: trillian
app.kubernetes.io/component: logserver
spec:
serviceAccountName: trillian-svc
restartPolicy: Always
containers:
- name: trillian-logserver
args: [
"$(STORAGE_FLAG)",
"--storage_system=$(STORAGE_SYSTEM)",
"--quota_system=etcd",
"--etcd_servers=trillian-etcd-cluster-client:2379",
"--etcd_http_service=trillian-logserver-http",
"--rpc_endpoint=0.0.0.0:8090",
"--http_endpoint=0.0.0.0:8091",
"--tracing",
"--alsologtostderr"
]
envFrom:
- configMapRef:
name: deploy-config
image: gcr.io/trillian-opensource-ci/log_server:v1.3.3
imagePullPolicy: Always
resources:
limits:
cpu: "1.0"
requests:
cpu: "0.4"
livenessProbe:
httpGet:
path: /healthz
port: 8091
failureThreshold: 3
periodSeconds: 30
timeoutSeconds: 5
ports:
- containerPort: 8090
name: grpc
- containerPort: 8091
name: http-metrics
- 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=logserver:http://localhost:8091/metrics
- --pod-id=$(POD_NAME)
- --namespace-id=$(POD_NAMESPACE)
- --scrape-interval=5s
- --export-interval=60s
resources:
limits:
cpu: 20m
requests:
cpu: 20m
env:
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace