-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathvm-deploy.yaml
32 lines (32 loc) · 979 Bytes
/
vm-deploy.yaml
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
---
apiVersion: vm.neon.tech/v1
kind: VirtualMachine
metadata:
name: postgres16-disk-test
annotations:
# In this example, these bounds aren't necessary. So... here's what they look like :)
autoscaling.neon.tech/bounds: '{ "min": { "cpu": 0.25, "mem": "1Gi" }, "max": { "cpu": 1.25, "mem": "5Gi" } }'
labels:
autoscaling.neon.tech/enabled: "true"
# Set to "true" to continuously migrate the VM (TESTING ONLY)
autoscaling.neon.tech/testing-only-always-migrate: "false"
spec:
schedulerName: autoscale-scheduler
enableNetworkMonitoring: true
enableSSH: true
tlsCertificateIssuer: "neon-ca-issuer"
tlsExpiration: 5m
tlsRenewal: 3m
guest:
cpus: { min: 0.25, use: 0.25, max: 1.25 }
memorySlotSize: 1Gi
memorySlots: { min: 1, use: 1, max: 5 }
rootDisk:
image: pg16-disk-test:dev
size: 8Gi
ports:
- port: 5432 # postgres
- port: 9100 # metrics
- port: 10301 # monitor
settings:
swap: 1Gi