Skip to content

Commit 96bab28

Browse files
author
Irving Popovetsky
authored
Quick fixups to EKS deployment. fix service so ALB ingress works. add resource requests and VPAs to resources-api and town-crier (#144)
Signed-off-by: Irving Popovetsky <irving@honeycomb.io>
1 parent 7396262 commit 96bab28

3 files changed

Lines changed: 31 additions & 1 deletion

File tree

kubernetes/resources_api/base/deployment.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
---
2+
apiVersion: "autoscaling.k8s.io/v1beta2"
3+
kind: VerticalPodAutoscaler
4+
metadata:
5+
name: resources-api-vpa
6+
spec:
7+
targetRef:
8+
apiVersion: "apps/v1"
9+
kind: Deployment
10+
name: resources-api
11+
---
112
apiVersion: extensions/v1beta1
213
kind: Deployment
314
metadata:
@@ -15,6 +26,10 @@ spec:
1526
imagePullPolicy: Always
1627
ports:
1728
- containerPort: 5000
29+
resources:
30+
requests:
31+
memory: 200Mi
32+
cpu: 100m
1833
env:
1934
- name: POSTGRES_USER
2035
valueFrom:

kubernetes/resources_api/base/service.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ spec:
1010
name: http
1111
port: 80
1212
targetPort: 5000
13-
type: ClusterIP
13+
type: NodePort

kubernetes/town_crier/base/deployment.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
---
2+
apiVersion: "autoscaling.k8s.io/v1beta2"
3+
kind: VerticalPodAutoscaler
4+
metadata:
5+
name: town-crier-vpa
6+
spec:
7+
targetRef:
8+
apiVersion: "apps/v1"
9+
kind: Deployment
10+
name: town-crier
11+
---
112
apiVersion: extensions/v1beta1
213
kind: Deployment
314
metadata:
@@ -14,6 +25,10 @@ spec:
1425
- name: app
1526
image: operationcode/town-crier:latest
1627
imagePullPolicy: Always
28+
resources:
29+
requests:
30+
memory: 200Mi
31+
cpu: 100m
1732
env:
1833
- name: AIRTABLE_API_KEY
1934
valueFrom:

0 commit comments

Comments
 (0)