[AWS] If Ec2 connects to S3, Will it go through the internet or the internal network of AWS?
ChatGPT: When an Amazon EC2 instance needs to access Amazon S3, the traffic will typically stay within the internal AWS network rather than going out to the public internet. This is because Amazon S3 and Amazon EC2 are both services provided by AWS, and AWS provides private connectivity between these services through its Virtual Private…
[Argo-Workflows] Lesson9: Secrets as mounted volumes
Bài này chúng ta sẽ mount secret thành volume trong workflow và apply cho container. Đầu tiên thì bạn define volume: Tiếp theo là mount volume vào container:
[Argo-Workflows] Lesson8: Secrets as environment variables
Bài này chúng ta tìm hiểu các để bạn lưu sensitive value và đưa nó vào workflow Mình thực hiện lưu value trong secret của k8s. Và đây là file workflow.
Policies as Code in Kubernetes using jsPolicy
refer: https://medium.com/nerd-for-tech/policies-as-code-in-kubernetes-using-jspolicy-8d358d064bfd DevSecops in Kubernetes using jsPolicy Kubernetes clusters are now everywhere. To run an ML Model you need a Kubernetes cluster, you want to run Data analytics you need a Kubernetes cluster, to deploy your frontend application, backend application, or any type of application you’d need a Kubernetes cluster. But is your cluster secured?…
[Argo-Workflows] Lesson7: Artifact
When K8s pods are stuck mounting large volumes
refer:https://blog.devgenius.io/when-k8s-pods-are-stuck-mounting-large-volumes-2915e6656cb8 Recently we ran into the following problem with our Loki deployment on AWS/EKS. On every deployment or restart of a Loki Pod, mounting the persistent volume took longer and longer. It started with a few minutes delay and ended up with nearly 25 minutes on our production cluster. Having no solution for this we…
Read More “When K8s pods are stuck mounting large volumes” »
[Argo-Workflows] Lesson6: Output Parameter File
Chà chà đã quá lâu chúng ta trờ lại học Argo Workflows Ở bài 5 chúng ta chuyền value từ task này sang task khác thông qua Output Parameter Ở bài sáu thì chúng truyền parameter bằng nội dung trong file. Bạn để ý task3 nó sẽ thực hiện các action được define in template:…
Read More “[Argo-Workflows] Lesson6: Output Parameter File” »
[DataDog] How does DataDog collect metrics from the Prometheus exporter endpoint
1) Introduce the design architecture Mô hình bạn có thể thấy như hình bên dưới. Thì mình dùng datadog agent trên k8s để collect metrics của cloudwatchNhưng mà datadog agent không để đọc trực tiếp vào Cloudwatch nên mình sẽ sử dụng 1 opensource của prometheus là prometheus cloudwatch exporter để get metrics từ cloud…
Read More “[DataDog] How does DataDog collect metrics from the Prometheus exporter endpoint” »
[Datadog/Tracing] Apply the tracing datadog for PHP or WordPress.
1) Configure the datadog agent to receive the APM data. Như mình đã nói thì datadog cho chúng ta free.Và hiện tại mình đang dụng datadog để monitor cluster k8s(home lab), log (stdout). tiếp mình sẽ setup tracing trên datadog. Enable datadog via helm chart. thì chúng ta sẽ cần phải config helm như sau…
Read More “[Datadog/Tracing] Apply the tracing datadog for PHP or WordPress.” »