-
Notifications
You must be signed in to change notification settings - Fork 0
/
keel-validator.yaml
82 lines (80 loc) · 1.84 KB
/
keel-validator.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
---
apiVersion: v1
kind: Secret
metadata:
name: keel-validator-secrets
type: Opaque
data:
tc-api-key: XXX
tc-signer-id: XXX
keel-username: XXX
keel-password: XXX
registry-json-key: |
XXXX
XXXX
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: keel-validator
spec:
replicas: 1
selector:
matchLabels:
deployment: keel-validator
template:
metadata:
labels:
deployment: keel-validator
spec:
volumes:
- name: registry-json-key
secret:
secretName: keel-validator-secrets
items:
- key: registry-json-key
path: jsonkey.json
containers:
- name: keel-validator
image: codenotary/keel-validator:latest
env:
- name: APIKEY
valueFrom:
secretKeyRef:
name: keel-validator-secrets
key: tc-api-key
- name: SIGNERID
valueFrom:
secretKeyRef:
name: keel-validator-secrets
key: tc-signer-id
- name: KEEL_USERNAME
valueFrom:
secretKeyRef:
name: keel-validator-secrets
key: keel-username
- name: KEEL_PASSWORD
valueFrom:
secretKeyRef:
name: keel-validator-secrets
key: keel-password
args:
- --service
- keel.keel.svc:9300
- --username
- "$(KEEL_USERNAME)"
- --password
- "$(KEEL_PASSWORD)"
- --apikey
- "$(APIKEY)"
- --registry-username
- "_json_key"
- --registry-password-file
- "/mnt/secret/jsonkey.json"
- --signerID
- "$(SIGNERID)"
- --poll
- "60"
volumeMounts:
- mountPath: /mnt/secret
name: registry-json-key