[bitnami/cilium] Rollout restart Cilium sub-components for better VIB reliability (#29268)

This commit is contained in:
Juan Ariza Toledano
2024-09-06 10:52:08 +02:00
committed by GitHub
parent 9749d0c752
commit a8eb883b0e
4 changed files with 75 additions and 3 deletions

View File

@@ -52,4 +52,67 @@ hubble:
ports:
http: 80
type: LoadBalancer
extraDeploy:
- |
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: deployment-restart
namespace: "{{ include "common.names.namespace" . }}"
rules:
- apiGroups: ["apps"]
resources: ["deployments"]
verbs: ["get", "update", "patch"]
- apiGroups: ["apps"]
resources: ["daemonsets"]
verbs: ["get", "list", "watch"]
- apiGroups: [""]
resources: ["pods"]
verbs: ["get", "list"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: deployment-restart
namespace: {{ include "common.names.namespace" . }}
subjects:
- kind: ServiceAccount
name: deployment-restarter
namespace: {{ include "common.names.namespace" . }}
roleRef:
kind: Role
name: deployment-restart
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: deployment-restarter
namespace: {{ include "common.names.namespace" . }}
---
apiVersion: batch/v1
kind: Job
metadata:
name: deployment-restarter
namespace: {{ include "common.names.namespace" . }}
spec:
template:
spec:
automountServiceAccountToken: true
serviceAccountName: deployment-restarter
restartPolicy: OnFailure
containers:
- name: kubectl
image: docker.io/bitnami/kubectl:latest
command:
- /bin/bash
args:
- -ec
- |
set -o errexit
set -o nounset
set -o pipefail
kubectl rollout status --namespace {{ include "common.names.namespace" . }} daemonset {{ include "cilium.agent.fullname" . }}
echo "Cilium agents are ready"
kubectl rollout restart deployment --namespace {{ include "common.names.namespace" . }} {{ include "cilium.hubble.relay.fullname" . }}
kubectl rollout restart deployment --namespace {{ include "common.names.namespace" . }} {{ include "cilium.hubble.ui.fullname" . }}

View File

@@ -1,8 +1,12 @@
# Changelog
## 1.2.1 (2024-09-05)
## 1.2.2 (2024-09-06)
* [bitnami/cilium] Release 1.2.1 ([#29229](https://github.com/bitnami/charts/pull/29229))
* [bitnami/cilium] Rollout restart Cilium sub-components for better VIB reliability ([#29268](https://github.com/bitnami/charts/pull/29268))
## <small>1.2.1 (2024-09-05)</small>
* [bitnami/cilium] Release 1.2.1 (#29229) ([3f63741](https://github.com/bitnami/charts/commit/3f637418fd624a1fe2810964a4c1449ab74b9498)), closes [#29229](https://github.com/bitnami/charts/issues/29229)
## 1.2.0 (2024-09-05)

View File

@@ -52,4 +52,4 @@ sources:
- https://github.com/bitnami/containers/tree/main/bitnami/hubble-relay
- https://github.com/bitnami/containers/tree/main/bitnami/hubble-ui
- https://github.com/bitnami/containers/tree/main/bitnami/hubble-ui-backend
version: 1.2.1
version: 1.2.2

View File

@@ -24,6 +24,11 @@ In order to replicate the container startup scripts execute this command:
{{- else }}
IMPORTANT: Cilium can only take ownership of CNI on a node after starting. Therefore, pods starting before Cilium runs on a given node may get IPs from the pre-configured CNI.
It is recommended to rollout restart pre-existing pods in your cluster. Read more about this topic in the upstream docs below:
https://docs.cilium.io/en/latest/installation/taints
Watch the Cilium Agent daemonset status using the command:
kubectl get daemonset -w --namespace {{ include "common.names.namespace" . }} -l app.kubernetes.io/name={{ include "common.names.name" . }},app.kubernetes.io/instance={{ .Release.Name }},app.kubernetes.io/component=agent