Skip to content

Commit 728a892

Browse files
committed
add wf-ngohub
1 parent 874fab1 commit 728a892

File tree

4 files changed

+114
-0
lines changed

4 files changed

+114
-0
lines changed

apps/argo-apps/wf-ngohub.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: wf-ngohub
5+
namespace: argocd
6+
spec:
7+
project: default
8+
source:
9+
path: apps/wf-ngohub
10+
repoURL: https://github.com/code4romania/code4ro-k8s.git
11+
targetRevision: HEAD
12+
destination:
13+
namespace: wf-ngohub
14+
server: https://kubernetes.default.svc
15+
syncPolicy:
16+
automated: {}
17+
syncOptions:
18+
- CreateNamespace=true

apps/wf-ngohub/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: wf.ngohub.ro
5+
namespace: wf-ngohub
6+
spec:
7+
ref:
8+
name: wf-ngohub
9+
kind: Service
10+
apiVersion: serving.knative.dev/v1

apps/wf-ngohub/sealed-secret.yaml

Whitespace-only changes.

apps/wf-ngohub/service.yaml

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
apiVersion: serving.knative.dev/v1
2+
kind: Service
3+
metadata:
4+
name: wf-ngohub
5+
namespace: wf-ngohub
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/website-factory:1.7.5
15+
resources:
16+
requests:
17+
cpu: 10m
18+
memory: 100M
19+
limits:
20+
cpu: 250m
21+
memory: 256M
22+
ports:
23+
- containerPort: 80
24+
env:
25+
- name: WEBSITE_FACTORY_EDITION
26+
value: "ong"
27+
- name: WEBSITE_FACTORY_HIDE_BANNER
28+
value: "false"
29+
- name: APP_URL
30+
value: "https://wf.ngohub.ro"
31+
- name: APP_KEY
32+
valueFrom:
33+
secretKeyRef:
34+
name: wf-ngohub-secret
35+
key: APP_KEY
36+
- name: DB_HOST
37+
valueFrom:
38+
secretKeyRef:
39+
name: wf-ngohub-secret
40+
key: DB_HOST
41+
- name: DB_DATABASE
42+
valueFrom:
43+
secretKeyRef:
44+
name: wf-ngohub-secret
45+
key: DB_DATABASE
46+
- name: DB_USERNAME
47+
valueFrom:
48+
secretKeyRef:
49+
name: wf-ngohub-secret
50+
key: DB_USERNAME
51+
- name: DB_PASSWORD
52+
valueFrom:
53+
secretKeyRef:
54+
name: wf-ngohub-secret
55+
key: DB_PASSWORD
56+
- name: MAIL_MAILER
57+
value: "ses"
58+
- name: MAIL_FROM_ADDRESS
59+
valueFrom:
60+
secretKeyRef:
61+
name: wf-ngohub-secret
62+
key: MAIL_FROM_ADDRESS
63+
- name: FILESYSTEM_DRIVER
64+
value: "s3"
65+
- name: FILESYSTEM_CLOUD
66+
value: "s3"
67+
- name: AWS_ACCESS_KEY_ID
68+
valueFrom:
69+
secretKeyRef:
70+
name: wf-ngohub-secret
71+
key: AWS_ACCESS_KEY_ID
72+
- name: AWS_SECRET_ACCESS_KEY
73+
valueFrom:
74+
secretKeyRef:
75+
name: wf-ngohub-secret
76+
key: AWS_SECRET_ACCESS_KEY
77+
- name: AWS_DEFAULT_REGION
78+
valueFrom:
79+
secretKeyRef:
80+
name: wf-ngohub-secret
81+
key: AWS_DEFAULT_REGION
82+
- name: AWS_BUCKET
83+
valueFrom:
84+
secretKeyRef:
85+
name: wf-ngohub-secret
86+
key: AWS_BUCKET

0 commit comments

Comments
 (0)