Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
Moussa Ouattara committed Jan 23, 2022
1 parent a940612 commit ceceb73
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/helloworld.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ jobs:
with:
manifests: |
${{ github.workspace }}/manifests/deployment.yaml
${{ github.workspace }}/manifests/hpa.yaml
${{ github.workspace }}/manifests/service.yaml
images: ${{ env.REGISTRY_NAME }}.azurecr.io/${{ env.APP_NAME }}:${{ github.sha }}
imagepullsecrets: |
Expand Down
2 changes: 1 addition & 1 deletion manifests/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Deployment
metadata:
name: helloworld
spec:
replicas: 1
replicas: 2
selector:
matchLabels:
app: helloworld
Expand Down
12 changes: 12 additions & 0 deletions manifests/hpa.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
name: helloworld
spec:
maxReplicas: 10 # define max replica count
minReplicas: 2 # define min replica count
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: helloworld
targetCPUUtilizationPercentage: 50 # target CPU utilization

0 comments on commit ceceb73

Please sign in to comment.