Skip to content

Commit 07d9cb6

Browse files
committed
add seismic-risc
1 parent 902a732 commit 07d9cb6

File tree

4 files changed

+115
-0
lines changed

4 files changed

+115
-0
lines changed

apps/argo-apps/seismic-risc.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
apiVersion: argoproj.io/v1alpha1
2+
kind: Application
3+
metadata:
4+
name: seismic-risc
5+
namespace: argocd
6+
spec:
7+
project: default
8+
source:
9+
path: apps/seismic-risc
10+
repoURL: https://github.com/code4romania/code4ro-k8s.git
11+
targetRevision: HEAD
12+
destination:
13+
namespace: seismic-risc
14+
server: https://kubernetes.default.svc
15+
syncPolicy:
16+
automated: {}
17+
syncOptions:
18+
- CreateNamespace=true

apps/seismic-risc/domain-mapping.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
apiVersion: serving.knative.dev/v1beta1
2+
kind: DomainMapping
3+
metadata:
4+
name: api.acasainsiguranta.ro
5+
namespace: seismic-risc
6+
spec:
7+
ref:
8+
name: seismic-risc
9+
kind: Service
10+
apiVersion: serving.knative.dev/v1

apps/seismic-risc/sealed-secret.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
apiVersion: bitnami.com/v1alpha1
3+
kind: SealedSecret
4+
metadata:
5+
creationTimestamp: null
6+
name: seismic-risc-secret
7+
namespace: seismic-risc
8+
spec:
9+
encryptedData:
10+
DATABASE_HOST: AgCCH87VUgtXeDcGDfcCVUhiyGPKqFK7415wnt47pKI4+oq0llr18I41nJVHXGWZulKwGYKg9zb6S8PXK6LY6qXejsQwOVII14sJL7ZNNVfqq3oDZOE21ZQXgavbQ5MXM0dX+NJ1+bXqCoMRNVT0i0bg7s5qrpk/H7m9WsIu5mFAT6QYXR+gm6AJWHuN5fxJXTvOqCQFz/D4LkLkfxUWePzZLrF4PopuiFgKvDW7wS+rR2CjgaiR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
16+
template:
17+
metadata:
18+
creationTimestamp: null
19+
name: seismic-risc-secret
20+
namespace: seismic-risc
21+
type: Opaque

apps/seismic-risc/service.yaml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
apiVersion: serving.knative.dev/v1
2+
kind: Service
3+
metadata:
4+
name: seismic-risc
5+
namespace: seismic-risc
6+
spec:
7+
template:
8+
metadata:
9+
annotations:
10+
autoscaling.knative.dev/min-scale: "1"
11+
autoscaling.knative.dev/max-scale: "1"
12+
spec:
13+
containers:
14+
- image: code4romania/seismic-risc:1.0.0
15+
resources:
16+
requests:
17+
cpu: 10m
18+
memory: 128M
19+
limits:
20+
cpu: 100m
21+
memory: 256M
22+
ports:
23+
- containerPort: 80
24+
env:
25+
- name: GUNICORN_PORT
26+
value: "80"
27+
- name: GUNICORN_WORKERS
28+
value: "3"
29+
- name: ALLOWED_HOSTS
30+
value: "api.acasainsiguranta.ro"
31+
- name: CORS_ALLOWED_ORIGINS
32+
value: "https://acasainsiguranta.ro,https://seismic-risc.vercel.app"
33+
- name: CORS_ALLOWED_ORIGIN_REGEXES
34+
value: "https://acasainsiguranta.ro,https://seismic-risc.vercel.app"
35+
- name: CSRF_TRUSTED_ORIGINS
36+
value: "https://api.acasainsiguranta.ro"
37+
- name: SECRET_KEY
38+
valueFrom:
39+
secretKeyRef:
40+
name: seismic-risc-secret
41+
key: SECRET_KEY
42+
- name: HERE_MAPS_API_KEY
43+
valueFrom:
44+
secretKeyRef:
45+
name: seismic-risc-secret
46+
key: HERE_MAPS_API_KEY
47+
- name: DATABASE_NAME
48+
valueFrom:
49+
secretKeyRef:
50+
name: seismic-risc-secret
51+
key: DATABASE_NAME
52+
- name: DATABASE_USER
53+
valueFrom:
54+
secretKeyRef:
55+
name: seismic-risc-secret
56+
key: DATABASE_USER
57+
- name: DATABASE_PASSWORD
58+
valueFrom:
59+
secretKeyRef:
60+
name: seismic-risc-secret
61+
key: DATABASE_PASSWORD
62+
- name: DATABASE_HOST
63+
valueFrom:
64+
secretKeyRef:
65+
name: seismic-risc-secret
66+
key: DATABASE_HOST

0 commit comments

Comments
 (0)