Month: January 2022
[Laravel] Create file controller in Laravel.
Để tạo file controller trong laravel chúng ta có thể dùng câu lệnhbạn sẽ để ý sự khác biết của 2 command nhes Links tài liệu tham khảo:https://laravel.com/docs/8.x/controllers#resource-controllers
[Laravel – Js] Laravel call/show JS flexibly
Case study ở đây là: khi ở page list học sinh thì mới cần load các js liên quan đến datatablesCòn ở bảng chi tiết học sinh thì mình ko cần load js liên quan đến datatables trong PHP hay laravel làm ntn nhỉ? 1) Using if/else 2) yield – section ở cuối file layout…
[Helm chart] Discorverting “with” in helm chart – Kubernetes
Giờ chúng ta cùng tìm hiếu các sử dụng “with” trong helm chart của kubernetes links gốc để các bạn tham khảo.https://helm.sh/docs/chart_template_guide/control_structures/#modifying-scope-using-with Cú pháp with thì giống như là if values.yaml của mình như sau: thực hiện:helm template ./ –values=values.yaml
[Jenkins] Scripted Pipeline lesson 19: Triggers _ Upstream
Post này demo thực hiện việc job A sau khi chạy success thì trigger cho job B chạy. Giả dụ job unit-test chạy thành công sẽ thực hiện build. Giờ mình tạo 1 job build he!! Giờ mình thực hiện ấn build bên job unit-test:
[Argo-Workflows] Lesson5: Output Parameter
Bài này đơn giản mình muốn show cho các bạn thấy cách:Bạn define 1 output-parameter của task A -> lấy output của task -> đưa vào input của task B Bạn khai báo output trong task3 rồi task4 lấy output của task3 làm input của task4
[Argo-Workflows] Lesson4: Script result – receive the output result of another task to make the input parameter.
Minh show cho các bạn trước yaml nhuôn. Bạn sẽ thấy là task3 nó output ra “Print result” -> task4 lấy output của task3 đưa vào input parameter của task4 Khi run thì mình bị lỗi như sau: Dịch ra trong role đang thiếu verbs: patch giờ bạn thêm nó vào là ok. Nếu anh/em…
[Argo-Workflows] Lesson3: Argo CLI and Input Parameters
Bài của chúng ta hôm nay là sử dụng Argo CLI trên máy client và đưa data vào input Workflows Install Argo CLI to your machine. Đâu tiên chúng ta cài đặt và tìm hiều Argo CLIhttps://github.com/argoproj/argo-workflows/releases Nếu như mình run trên linux: Input Parameters Ý tưởng là chúng đưa data vào file yaml workflows…
Read More “[Argo-Workflows] Lesson3: Argo CLI and Input Parameters” »
[Spinnaker/K8s] Add many Kubernetes clusters into spinnaker.
1) Spinnaker was install by helm chart. Hiện tại mình đã hướng dẫn các bạn install Spinnaker bằng helm chart có sẵn: 1.1) add kubernetes into spinnaker(helm chart) Vậy làm sao để cho spinnaker quản lý được nhiều cluster k8s. Bước 1 create 1 secret trên namespace đã cài đặt spinnakerBạn cần show contexts trong…
Read More “[Spinnaker/K8s] Add many Kubernetes clusters into spinnaker.” »
[Minio] Install MinIO on Kubernetes through minio-operator
GIờ mình cần cài minio cho argo workflows lưu log. Reference Links:https://docs.min.io/minio/k8s/reference/minio-kubectl-plugin.html#kubectl-minio-inithttps://thenewstack.io/how-minio-brings-object-storage-service-to-kubernetes/ trước tiên bạn cần lên đây để tìm các release mới nhất:https://github.com/minio/operator/releases sau khi deploy thành công thì chúng ta mở UI lên Bạn sài cmd dưới này để lấy token Ở trên namespace argo nó tạo 1 đống secret tác giả cũng…
Read More “[Minio] Install MinIO on Kubernetes through minio-operator” »