[ArgoCD] Sử dụng ArgoCD deploy lên k8s.
Links tham khảo: Hướng dẫn cài đặt và chạy thử 1 app đơn giản. 1) Install https://github.com/argoproj/argo-cd/releases Quick Start Non-HA: kubectl create namespace argocd kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/v2.0.3/manifests/install.yaml HA: kubectl create namespace argocd kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/v2.0.3/manifests/ha/install.yaml lấy user pass Khi upgrade cứ apply file version mới -> mình đã thử…
Vẽ chart cực đẹp bằng Morris JS và hướng dẫn fix lỗi morris không làm việc trên tab của bootstap
Hướng dẫn fix lỗi ko morris Js hiển thị trên tab của bootstrap. https://stackoverflow.com/questions/40517038/morris-js-chart-not-working-inside-of-a-bootstrap-tab
[PHP] Hướng dẫn kiểm tra array rỗng hay null không?
1) Recheck array is empty or null Link: https://www.geeksforgeeks.org/how-to-check-whether-an-array-is-empty-using-php/ Cách 1: Cách 2 Cách 3: 2) Removing key that has a null value in an array Tiếp theo là phần khác (update Mon 13 Dec 2021) Xoá key và value nếu value bằng null https://stackoverflow.com/questions/4352203/any-php-function-that-will-strip-properties-of-an-object-that-are-null Mình thấy kiểu trên khá hay
[Guacamole] Hướng dẫn cài đặt và sử dụng Guacamole remote windows để tạo môi trường làm việc trên cloud
1) Install guacamole on docker đầu tiên nên tạo 1 thư mục để data guacamole được tập trung ở 1 mơi nhất định Nhớ cài đocker nhé, Sau đó cài guacamole bằng docker trong thư mục có 2 folder Links github của tác giả: https://github.com/oznu/docker-guacamole The default username is guacadmin with password guacadmin. Hiện tại thì oznu không…
[Model/Laravel] hasMany Quan Hệ 1 Nhiều trong model
[Model/Laravel]hasOne – Relationship Quan hệ 1-1
Hướng dẫn phần quền user trên Jenkins.
Ta cần tạo user để làm được bước trên Quay trở lại security: Giờ ta cấu hình permiss cho user trên 1 project/job Khi mà chúng ta đã enable như hình trên rồi thì vào job nó sẽ có mục Enable project-based security Thì chúng ta thực hiện phân quên trên từng job. Giờ chúng…
[error] Solve elasticsearch error Limit of total fields [1000] in index [xxx]
Links: https://www.twblogs.net/a/5db3634abd9eee310da04462 Ta thấy lỗi tương tư như dưới [WARN ][logstash.outputs.elasticsearch] Could not index event to Elasticsearch. {:status=>400, :action=>[“index”, {:_id=>nil, :_index=>”logstash-2019.10.14″, :_type=>”doc”, :_routing=>nil}, #<LogStash::Event:0x390305bb>], :response=>{“index”=>{“_index”=>”logstash-2019.10.14”, “_type”=>”doc”, “_id”=>”S-f0yG0BAZNQsWN8qxcz”, “status”=>400, “error”=>{“type”=>”illegal_argument_exception”, “reason”=>”Limit of total fields [1000] in index [logstash-2019.10.14] has been exceeded”}}}} Sử lý lỗi tạm thời: Giải quyết vấn đề vĩnh viễn, logstash-2019.10.14: đây là index…
Read More “[error] Solve elasticsearch error Limit of total fields [1000] in index [xxx]” »
[error] Lỗi failed to parse field [host] of type [text] in document with id trên elk
Fix Lỗi: failed to parse field [host] of type in document with id Khi logstash thấy lỗi: failed to parse field [host] of type in document with id filebeat(kube) -> logstack -> elasticseacrch https://my.oschina.net/hxily/blog/1932662 thêm vào file pipeline đang nhận log. trên logstash.