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.
Tự tạo Command “php artisan” cho riêng mình trên web laravel
Links list videos: Các thứ chạy command laravel thì nằm hết trong func handler $this->info() để in kêt quả ra ngoài màn hình. câu lệnh tạo file command: php artisan make:command GetAllocationClusterDailyKubecost php artisan kubecost:getAllocationClusterDaily 1) Option Để hứng được option {–days=} trong 1 function Khi gõ command: php artisan prometheus:pullAvailabilityMetrics –days=1hoặc không có option…
Read More “Tự tạo Command “php artisan” cho riêng mình trên web laravel” »
Hướng dẫn delete branch git bằng command
Git delete repository. Links tham khảo: https://www.git-tower.com/learn/git/faq/delete-local-branch/ Git makes managing branches really easy – and deleting local branches is no exception: In some cases, Git might refuse to delete your local branch: when it contains commits that haven’t been merged into any other local branches or pushed to a remote repository. This is a very…
Các Lệnh query với Model của Laravel eloquent
Khi tìm 1 điều kiện không giống WHERE NOT IN Laravel Eloquent “WHERE NOT IN” Query database lớn hơn. WHERE Like https://www.positronx.io/laravel-eloquent-where-like-query-example-tutorial/ WHERE REGEXP Cảm ơn bạn Tích đã chia sẻ kiến thức ^: là bắt đầu$: là kết thúc mình có 1 user tên là uc.dang như nếu query like ‘%uc.dang%’ thì ăn nhầm…
Hướng dẫn sử dụng ingress nginx và control ingress bằng annotations trên k8s
Links video: Nếu theo như video thì cài ingress nginx thông qua helm. Hoặc cách các file yaml qua đây: https://xuanthulab.net/trien-khai-nginx-ingress-controller-trong-kubernetes.html Links git trong video nằm ở đây: https://github.com/justmeandopensource/kubernetes/tree/master/yamls/ingress-demo Ta có 3 file deployment tượng trưng cho 3 web khách nhau: Sau khi apply 3 file trên thì ra tạo nhanh service Chúng ta đi…
Read More “Hướng dẫn sử dụng ingress nginx và control ingress bằng annotations trên k8s” »
[Helm Chart] Learning Helm on Kubernetes in 60 minutes!!
Anh em cần coi clip của anh này là master helm liền. https://www.youtube.com/watch?v=LWW8_S0dbG8 Không hiểu sao nó không hiện video. Rất hay các bạn tự click nhé. Intall helm cli on linux install helm trên ubuntu: Install helm cli on windows https://www.youtube.com/watch?v=L3iNhrjQILM Access this link: https://github.com/helm/helm/releases/ thế là ok. Tạo ra 1 chart mẫu Câu…
Read More “[Helm Chart] Learning Helm on Kubernetes in 60 minutes!!” »
[Spinnaker-Github-Helm-K8S]Hướng dẫn cấu hình Spinnaker deploy lên kubernetes dựa vào Helm
Hướng dẫn cấu hình Spinnaker deploy lên kubernetes dựa vào Helm. Tạo Helm Chart theo hướng dẫn: https://phoenixnap.com/kb/create-helm-chart https://docs.bitnami.com/tutorials/create-your-first-helm-chart/ https://tel4vn.edu.vn/blog/how-to-create-heml-chart-in-10-minutes/ (tài liệu tiếng việt) Thực package helm bằng câu lệnh: helm package ./mychart Thực hiện create repo trên github và push github: https://github.com/mrnim94/kubernetes-manifest.git Thực hiện token trên github: Sau khi có được token thực hiện…