This repository was archived by the owner on Jul 3, 2024. It is now read-only.
forked from sabre1041/sigstore-ansible
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtrillian-logsigner.yaml
92 lines (92 loc) · 3.08 KB
/
trillian-logsigner.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
91
92
apiVersion: apps/v1
kind: Deployment
metadata:
name: trillian-logsigner
namespace: trillian-system
labels:
app.kubernetes.io/component: trillian-logsigner
app.kubernetes.io/instance: scaffold
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: trillian
helm.sh/chart: trillian-0.1.16
spec:
replicas: 1
selector:
matchLabels:
app: trillian-logsigner
template:
metadata:
labels:
app: trillian-logsigner
app.kubernetes.io/component: trillian-logsigner
app.kubernetes.io/instance: scaffold
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: trillian
helm.sh/chart: trillian-0.1.16
spec:
initContainers:
- name: wait-for-trillian-db
image: {{ netcat_image}}
imagePullPolicy: IfNotPresent
command: ["sh", "-c", "until nc -z -w 10 trillian-mysql-pod 3306; do echo waiting for trillian-mysql-pod; sleep 5; done;"]
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
containers:
- name: trillian-trillian-logsigner
image: {{ trillian_logsigner_image }}
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8191
protocol: TCP
args:
- --storage_system=mysql
- --quota_system=mysql
- --mysql_uri={{ trillian.mysql.user }}:{{ trillian.mysql.password }}@tcp({{ trillian.mysql.host }}:{{ trillian.mysql.port }})/{{ trillian.mysql.database }}
- --rpc_endpoint=0.0.0.0:8091
- --http_endpoint=0.0.0.0:8090
- --force_master=true
- --alsologtostderr
env:
- name: MYSQL_USER
valueFrom:
secretKeyRef:
key: mysql-user
name: trillian-mysql
- name: MYSQL_PASSWORD
valueFrom:
secretKeyRef:
key: mysql-password
name: trillian-mysql
- name: MYSQL_DATABASE
valueFrom:
secretKeyRef:
key: mysql-database
name: trillian-mysql
- name: MYSQL_HOSTNAME
value: {{ trillian.mysql.host }}
- name: MYSQL_PORT
value: "{{ trillian.mysql.port | quote }})"
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
enableServiceLinks: true
nodeName: minikube
nodeSelector:
kubernetes.io/arch: arm64
preemptionPolicy: PreemptLowerPriority
priority: 0
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
serviceAccountName: trillian-logsigner
tolerations:
- effect: NoExecute
key: node.kubernetes.io/not-ready
operator: Exists
tolerationSeconds: 300
- effect: NoExecute
key: node.kubernetes.io/unreachable
operator: Exists
tolerationSeconds: 300