Skip to content

Commit

Permalink
feat: adding pdb for store-front
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldotyu committed Apr 10, 2024
1 parent c1ce9f8 commit b207fba
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 10 deletions.
2 changes: 1 addition & 1 deletion charts/aks-store-demo/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.0.0
version: 1.1.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
2 changes: 1 addition & 1 deletion charts/aks-store-demo/templates/ai-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ kind: Deployment
metadata:
name: ai-service
spec:
replicas: {{ .Values.replicaCount }}
replicas: {{ .Values.aiService.replicaCount }}
selector:
matchLabels:
app: ai-service
Expand Down
2 changes: 1 addition & 1 deletion charts/aks-store-demo/templates/makeline-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ kind: Deployment
metadata:
name: makeline-service
spec:
replicas: {{ .Values.replicaCount }}
replicas: {{ .Values.makelineService.replicaCount }}
selector:
matchLabels:
app: makeline-service
Expand Down
2 changes: 1 addition & 1 deletion charts/aks-store-demo/templates/order-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ kind: Deployment
metadata:
name: order-service
spec:
replicas: {{ .Values.replicaCount }}
replicas: {{ .Values.orderService.replicaCount }}
selector:
matchLabels:
app: order-service
Expand Down
2 changes: 1 addition & 1 deletion charts/aks-store-demo/templates/product-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Deployment
metadata:
name: product-service
spec:
replicas: {{ .Values.replicaCount }}
replicas: 1
selector:
matchLabels:
app: product-service
Expand Down
2 changes: 1 addition & 1 deletion charts/aks-store-demo/templates/store-admin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Deployment
metadata:
name: store-admin
spec:
replicas: {{ .Values.replicaCount }}
replicas: {{ .Values.storeAdmin.replicaCount }}
selector:
matchLabels:
app: store-admin
Expand Down
15 changes: 13 additions & 2 deletions charts/aks-store-demo/templates/store-front.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Deployment
metadata:
name: store-front
spec:
replicas: {{ .Values.replicaCount }}
replicas: {{ .Values.storeFront.replicaCount }}
selector:
matchLabels:
app: store-front
Expand Down Expand Up @@ -64,4 +64,15 @@ spec:
- port: 80
targetPort: 8080
selector:
app: store-front
app: store-front
---
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: store-front
spec:
minAvailable: {{ .Values.storeFront.minAvailable }}
selector:
matchLabels:
app: store-front
unhealthyPodEvictionPolicy: AlwaysAllow
8 changes: 6 additions & 2 deletions charts/aks-store-demo/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

replicaCount: 1

namespace: "dev"

aiService:
replicaCount: 1
# Specifies whether a ai-service deployment and service should be created
create: false
modelDeploymentName: ""
Expand All @@ -21,6 +20,7 @@ aiService:
tag: "latest"

orderService:
replicaCount: 1
useAzureServiceBus: false # when false, local rabbitmq will be used
queueHost: "rabbitmq"
queuePort: "5672"
Expand All @@ -33,6 +33,7 @@ orderService:
tag: "latest"

makelineService:
replicaCount: 1
useAzureCosmosDB: false # when false, local mongodb will be used
useSqlApi: false # when false, mongodb api for azure cosmosdb will be used
orderQueueUri: "amqp://rabbitmq:5672"
Expand All @@ -55,12 +56,15 @@ productService:
tag: "latest"

storeAdmin:
replicaCount: 1
image:
repository: "ghcr.io/azure-samples/aks-store-demo/store-admin"
tag: "latest"
serviceType: LoadBalancer

storeFront:
replicaCount: 3
minAvailable: 60%
image:
repository: "ghcr.io/azure-samples/aks-store-demo/store-front"
tag: "latest"
Expand Down

0 comments on commit b207fba

Please sign in to comment.