From f2d7d7821f81335929d387d64ebcd9802fd0f3a5 Mon Sep 17 00:00:00 2001 From: Stefan Reimer Date: Fri, 9 Apr 2021 13:44:48 +0200 Subject: [PATCH] fix: loosen kiam memory limits slightly to prevent OOM endless loops --- charts/kubezero-kiam/Chart.yaml | 2 +- charts/kubezero-kiam/values.yaml | 8 ++++---- docs/etcd_hackery.md | 11 +++++++++++ 3 files changed, 16 insertions(+), 5 deletions(-) create mode 100644 docs/etcd_hackery.md diff --git a/charts/kubezero-kiam/Chart.yaml b/charts/kubezero-kiam/Chart.yaml index b3d14edc..c7b5eb0c 100644 --- a/charts/kubezero-kiam/Chart.yaml +++ b/charts/kubezero-kiam/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: kubezero-kiam description: KubeZero Umbrella Chart for Kiam type: application -version: 0.3.2 +version: 0.3.3 appVersion: "4.0" home: https://kubezero.com icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png diff --git a/charts/kubezero-kiam/values.yaml b/charts/kubezero-kiam/values.yaml index 39eab1da..8f1b8daa 100644 --- a/charts/kubezero-kiam/values.yaml +++ b/charts/kubezero-kiam/values.yaml @@ -21,10 +21,10 @@ kiam: updateStrategy: RollingUpdate resources: requests: - memory: "50Mi" + memory: "64Mi" cpu: "50m" limits: - memory: "100Mi" + memory: "128Mi" # cpu: "300m" tolerations: - key: node-role.kubernetes.io/master @@ -57,10 +57,10 @@ kiam: caFileName: ca.crt resources: requests: - memory: "20Mi" + memory: "16Mi" cpu: "50m" limits: - memory: "20Mi" + memory: "64Mi" # cpu: "50m" tolerations: - key: node-role.kubernetes.io/master diff --git a/docs/etcd_hackery.md b/docs/etcd_hackery.md new file mode 100644 index 00000000..0551229a --- /dev/null +++ b/docs/etcd_hackery.md @@ -0,0 +1,11 @@ +# How to extract or even edit etcd data directly + +## Get Auger +https://github.com/jpbetz/auger + +## Change a PV object +etcdctl get /registry/persistentvolumes/services-dsny-cache | auger decode > pv.yaml + +vi pv.yaml + +cat pv.yaml | auger encode | etcdctl put /registry/persistentvolumes/services-dsny-cache