-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
Copy pathftgo-dynamodb-local.yml
74 lines (74 loc) · 1.63 KB
/
ftgo-dynamodb-local.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
72
73
74
apiVersion: v1
kind: Service
metadata:
name: ftgo-dynamodb-local
spec:
ports:
- port: 8000
targetPort: 8000
selector:
svc: ftgo-dynamodb-local
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: ftgo-dynamodb-local
labels:
application: ftgo
spec:
serviceName: "ftgo-dynamodb"
replicas: 1
selector:
matchLabels:
app: ftgo-dynamodb-local
svc: ftgo-dynamodb-local
template:
metadata:
labels:
app: ftgo-dynamodb-local
svc: ftgo-dynamodb-local
spec:
containers:
- name: ftgo-dynamodb-local
image: amazon/dynamodb-local:latest
livenessProbe:
tcpSocket:
port: 8000
initialDelaySeconds: 30
periodSeconds: 20
readinessProbe:
tcpSocket:
port: 8000
initialDelaySeconds: 30
periodSeconds: 20
volumeMounts:
- name: ftgo-dynamodb-persistent-storage
mountPath: /dynamodb_local_db
volumeClaimTemplates:
- metadata:
name: ftgo-dynamodb-persistent-storage
spec:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 1Gi
---
apiVersion: batch/v1
kind: Job
metadata:
name: ftgo-dynamodb-local-init
spec:
template:
spec:
containers:
- name: ftgo-dynamodb-local-init
image: msapatterns/dynamodblocal-init
env:
- name: AWS_DYNAMODB_ENDPOINT_URL
value: http://ftgo-dynamodb-local:8000
- name: AWS_ACCESS_KEY_ID
value: FOO_ID
- name: AWS_SECRET_ACCESS_KEY
value: FOO_SECRET
restartPolicy: Never
---