...
1apiVersion: apps/v1
2kind: Deployment
3metadata:
4 creationTimestamp: null
5 labels:
6 io.kompose.service: trillian-ctfe
7 name: trillian-ctfe-deployment
8spec:
9 replicas: 4
10 selector:
11 matchLabels:
12 io.kompose.service: trillian-ctfe
13 strategy: {}
14 template:
15 metadata:
16 labels:
17 io.kompose.service: trillian-ctfe
18 spec:
19 containers:
20 - name: trillian-ctfe
21 args: [
22 "--http_endpoint=0.0.0.0:6962",
23 "--metrics_endpoint=0.0.0.0:6963",
24 "--log_config=/ctfe-config/ct_server.cfg",
25 "--alsologtostderr"
26 ]
27 image: gcr.io/${PROJECT_ID}/ctfe:${IMAGE_TAG}
28 imagePullPolicy: Always
29 resources:
30 limits:
31 cpu: 1.8
32 requests:
33 cpu: 300m
34 livenessProbe:
35 httpGet:
36 path: /metrics
37 port: metrics
38 failureThreshold: 3
39 periodSeconds: 30
40 timeoutSeconds: 30
41 env:
42 - name: CLOUD_PROJECT
43 valueFrom:
44 configMapKeyRef:
45 name: ctfe-configmap
46 key: cloud-project
47 ports:
48 - containerPort: 6962
49 name: http
50 - containerPort: 6963
51 name: http-metrics
52 volumeMounts:
53 - name: ctfe-config-volume
54 mountPath: /ctfe-config
55 - name: prometheus-to-sd
56 image: gcr.io/google-containers/prometheus-to-sd:v0.5.2
57 ports:
58 - name: profiler
59 containerPort: 6060
60 command:
61 - /monitor
62 - --stackdriver-prefix=custom.googleapis.com
63 - --source=ctfe:http://localhost:6963/metrics
64 - --pod-id=$(POD_NAME)
65 - --namespace-id=$(POD_NAMESPACE)
66 - --scrape-interval=5s
67 - --export-interval=60s
68 env:
69 - name: POD_NAME
70 valueFrom:
71 fieldRef:
72 fieldPath: metadata.name
73 - name: POD_NAMESPACE
74 valueFrom:
75 fieldRef:
76 fieldPath: metadata.namespace
77 volumes:
78 - name: ctfe-config-volume
79 configMap:
80 name: ctfe-configmap
81 items:
82 - key: ctfe-config-file
83 path: ct_server.cfg
84 - key: roots
85 path: roots
86 restartPolicy: Always
87status: {}
View as plain text