forked from kapicorp/kapitan-reference
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpostgres-proxy-scaling.yml
50 lines (50 loc) · 1.01 KB
/
postgres-proxy-scaling.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
apiVersion: autoscaling.k8s.io/v1beta2
kind: VerticalPodAutoscaler
metadata:
labels:
app.kapicorp.dev/component: postgres-proxy
name: postgres-proxy
tier: db
name: postgres-proxy
namespace: postgres-proxy
spec:
resourcePolicy:
containerPolicies:
- containerName: istio-proxy
mode: 'Off'
targetRef:
apiVersion: apps/v1
kind: Deployment
name: postgres-proxy
updatePolicy:
updateMode: Auto
---
apiVersion: policy/v1beta1
kind: PodDisruptionBudget
metadata:
labels:
app.kapicorp.dev/component: postgres-proxy
name: postgres-proxy
name: postgres-proxy
namespace: postgres-proxy
spec:
minAvailable: 2
selector:
matchLabels:
name: postgres-proxy
tier: db
---
apiVersion: policy/v1beta1
kind: PodDisruptionBudget
metadata:
labels:
app.kapicorp.dev/component: postgres-proxy
name: postgres-proxy
name: postgres-proxy
namespace: postgres-proxy
spec:
minAvailable: 2
selector:
matchLabels:
name: postgres-proxy
tier: db