Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions proxy/deploy-proxy-for-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ do
--project "${project}" --zone "${parts[1]}"
sed s/GCP_PROJECT/${project}/g "./kubernetes/proxy-deployment-${environment}.yaml" | \
kubectl apply -f -
kubectl apply -f "./kubernetes/proxy-limit-range.yaml" --force
kubectl apply -f "./kubernetes/proxy-service.yaml" --force
# Alpha does not have canary
if [[ ${environment} != "alpha" ]]; then
Expand Down
14 changes: 14 additions & 0 deletions proxy/kubernetes/proxy-limit-range.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: v1
kind: LimitRange
metadata:
name: resource-limits
namespace: default
spec:
limits:
- type: Container
default:
cpu: "300m"
memory: "512Mi"
defaultRequest:
cpu: "100m"
memory: "350Mi"
7 changes: 7 additions & 0 deletions proxy/kubernetes/proxy-service-canary.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,10 @@ spec:
name: proxy-deployment-canary
maxReplicas: 10
minReplicas: 1
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 100
8 changes: 8 additions & 0 deletions proxy/kubernetes/proxy-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,11 @@ spec:
name: proxy-deployment
maxReplicas: 50
minReplicas: 10
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 100