feat: add resources #20

Open
kjuulh wants to merge 1 commits from feat/with-resources into main
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
- containerPort: 3002
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:
- deployment.yaml
- service.yaml
- crdb.configmap.yaml
- nats.configmap.yaml
- configmap.yaml
commonLabels:
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"