Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #17 from Grupo-G03-4SOAT-FIAP/feature/125/k8s
Browse files Browse the repository at this point in the history
ci: atualiza o Deployment do k8s
  • Loading branch information
dannevesdantas authored May 11, 2024
2 parents d7d6499 + 8d8e303 commit 0943d79
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion k8s/production/bff/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ metadata:
labels:
app: rms-api-catalogo
data:
DB_NAME: "rms"
DB_NAME: "catalogo"
DB_SSL: "false"
12 changes: 6 additions & 6 deletions k8s/production/bff/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
labels:
app: rms-api-catalogo
spec:
replicas: 3
replicas: 1
selector:
matchLabels:
app: rms-api-catalogo
Expand All @@ -23,7 +23,7 @@ spec:
driver: secrets-store.csi.k8s.io
readOnly: true
volumeAttributes:
secretProviderClass: aws-secrets
secretProviderClass: aws-secrets-api-catalogo
containers:
- name: rms-api-catalogo
image: 900534935988.dkr.ecr.us-east-1.amazonaws.com/rms-api-catalogo:latest
Expand All @@ -38,22 +38,22 @@ spec:
- name: DB_HOST
valueFrom:
secretKeyRef:
name: db-bff-secret
name: db-catalogo-secret
key: host
- name: DB_PORT
valueFrom:
secretKeyRef:
name: db-bff-secret
name: db-catalogo-secret
key: port
- name: DB_USERNAME
valueFrom:
secretKeyRef:
name: db-bff-secret
name: db-catalogo-secret
key: username
- name: DB_PASSWORD
valueFrom:
secretKeyRef:
name: db-bff-secret
name: db-catalogo-secret
key: password
ports:
- containerPort: 3001
Expand Down
4 changes: 2 additions & 2 deletions k8s/production/bff/secret-provider.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
apiVersion: secrets-store.csi.x-k8s.io/v1
kind: SecretProviderClass
metadata:
name: aws-secrets
name: aws-secrets-api-catalogo
namespace: rms
spec:
provider: aws
secretObjects:
- secretName: db-bff-secret # Nome do Secret que será montado automaticamente contendo os segredos do AWS Secrets Manager
- secretName: db-catalogo-secret # Nome do Secret que será montado automaticamente contendo os segredos do AWS Secrets Manager
type: Opaque
data:
- objectName: host
Expand Down

0 comments on commit 0943d79

Please sign in to comment.