-
Notifications
You must be signed in to change notification settings - Fork 1
/
api-service.yml
71 lines (68 loc) · 2.02 KB
/
api-service.yml
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
apiVersion: serving.knative.dev/v1
kind: Service
metadata:
name: veraid-authority
spec:
template:
metadata:
annotations:
autoscaling.knative.dev/min-scale: "1"
spec:
containers:
- name: api
image: dev.local/veraid-authority
args: [api]
env:
- name: AUTHORITY_VERSION
value: "1.0.0dev1"
- name: AUTHORITY_SUPERADMIN
value: [email protected]
- name: MONGODB_PASSWORD
valueFrom:
secretKeyRef:
name: credentials
key: mongodb_password
- name: OAUTH2_JWKS_URL
value: http://mock-authz-server.default/default/jwks
- name: OAUTH2_TOKEN_AUDIENCE
value: default
- name: OAUTH2_TOKEN_ISSUER_REGEX
value: ^http://[^/]+/default$
# Mock AWS KMS (used by WebCrypto KMS)
- name: KMS_ADAPTER
value: AWS
- name: AWS_ACCESS_KEY_ID
valueFrom:
configMapKeyRef:
name: mock-aws-kms
key: access_key_id
- name: AWS_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
name: credentials
key: aws_kms_secret_access_key
- name: AWS_KMS_ENDPOINT
valueFrom:
configMapKeyRef:
name: mock-aws-kms
key: endpoint
- name: AWS_KMS_REGION
value: eu-west-2
envFrom:
- configMapRef:
name: mongodb
livenessProbe:
httpGet:
path: /
port: 8080
periodSeconds: 5
failureThreshold: 2
timeoutSeconds: 3
initialDelaySeconds: 10
readinessProbe:
httpGet:
path: /
port: 8080
periodSeconds: 5
failureThreshold: 2
timeoutSeconds: 3