feat: add resources
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
Kasper Juul Hermansen 2024-03-09 23:02:43 +01:00
parent 6957c9221c
commit 991825df95
Signed by: kjuulh
GPG Key ID: 9AA7BC13CE474394
5 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,9 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: "{{ service | lower | replace(from='_', to='-') }}-config"
data:
AWS_ACCESS_KEY_ID: "dNo8Kxbg08WcWVJdazXZ"
AWS_SECRET_ACCESS_KEY: "5NUnyOZMvIu89FJbqKwkynSvJVPRc5lsprsqm0c8"
AWS_ENDPOINT_URL: "https://api.minio.i.kjuulh.io"

View File

@ -0,0 +1,7 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: "{{ service | lower | replace(from='_', to='-') }}-database-crdb"
data:
# DATABASE_URL: "postgresql://{{ service | lower | replace(from='-', to='_') }}:strongpassword123@prod-cluster:26257/{{ service | lower | replace(from='-', to='_') }}"
DATABASE_URL: "postgresql://root@prod-cluster:26257/defaultdb"

View File

@ -20,3 +20,10 @@ spec:
name: internal-http name: internal-http
- containerPort: 3002 - containerPort: 3002
name: internal-grpc name: internal-grpc
envFrom:
- configMapRef:
name: "{{ service | lower | replace(from='_', to='-') }}-database-crdb"
- configMapRef:
name: "{{ service | lower | replace(from='_', to='-') }}-config"
- configMapRef:
name: "{{ service | lower | replace(from='_', to='-') }}-message-queue-nats"

View File

@ -7,6 +7,9 @@ kind: Kustomization
resources: resources:
- deployment.yaml - deployment.yaml
- service.yaml - service.yaml
- crdb.configmap.yaml
- nats.configmap.yaml
- configmap.yaml
commonLabels: commonLabels:
app: "{{ service }}" app: "{{ service }}"

View File

@ -0,0 +1,8 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: "{{ service | lower | replace(from='_', to='-') }}-message-queue-nats"
data:
NATS_USERNAME: "{{ service | lower | replace(from='_', to='-') }}"
NATS_PASSWORD: "{{ service | lower | replace(from='_', to='-') }}"
NATS_URL: "nats"