Skip to content

Instantly share code, notes, and snippets.

@matharoo
matharoo / kind-config.yaml
Created November 1, 2020 21:52
config file for launching multiple nodes with kind (kubernetes in docker) tool.
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
# patch the generated kubeadm config with some extra settings
kubeadmConfigPatches:
- |
apiVersion: kubelet.config.k8s.io/v1beta1
kind: KubeletConfiguration
evictionHard:
nodefs.available: "0%"
# patch it further using a JSON 6902 patch
@matharoo
matharoo / vpa.yaml
Created November 8, 2020 21:24
Vertical pod autoscaling in recommendation mode for a nodejs app
apiVersion: autoscaling.k8s.io/v1beta2
kind: VerticalPodAutoscaler
metadata:
name: mynode-app-vpa-recommender
spec:
targetRef:
apiVersion: "apps/v1"
kind: Deployment
name: mynode-app
updatePolicy: