-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.yaml
63 lines (63 loc) · 1.32 KB
/
template.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
---
apiVersion: v1
kind: Namespace
metadata:
name: @@app@@
---
apiVersion: v1
kind: Service
metadata:
name: @@app@@
namespace: @@namespace@@
spec:
selector:
app: @@app@@
type: LoadBalancer
ports:
- name: http
protocol: TCP
port: @@service_port@@
targetPort: @@container_port@@
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: @@app@@
namespace: @@namespace@@
spec:
selector:
matchLabels:
app: @@app@@ # has to match .spec.template.metadata.labels
serviceName: @@app@@
replicas: 1
template:
metadata:
labels:
app: @@app@@ # has to match .spec.selector.matchLabels
spec:
terminationGracePeriodSeconds: 10
containers:
- name: @@app@@
image: @@image@@
imagePullPolicy: Always
ports:
- containerPort: @@container_port@@
env:
- name: PGID
value: "1000"
- name: PUID
value: "1000"
- name: TZ
value: "America/New_York"
volumeMounts:
- name: config
mountPath: /config
volumeClaimTemplates:
- metadata:
name: config
namespace: @@namespace@@
spec:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 20Gi