Changes for page Lỗi enable Hubble UI bị Keypair permission denied
Last modified by Admin on 2025/03/05 13:56
Summary
-
Page properties (3 modified, 0 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,1 +1,1 @@ 1 -Lỗi e nable HubbleUI bị permissiondenied1 +Lỗi setup cluster k8s - Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. TechSupport1 +XWiki.ducd - Content
-
... ... @@ -2,18 +2,12 @@ 2 2 3 3 Sau khi nhận thông tin về việc khách hàng setup bộ cluster k8s mới, khách chạy lệnh sau để enable hubble lên thì bị lỗi 4 4 5 -(% class="box" %) 6 -((( 7 7 **cilium hubble enable –ui** 8 -))) 9 9 10 10 [[image:1708570799200-986.png]] 11 11 12 12 13 -(% class="box" %) 14 -((( 15 15 kubectl logs hubble-relay-84584b846-wzn72 -n kube-system Error: failed to load keypair: open /var/lib/hubble-relay/tls/client.crt: permission denied 16 -))) 17 17 18 18 Check version cilium của khách đang chạy version v0.10.6 19 19 ... ... @@ -48,21 +48,15 @@ 48 48 49 49 Phần này khách hàng sẽ edit thẳng luôn ở file yaml qua câu lệnh: 50 50 51 -(% class="box" %) 52 -((( 53 53 **kubectl edit deployment hubble-relay -n kube-system** 54 -))) 55 55 56 56 Sau khi khách hàng đã thêm đoạn code cho file yaml trên nhưng vẫn bị báo lỗi invalid. 57 57 58 58 [[image:1708570868410-467.png]] 59 59 60 -(% class="box" %) 61 -((( 62 62 **# deployments.apps "hubble-relay" was not valid: # * patch: Invalid value: "map[spec:map[template:map[spec:map[securityContext:map[capabilities:map[drop:[ALL]] runAsGroup:65532 runAsNonRoot:true runAsUser:65532]]]]]": strict decoding error: unknown field "spec.template.spec.securityContext.capabilities"** 63 -))) 64 64 65 - >Lý do là khách hàng đã thiếu 1 đoạn code cho securityContext, khách chỉ cần thêm đoạn code sau cho securityContext như sau:53 +Lý do là khách hàng đã thiếu 1 đoạn code cho securityContext, khách chỉ cần thêm đoạn code sau cho securityContext như sau: 66 66 67 67 **securityContext: {} chuyển thành** 68 68 ... ... @@ -76,8 +76,3 @@ 76 76 77 77 78 78 Bizfly Cloud chúc các bạn thành công! 79 - 80 -(% class="ddict_btn" style="top: 1358px; left: 1492px;" %) 81 -((( 82 -[[image:chrome-extension://bpggmmljdiliancllaapiggllnkbjocb/logo/48.png]] 83 -)))