Merge remote-tracking branch 'k8s-helmfile/um-adam'
Showing
3 changed files
with
0 additions
and
199 deletions
charts/moqui/copy-jdbc-drivers
deleted
100644 → 0
charts/moqui/kustomization.yaml
deleted
100644 → 0
charts/moqui/moqui.yaml
deleted
100644 → 0
1 | --- | ||
2 | apiVersion: v1 | ||
3 | kind: ConfigMap | ||
4 | metadata: | ||
5 | name: moqui | ||
6 | data: | ||
7 | instance_purpose: production | ||
8 | default_locale: en_US | ||
9 | default_time_zone: US/Central | ||
10 | database_time_zone: US/Central | ||
11 | entity_ds_db_conf: postgres | ||
12 | entity_ds_host: postgresql | ||
13 | entity_ds_port: "5432" | ||
14 | entity_ds_database: moqui | ||
15 | entity_ds_schema: public | ||
16 | _entity_add_missing_runtime: "true" | ||
17 | moqui_load_types: seed,seed-initial,install | ||
18 | moqui.conf: "conf/MoquiProductionConf.xml" | ||
19 | jetty_threads: "100" | ||
20 | --- | ||
21 | apiVersion: v1 | ||
22 | kind: Secret | ||
23 | metadata: | ||
24 | name: moqui | ||
25 | stringData: | ||
26 | --- | ||
27 | apiVersion: v1 | ||
28 | kind: PersistentVolumeClaim | ||
29 | metadata: | ||
30 | name: moqui-log | ||
31 | spec: | ||
32 | accessModes: | ||
33 | - ReadWriteOnce | ||
34 | resources: | ||
35 | requests: | ||
36 | storage: 10Gi | ||
37 | --- | ||
38 | apiVersion: v1 | ||
39 | kind: PersistentVolumeClaim | ||
40 | metadata: | ||
41 | name: moqui-txlog | ||
42 | spec: | ||
43 | accessModes: | ||
44 | - ReadWriteOnce | ||
45 | resources: | ||
46 | requests: | ||
47 | storage: 2Gi | ||
48 | --- | ||
49 | apiVersion: v1 | ||
50 | kind: PersistentVolumeClaim | ||
51 | metadata: | ||
52 | name: moqui-sessions | ||
53 | spec: | ||
54 | accessModes: | ||
55 | - ReadWriteOnce | ||
56 | resources: | ||
57 | requests: | ||
58 | storage: 2Gi | ||
59 | --- | ||
60 | apiVersion: v1 | ||
61 | kind: Service | ||
62 | metadata: | ||
63 | name: moqui | ||
64 | spec: | ||
65 | type: ClusterIP | ||
66 | selector: | ||
67 | app: moqui-app | ||
68 | ports: | ||
69 | - name: http-moqui | ||
70 | protocol: TCP | ||
71 | port: 8080 | ||
72 | targetPort: 8080 | ||
73 | - name: http-hazelcast | ||
74 | protocol: TCP | ||
75 | port: 5701 | ||
76 | targetPort: 5701 | ||
77 | --- | ||
78 | |||
79 | apiVersion: apps/v1 | ||
80 | kind: Deployment | ||
81 | metadata: | ||
82 | name: moqui-app | ||
83 | labels: | ||
84 | app: moqui-app | ||
85 | spec: | ||
86 | selector: | ||
87 | matchLabels: | ||
88 | app: moqui-app | ||
89 | template: | ||
90 | metadata: | ||
91 | labels: | ||
92 | app: moqui-app | ||
93 | spec: | ||
94 | restartPolicy: Always | ||
95 | securityContext: | ||
96 | runAsUser: 0 | ||
97 | runAsGroup: 0 | ||
98 | |||
99 | volumes: | ||
100 | - name: log | ||
101 | persistentVolumeClaim: | ||
102 | claimName: moqui-log | ||
103 | - name: txlog | ||
104 | persistentVolumeClaim: | ||
105 | claimName: moqui-txlog | ||
106 | - name: txlog-init | ||
107 | emptyDir: {} | ||
108 | - name: sessions | ||
109 | persistentVolumeClaim: | ||
110 | claimName: moqui-sessions | ||
111 | - name: scripts | ||
112 | configMap: | ||
113 | name: moqui-scripts | ||
114 | defaultMode: 0755 | ||
115 | - name: lib | ||
116 | emptyDir: {} | ||
117 | |||
118 | initContainers: | ||
119 | - name: copy-jdbc-drivers | ||
120 | image: moqui-jdbc-drivers:latest | ||
121 | imagePullPolicy: IfNotPresent | ||
122 | command: ["/scripts/copy-jdbc-drivers"] | ||
123 | volumeMounts: | ||
124 | - name: scripts | ||
125 | mountPath: /scripts | ||
126 | - name: lib | ||
127 | mountPath: /mnt/jdbc-drivers | ||
128 | |||
129 | - name: load-moqui | ||
130 | image: moqui-app:latest | ||
131 | imagePullPolicy: IfNotPresent | ||
132 | args: ["load", "conf=$(moqui.conf)", "types=$(moqui_load_types)"] | ||
133 | resources: | ||
134 | limits: | ||
135 | memory: 1Gi | ||
136 | requests: | ||
137 | memory: 1Gi | ||
138 | envFrom: | ||
139 | - configMapRef: | ||
140 | name: moqui | ||
141 | - secretRef: | ||
142 | name: moqui | ||
143 | env: | ||
144 | - name: entity_add_missing_runtime | ||
145 | value: "true" | ||
146 | volumeMounts: | ||
147 | - name: lib | ||
148 | mountPath: /opt/moqui/runtime/lib | ||
149 | - name: log | ||
150 | mountPath: /opt/moqui/runtime/log | ||
151 | - name: txlog-init | ||
152 | mountPath: /opt/moqui/runtime/txlog | ||
153 | - name: sessions | ||
154 | mountPath: /opt/moqui/runtime/sessions | ||
155 | |||
156 | containers: | ||
157 | - name: moqui | ||
158 | image: moqui-app:latest | ||
159 | imagePullPolicy: IfNotPresent | ||
160 | args: ["port=8080", "conf=$(moqui.conf)", "threads=$(jetty_threads)"] | ||
161 | resources: | ||
162 | limits: | ||
163 | memory: 1Gi | ||
164 | requests: | ||
165 | memory: 1Gi | ||
166 | envFrom: | ||
167 | - configMapRef: | ||
168 | name: moqui | ||
169 | - secretRef: | ||
170 | name: moqui | ||
171 | env: | ||
172 | - name: entity_add_missing_runtime | ||
173 | value: "false" | ||
174 | volumeMounts: | ||
175 | - name: lib | ||
176 | mountPath: /opt/moqui/runtime/lib | ||
177 | - name: log | ||
178 | mountPath: /opt/moqui/runtime/log | ||
179 | - name: txlog | ||
180 | mountPath: /opt/moqui/runtime/txlog | ||
181 | - name: sessions | ||
182 | mountPath: /opt/moqui/runtime/sessions | ||
183 |
-
Please register or sign in to post a comment