Skip to content

Commit

Permalink
finalizado
Browse files Browse the repository at this point in the history
  • Loading branch information
luisferrarezi committed May 11, 2024
1 parent 6ac3449 commit 2247ba6
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 22 deletions.
8 changes: 4 additions & 4 deletions kubernetes/azure/tiulanches-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ metadata:
labels:
app: tiulanches-config
data:
ds_url: jdbc:mysql://tiulanchessrv.mysql.database.azure.com:3306/tiulanches?createDatabaseIfNotExist=true&useSSL=true&requireSSL=false
ds_pass: V$!d4rmysql
ds_username: tiulanches@tiulanchessrv
conexao_kafka: 10.0.132.224:9092
ds_url:
ds_pass:
ds_username:
conexao_kafka: :9092

47 changes: 29 additions & 18 deletions kubernetes/azure/tiulanches-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,21 +47,7 @@ spec:
valueFrom :
configMapKeyRef :
name : tiulanches-config
key : conexao_kafka
readinessProbe:
httpGet:
path: /actuator/health
port: tiulanches-port
initialDelaySeconds: 60
periodSeconds: 10
failureThreshold: 3
livenessProbe:
httpGet:
path: /actuator/health
port: tiulanches-port
initialDelaySeconds: 60
periodSeconds: 10
failureThreshold: 3
key : conexao_kafka
---
apiVersion: v1
kind: Service
Expand All @@ -71,6 +57,31 @@ spec:
selector:
app: tiulanches
ports:
- port: 8080
targetPort: 8080
type: LoadBalancer
- port: 80
targetPort: 8080
protocol: TCP
name: http
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: tiulanches-ingress
spec:
ingressClassName: nginx
rules:
- http:
paths:
- pathType: Prefix
path: /produtos
backend:
service:
name: tiulanches-svc
port:
number: 80
- pathType: Prefix
path: /clientes
backend:
service:
name: tiulanches-svc
port:
number: 80

0 comments on commit 2247ba6

Please sign in to comment.