-
Notifications
You must be signed in to change notification settings - Fork 9
/
statefulset.yaml
52 lines (46 loc) · 1023 Bytes
/
statefulset.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
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: dbt
namespace: dbt
spec:
replicas: 1
selector:
matchLabels:
app: dbt
serviceName: dbt
template:
metadata:
labels:
app: dbt
spec:
containers:
- name: dbt
image: nikogura/dbt-reposerver:3.1.2
imagePullPolicy: IfNotPresent
ports:
- containerPort: 9999
name: dbt
protocol: TCP
env:
- name: CONFIG_FILE
value: /etc/dbt/reposerver.json
volumeMounts:
- name: dbt-storage
mountPath: /var/dbt
- name: dbt-config
mountPath: /etc/dbt
volumes:
- name: dbt-config
configMap:
name: dbt
volumeClaimTemplates:
- metadata:
name: dbt-storage
spec:
accessModes: ['ReadWriteOnce']
# storageClassName: default
resources:
requests:
storage: 10Gi