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-logserver.yaml
93 lines (93 loc) · 3.19 KB
/
trillian-logserver.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
93
apiVersion: apps/v1
kind: Deployment
metadata:
name: trillian-logserver
namespace: trillian-system
labels:
app.kubernetes.io/component: trillian-logserver
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.kubernetes.io/component: trillian-logserver
app.kubernetes.io/instance: scaffold
template:
metadata:
labels:
app.kubernetes.io/component: trillian-logserver
app.kubernetes.io/instance: scaffold
spec:
containers:
- name: trillian-trillian-logserver
image: {{ trillian_log_server_image }}
imagePullPolicy: IfNotPresent
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
- --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 }})"
ports:
- containerPort: 8091
protocol: TCP
- containerPort: 8090
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
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; sleep 5; done;"]
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
enableServiceLinks: true
nodeName: minikube
nodeSelector:
kubernetes.io/arch: arm64
preemptionPolicy: PreemptLowerPriority
priority: 0
# Needs to be set until https://github.com/containers/podman/pull/16698 is downsteamed
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
serviceAccount: trillian-logserver
serviceAccountName: trillian-logserver
terminationGracePeriodSeconds: 30
tolerations:
- effect: NoExecute
key: node.kubernetes.io/not-ready
operator: Exists
tolerationSeconds: 300
- effect: NoExecute
key: node.kubernetes.io/unreachable
operator: Exists
tolerationSeconds: 300