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 b352374 commit 8a52221
Show file tree
Hide file tree
Showing 6 changed files with 128 additions and 12 deletions.
51 changes: 51 additions & 0 deletions manifests/petstoreorderservice-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-petstoreorderservice
spec:
replicas: 1
selector:
matchLabels:
app: aks-petstoreorderservice
template:
metadata:
labels:
app: aks-petstoreorderservice
spec:
nodeSelector:
"beta.kubernetes.io/os": linux
containers:
- name: petstoreorderservice
image: azurepetstorecr.azurecr.io/petstoreorderservice:latest
resources:
requests:
cpu: 250m
memory: 1Gi
limits:
cpu: 500m
memory: 2Gi
ports:
- containerPort: 8080
env:
- name: PETSTOREORDERSERVICE_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-petstoreorderservice-hpa
spec:
maxReplicas: 4 # define max replica count
minReplicas: 1 # define min replica count
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: aks-petstoreorderservice
targetCPUUtilizationPercentage: 80 # target CPU utilization
10 changes: 10 additions & 0 deletions manifests/petstoreorderservice-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-petstoreorderservice
spec:
type: ClusterIP
ports:
- port: 80
selector:
app: aks-petstoreorderservice
51 changes: 51 additions & 0 deletions manifests/petstoreproductservice-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-petstoreproductservice
spec:
replicas: 1
selector:
matchLabels:
app: aks-petstoreproductservice
template:
metadata:
labels:
app: aks-petstoreproductservice
spec:
nodeSelector:
"beta.kubernetes.io/os": linux
containers:
- name: petstoreproductservice
image: azurepetstorecr.azurecr.io/petstoreproductservice:latest
resources:
requests:
cpu: 250m
memory: 1Gi
limits:
cpu: 500m
memory: 2Gi
ports:
- containerPort: 8080
env:
- name: PETSTOREPRODUCTSERVICE_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-petstoreproductservice-hpa
spec:
maxReplicas: 4 # define max replica count
minReplicas: 1 # define min replica count
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: aks-petstoreproductservice
targetCPUUtilizationPercentage: 80 # target CPU utilization
10 changes: 10 additions & 0 deletions manifests/petstoreproductservice-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-petstoreproductservice
spec:
type: ClusterIP
ports:
- port: 80
selector:
app: aks-petstoreproductservice
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,15 @@ springfoxdocumentation:
path: /api-docs

server:
port: ${PETSTORESERVICE_SERVER_PORT}
port: ${PETSTOREORDERSERVICE_SERVER_PORT}

spring:
jackson:
date-format: org.openapitools.RFC3339DateFormat
serialization.WRITE_DATES_AS_TIMESTAMPS: false
application:
name: petstorepetservice
name: petstoreorderservice

azure:
application-insights:
instrumentation-key: ${PETSTORESERVICE_AI_INSTRUMENTATION_KEY}
instrumentation-key: ${PETSTORESERVICES_AI_INSTRUMENTATION_KEY}
web:
enable-W3C: true
enable-W3C-backcompat-mode: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,15 @@ springfoxdocumentation:
path: /api-docs

server:
port: ${PETSTORESERVICE_SERVER_PORT}
port: ${PETSTOREPRODUCTSERVICE_SERVER_PORT}

spring:
jackson:
date-format: org.openapitools.RFC3339DateFormat
serialization.WRITE_DATES_AS_TIMESTAMPS: false
application:
name: petstorepetservice
name: petstoreproductservice

azure:
application-insights:
instrumentation-key: ${PETSTORESERVICE_AI_INSTRUMENTATION_KEY}
instrumentation-key: ${PETSTORESERVICES_AI_INSTRUMENTATION_KEY}
web:
enable-W3C: true
enable-W3C-backcompat-mode: true
Expand Down

0 comments on commit 8a52221

Please sign in to comment.