https://itecnote.com/tecnote/error-refreshing-state-state-data-in-s3-does-not-have-the-expected-content/
Author: nim
[gitlab] Upgrading from major version 14 to major version 15
Hôm nay, Nim note lại một số thứ khi upgrade Gitlab. Hiện tại thì mình cài gitlab trên Centos 7 từ rất lâu.nên khi upgrade thì chỉ cần:yum update -y KHi mình upgrade thì phá hiện 1 lỗi như dưới. Vì việc change 14 lên 15 sẽ gặp rất nhiều lỗi nên chúng ta cần…
Read More “[gitlab] Upgrading from major version 14 to major version 15” »
[kubernetes/client-go] Go clients for talking to a kubernetes cluster.
Nếu Sếp bảo bạn giờ anh muốn em code 1 script restart pod trên k8s khi nó bị freeze.Còn làm sao biết là pod đó bị freeze thì call vào 1 enpoint. Chà viêt Script hả ta. No No em code GO. Bạn có thể tham khảo Đây là code của anh trai: Code của…
Read More “[kubernetes/client-go] Go clients for talking to a kubernetes cluster.” »
[aws-sdk-go] Integrate with AWS by golang
Hôm nay nghịch tý golang call vào awsở V2 còn nhiều compose chưa được phát triểnbài này mình test với S3 trên aws. Resolve: https://stackoverflow.com/questions/25027462/aws-s3-the-bucket-you-are-attempting-to-access-must-be-addressed-using-the-spec Và sau đây là code sample
[Golang] Looking filepath.Walk to return any file and children folder in the folder
The filepath.Walk function is used to traverse a directory tree recursively, starting from a given directory path. It walks the directory tree and calls a given function once for each file or directory found, passing in information about that file or directory. The function signature of filepath.Walk is: where root is the starting directory path, and walkFn is the function to be called…
Read More “[Golang] Looking filepath.Walk to return any file and children folder in the folder” »
[Linux] Error when run apt update
[Metallb] Create LoadBalancer Service on K8S (on-premise) so easily
Hiện tại phiên bản v0.13.x có 1 breakchange, but cũng rất dễ dàng setup. https://metallb.universe.tf/ Đây là các config mẫu.Bạn cần chọn ra 1 range IP cho loadbalancer.
[ingress-nginx] ingress /contains invalid path
Vừa qua mình gặp mội lỗi trên ingress nginx khi tạo ingress cho rancherkhi vào trong thì bị 404 và log trong ingress controller như dưới mình có đọc bài này:https://stackoverflow.com/questions/64946195/invalid-value-for-nginx-path
[Samba] Looking into Locks and Oplocks in Samba-Server
Tôi đang copy từ này này:https://www.oreilly.com/openbook/samba/book/ch05_05.html 5.5 Locks and Oplocks Concurrent writes to a single file are not desirable in any operating system. To prevent this, most operating systems use locks to guarantee that only one process can write to a file at a time. Operating systems traditionally lock entire files, although newer ones allow a range…
Read More “[Samba] Looking into Locks and Oplocks in Samba-Server” »
[Helmify] CLI that creates Helm charts from Kubernetes yamls.
Helmify là một công cụ mã nguồn mở dùng để convert các file YAML thành chart Helm cho Kubernetes. Nó hỗ trợ việc quản lý các file YAML trong môi trường phân tán và automation trong quá trình setting up và phát triển. Helmify cũng cho phép anh em dễ dàng chỉnh sửa các file…
Read More “[Helmify] CLI that creates Helm charts from Kubernetes yamls.” »