Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
chtrembl committed Dec 22, 2021
1 parent 1b1ad52 commit 4dc52c7
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
51 changes: 51 additions & 0 deletions manifests/petstorepetservice-deployment-everything-enabled.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: aks-petstorepetservice
spec:
replicas: 1
selector:
matchLabels:
app: aks-petstorepetservice
template:
metadata:
labels:
app: aks-petstorepetservice
spec:
nodeSelector:
"beta.kubernetes.io/os": linux
containers:
- name: petstoreservice
image: azurepetstorecr.azurecr.io/petstorepetservice:latest
resources:
requests:
cpu: 250m
memory: 1Gi
limits:
cpu: 500m
memory: 2Gi
ports:
- containerPort: 8080
env:
- name: PETSTOREPETSERVICE_SERVER_PORT
value: "80"
- name: spring.config.name
value: application_with_everything_enabled
- name: PETSTORESERVICES_AI_INSTRUMENTATION_KEY
valueFrom:
secretKeyRef:
name: aisecretkey
key: secret
---
apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
name: aks-petstorepetservice-hpa
spec:
maxReplicas: 4 # define max replica count
minReplicas: 1 # define min replica count
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: aks-petstorepetservice
targetCPUUtilizationPercentage: 80 # target CPU utilization
10 changes: 10 additions & 0 deletions manifests/petstorepetservice-service-everything-enabled.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: v1
kind: Service
metadata:
name: aks-petstorepetservice
spec:
type: ClusterIP
ports:
- port: 80
selector:
app: aks-petstorepetservice

0 comments on commit 4dc52c7

Please sign in to comment.