Skip to content

Commit

Permalink
Merge pull request #10 from fiap-8soat-tc-one/feature/move-refact-files
Browse files Browse the repository at this point in the history
fix: fixed k8s
  • Loading branch information
jcmdsbr authored Oct 5, 2024
2 parents 178259a + cd76c96 commit 3541788
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
10 changes: 2 additions & 8 deletions kubernetes/3-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: app-tc-backend-s2-dep
namespace: fiap
spec:
replicas: 1
replicas: 2
selector:
matchLabels:
app: app-tc-backend-s2
Expand All @@ -19,13 +19,7 @@ spec:
ports:
- name: http
containerPort: 8080
protocol: TCP
livenessProbe:
httpGet:
path: /api/public/v1/health
port: 8080
failureThreshold: 1
periodSeconds: 15
protocol: TCP
resources:
requests:
cpu: "200m"
Expand Down
4 changes: 2 additions & 2 deletions kubernetes/4-hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ spec:
apiVersion: apps/v1
kind: Deployment
name: app-tc-backend-s2-dep
minReplicas: 1
minReplicas: 2
maxReplicas: 4
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 70
averageUtilization: 80

0 comments on commit 3541788

Please sign in to comment.