mirror of
https://github.com/foomo/foomo-docs.git
synced 2025-10-16 12:35:40 +00:00
feat: add initial spot-instance-node-pools.md description
This commit is contained in:
parent
124d9c4218
commit
4c42069e0e
4
foomo/docs/devops/kubernetes/_category_.json
Normal file
4
foomo/docs/devops/kubernetes/_category_.json
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"label": "Kubernetes",
|
||||||
|
"position": 1
|
||||||
|
}
|
||||||
36
foomo/docs/devops/kubernetes/spot-instance-node-pools.md
Normal file
36
foomo/docs/devops/kubernetes/spot-instance-node-pools.md
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
---
|
||||||
|
sidebar_label: Spot Instance Node Pools
|
||||||
|
---
|
||||||
|
# Spot Instance Node Pools
|
||||||
|
|
||||||
|
Setting up spot instance node pools is a great way to save money on stateless applications
|
||||||
|
|
||||||
|
## Setting Up Node Taints
|
||||||
|
|
||||||
|
## Setting Up Pod Toleration
|
||||||
|
|
||||||
|
## Setting Up Pod Disruption Budgets
|
||||||
|
|
||||||
|
Setting up a pod disruption budget is important due to erratic node shutdown possibility.
|
||||||
|
What could happen is that nodes that are hosting the applications start terminating, and our application becomes
|
||||||
|
unresponsive until the application is re-located to another node.
|
||||||
|
To avoid that situation, for the instances we need to configure pod disruption budget on our helm deployments.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
apiVersion: policy/v1
|
||||||
|
kind: PodDisruptionBudget
|
||||||
|
metadata:
|
||||||
|
name: application-name
|
||||||
|
spec:
|
||||||
|
maxAvailable: 50%
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: application-name
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
For more details check out [here](https://kubernetes.io/docs/tasks/run-application/configure-pdb/)
|
||||||
|
## Setting Up Termination Handling
|
||||||
|
|
||||||
|
## Setting Up K8s Cron Shutdown Cleanup
|
||||||
|
|
||||||
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"label": "Monitoring",
|
"label": "Monitoring",
|
||||||
"position": 1
|
"position": 2
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user