From 4c42069e0e664684a8a4324691a6b53a70a5fa56 Mon Sep 17 00:00:00 2001 From: Stefan Martinov Date: Wed, 8 Dec 2021 15:08:23 +0100 Subject: [PATCH] feat: add initial spot-instance-node-pools.md description --- foomo/docs/devops/kubernetes/_category_.json | 4 +++ .../kubernetes/spot-instance-node-pools.md | 36 +++++++++++++++++++ foomo/docs/devops/monitoring/_category_.json | 2 +- 3 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 foomo/docs/devops/kubernetes/_category_.json create mode 100644 foomo/docs/devops/kubernetes/spot-instance-node-pools.md diff --git a/foomo/docs/devops/kubernetes/_category_.json b/foomo/docs/devops/kubernetes/_category_.json new file mode 100644 index 0000000..c000828 --- /dev/null +++ b/foomo/docs/devops/kubernetes/_category_.json @@ -0,0 +1,4 @@ +{ + "label": "Kubernetes", + "position": 1 +} diff --git a/foomo/docs/devops/kubernetes/spot-instance-node-pools.md b/foomo/docs/devops/kubernetes/spot-instance-node-pools.md new file mode 100644 index 0000000..e81ad97 --- /dev/null +++ b/foomo/docs/devops/kubernetes/spot-instance-node-pools.md @@ -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 + diff --git a/foomo/docs/devops/monitoring/_category_.json b/foomo/docs/devops/monitoring/_category_.json index 47bd214..de72be0 100644 --- a/foomo/docs/devops/monitoring/_category_.json +++ b/foomo/docs/devops/monitoring/_category_.json @@ -1,4 +1,4 @@ { "label": "Monitoring", - "position": 1 + "position": 2 }