[Terraform/Init] Starting to learn Terraform easily.
1) Install terraform. Đầu tiên chúng ta cần download terraform.https://www.terraform.io/downloads Bước tiếp theo là bạn đi vào thư mục giải nén và gõ ./terraform là sẽ ok rồi nhé! Hoặc nếu bạn cần thận có thể add thêm Environment Windows để gõ ở chỗ nào cũng được Bạn phải khởi động lại mấy để có…
Read More “[Terraform/Init] Starting to learn Terraform easily.” »
[Spinnaker] Spin CLI
Cái đặt spin cli trên ubuntu:bạn có thể tham khảo link này: https://spinnaker.io/docs/setup/other_config/spin/#install-spin 1) Install Spin CLI and config it to integrate with Google OAuth2 Cũng giống như bao app cli khác chúng ta cần 1 file config để authen. Dưới đây là file config example:https://github.com/spinnaker/spin/blob/master/config/example.yaml Mình sẽ focus vào oauth2 với google. xong kết…
[Cilium/Hubble] Research together and install cilium instead of using kube-proxy and other CNI providers.
Mình biết đến Cilium là do các anh bên infra trong công ty đang có plan POC and migrate các workload sang dataplane-v2 on GKE. Và mình có thấy 1 dashboard cũng hay hay kiểu giống giống như kiali. 1) A few researching first. Điều đầu tiên trong link này dưới:https://cloud.google.com/kubernetes-engine/docs/how-to/dataplane-v2You can enable GKE Dataplane…
[APM/Elastic] Install APM Elastic inside container WordPress.
Hôm qua mình mới khám phá thêm thanh niên khá hay ho. Đó là APM trong họ hàng nhà ElasticElastic APM is an application performance monitoring system built on the Elastic Stack. It allows you to monitor software services and applications in real-time, by collecting detailed performance information on response time for incoming requests, database queries,…
Read More “[APM/Elastic] Install APM Elastic inside container WordPress.” »
[Golang] Checking a string inside or in another string by Golang
Ý tưởng là như sau:Bạn có 1 string A: “chào mừng bạn đã đến với nimtechnology.com” và bạn muốn kiểm tra string nimtechnology có nằm trong string A hay ko? reference link:Golang String Contains: How To Use Contains() Function In Go output:
[Golang] Writing file in Golang
Bài này chỉ đơn giản tạo 1 file rồi ghi vào file đó 1 nội dung đó bằng golang Có 1 cái chú ý:Nếu bạn ghi nhiều dòng vào 1 file bạn ko nên ghi từng dòng mà hãy sử dụng “+=” để gộp nhiều dòng lại thành 1 nội dụng rồi hẵng ghi file…
[Golang] Split or Cut a string many small pieces with Golang
Ý tưởng ở đây bạn có 2 chuỗi và ở giữa chuỗi có 1 số ký tự đặc biệt như: “, . / _ -” phẩy chấm xẹc đồ! nimtechnology.com => bạn muốn tánh thành nimtechnology và com để phân tíchta có thể gọi là split(tách) hoặc cắt(cút) chuỗi trong golang! refrence links:https://www.geeksforgeeks.org/how-to-split-a-string-in-golang/ Sau đây…
Read More “[Golang] Split or Cut a string many small pieces with Golang” »
[Golang] How do you read each line inside a file?
Hôm nay vọc vạch tý về golangMình có 1 file giờ mình có 1 yêu cấu làm thể lấy được nội dung từng dòng bên trong file đó! reference link:https://www.geeksforgeeks.org/how-to-read-a-file-line-by-line-to-string-in-golang/ Xin phép lưu code xuống:
[Jenkins] Using pod template to run Jenkins agent on Kubernetes.
Lại là 1 ngày đẹp trời mình run pipeline sau: workspaceVolume: persistentVolumeClaimWorkspaceVolume(claimName: ‘jenkins-controller’,readOnly: false) Giờ chúng ta làm sao để config workspaceVolume.Đầu tiên bạn xem con jenkins controller đang được config với PVC nào? Nếu bạn gặp lỗi!!!! Timed out waiting for websocket connection. You should increase the value of system property https://gvasanka.medium.com/workaround-lets-solve-the-jenkins-slave-connection-issue-with-the-jenkins-kubernetes-plugin-b0fb78f9aade Bạn có…
Read More “[Jenkins] Using pod template to run Jenkins agent on Kubernetes.” »