feat: add resources #20
9
templates/kustomize/base/configmap.yaml
Normal file
9
templates/kustomize/base/configmap.yaml
Normal 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"
|
||||
|
7
templates/kustomize/base/crdb.configmap.yaml
Normal file
7
templates/kustomize/base/crdb.configmap.yaml
Normal 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"
|
@ -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"
|
||||
|
@ -7,6 +7,9 @@ kind: Kustomization
|
||||
resources:
|
||||
- deployment.yaml
|
||||
- service.yaml
|
||||
- crdb.configmap.yaml
|
||||
- nats.configmap.yaml
|
||||
- configmap.yaml
|
||||
|
||||
commonLabels:
|
||||
app: "{{ service }}"
|
||||
|
8
templates/kustomize/base/nats.configmap.yaml
Normal file
8
templates/kustomize/base/nats.configmap.yaml
Normal 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"
|
Loading…
Reference in New Issue
Block a user