Devopsskills
แบ่งปันสาระความรู้จากประสบการณ์ทำงานในวงการ DevOps
05/11/2023
เนื่องจากมีหลาย ๆ ท่านได้ถามกันเข้ามาว่าถ้ามีแค่เครื่องคอมพิวเตอร์เครื่องเดียวเราจะสามารถทำ Kubernetes ขึ้นมาใช้งานได้หรือไม่ คำตอบคือทำได้ครับ ผมได้สร้าง video สอนทำอยู่ในคลิปนี้แล้วครับ
คอมพิวเตอร์เครื่องเดียวก็มี Kubernetes ได้ โดยเราจะทำการสร้าง Rancher Kubernetes Engine โดยให้ Rancher ที่เป็นตัวบริหารจัดการ Kubernetes cluster นั้นอยู่ในเครื่อง VM เครื่องเดียวกันกั...
31/10/2023
𝑲𝒖𝒃𝒆𝒓𝒏𝒆𝒕𝒔 𝑪𝒉𝒆𝒂𝒕 𝑺𝒉𝒆𝒆𝒕
More ☞ https://morioh.com/p/9769e022b08b?f=5cb7d89d660c8335951ca454
30/10/2023
An API Gateway is a server that acts as a single entry point for managing, aggregating, and routing API requests.
It's the key to efficiently handling API traffic, ensuring security, and optimizing performance. 🚀
The API Gateway Architecture consists of several layers, each serving a unique purpose. Here are top 4 layers -
1️⃣ 𝗡𝗲𝘁𝘄𝗼𝗿𝗸 𝗦𝗲𝗰𝘂𝗿𝗶𝘁𝘆 𝗟𝗮𝘆𝗲𝗿 🛡️:
This layer takes care of protecting your API infrastructure from threats. It enforces security policies such as SSL/TLS, DDoS protection, and rate limiting, ensuring that your APIs are not vulnerable to unauthorized access or misuse.
2️⃣ 𝗔𝗱𝗺𝗶𝗻𝗶𝘀𝘁𝗿𝗮𝘁𝗶𝘃𝗲 𝗟𝗮𝘆𝗲𝗿 🛠️:
Managing APIs is no small task. That's where the Administrative Layer comes in. It provides features for API versioning, monitoring, logging, and analytics. With these tools, you can keep track of API usage, diagnose issues, and gain insights into how your APIs are performing.
3️⃣ 𝗔𝗰𝗰𝗲𝘀𝘀 𝗟𝗮𝘆𝗲𝗿 🗝️:
Controlling who gets access to your APIs is crucial. The Access Layer handles authentication, authorization, and access control policies. Whether it's through API keys, OAuth tokens, or other mechanisms, you have the power to decide who can access your APIs and what they can do.
4️⃣ 𝗧𝗿𝗮𝗻𝘀𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻 𝗟𝗮𝘆𝗲𝗿 🔄:
APIs come in all shapes and sizes, and it's not always easy to make them work together. The Transformation Layer helps by providing tools for data transformation and protocol conversion. Whether you need to convert JSON to XML, handle different authentication schemes, or support legacy systems, this layer has got you covered.
𝗕𝗲𝗻𝗲𝗳𝗶𝘁𝘀 𝗼𝗳 𝗮𝗻 𝗔𝗣𝗜 𝗚𝗮𝘁𝗲𝘄𝗮𝘆
🚀 Performance Boost
🛡️ Enhanced Security
🧩 Simplified Microservices
💡 Unified API Management
𝗧𝘆𝗽𝗲𝘀 𝗼𝗳 𝗔𝗣𝗜 𝗚𝗮𝘁𝗲𝘄𝗮𝘆
✅ Edge Gateways: Placed on the outer layer of your network, they handle public APIs, focusing on load balancing, security, and caching.
✅ Internal Gateways: Catering to internal APIs, they help optimize inter-service communication and manage internal API traffic.
✅ Micro-Gateways: Lightweight and tailored for specific use cases, they're deployed in close proximity to specific services, often within containerized environments.
𝗣𝗼𝗽𝘂𝗹𝗮𝗿 𝗔𝗣𝗜 𝗚𝗮𝘁𝗲𝘄𝗮𝘆 𝗧𝗼𝗼𝗹𝘀
🔵 Amazon API Gateway
🟢 Kong
🔴 Apigee Edge
🔶 Azure API Management
🟣 Tyk
29/10/2023
🔑How HTTPS Encryption Works
28/10/2023
ใคร ๆ ก็สามารถสร้าง Kubernetes Cluster ขึ้นมาใช้งานเองง่าย ๆ ด้วย Rancher
ผมได้ทำวีดีโอเสนอวิธีการใช้งาน Rancher web UI เพื่อบริหารจัดการ Rancher Kubernetes Engine โดยตัว Rancher เองจะ start ขึ้นมาจาก docker-compose อีกทีหนึ่ง
เราจำลองการสร้างเครื่อง VM โดยสร้างจาก Google Compute Engine แทนการสร้างเครื่องบน On-Prem
VDO - https://www.youtube.com/watch?v=blOVqxDDzVU
Github - https://github.com/devops-skill-experts/rancher-demo
ใคร ๆ ก็สร้าง Kubernetes คลัสเตอร์ได้ด้วย Rancher ใคร ๆ ก็สร้าง Kubernetes คลัสเตอร์ได้ด้วย Rancher - เราจะทำการสร้าง Kubernetes Cluster โดยใช้ Rancher ผ่านทาง web UI เพื่อเป็นการ simulate การใช้งาน...
19/10/2023
DNS system hierarchy .
18/10/2023
มาใช้งาน Helm กันครับสำหรับติดตั้ง application ต่าง ๆ บน Kubernetes โดยผมได้สาธิตการติดตั้งโปรแกรม PostgreSQL และ PgWeb บน Kubernetes อย่างง่าย ๆ ด้วย Helm ครับ
มาทำความรู้จักกับ Helm เพื่อใช้สำหรับการ deploy applications บน Kubernetes กัน มาทำความรู้จักกับ Helm เพื่อใช้สำหรับการ deploy applications บน Kubernetes กัน, การติดตั้ง application ต่าง ๆ บน Kubernetes จะไม่ใช่เรื่องยากอีกต....
05/10/2023
ห่างหายกันไปนานครับ พอดีช่วงนี้งานยุ่ง ๆ ทำ prototype ตัวเว็บ https://promjodd.com ซึ่งเราเอามาไว้ทำพวก License Plate Recognition ก็เลยคิดว่าอยากนำเสนอเรื่องการทำ CI/CD เพื่อให้การทำ software development ของเราสะดวกสบาย มีความเป็น automation มากขึ้น - ตามชมได้ https://www.youtube.com/watch?v=aRwJa1qsvSA เลยครับ
มาทำ CI/CD เพื่อให้ชีวิตง่ายขึ้นสำหรับการทำ software development กัน มาใช้ Github Action ในการทำ CI/CD เพื่อให้ชีวิตง่ายขึ้นสำหรับการทำ software development กันGithub - https://github.com/PROMDevOps/LPR-ServicesSonar - https:/...
พอดีมีงานหนึ่งที่ทำให้ลุกค้าโดยการนำ log จาก firewall มาแสดงผลเป็น attack map ดูแบบ real-time ก็เลยไป fork งานหนึ่งมาจาก GitHub แล้วเอามาโมดิฟายเพิ่มเติมนิดหน่อยเพื่อให้เอาไปรันอยู่บน Kubernetes ได้
ก็เลยอยากเอาโค้ดที่ปรับ ๆ แก้มาแชร์กันบ้างครับ
https://github.com/its-software-services-devops/geoip-attack-map
19/09/2023
เป้าหมายของเราคือการทำ test coverage ให้ครบ 100% ดูแล้วงานนี้หนทางยังอีกยาวไกล สู้ต่อไป เหนื่อยวันนี้ สบายวันหน้า
17/09/2023
พอดีมีงานชิ้นหนึ่งที่ต้องมีการเก็บ user/password เป็น database ของตัวเอง ก็เลยนึกถึงอดีตที่เคยใช้ตัว Keycloak เพื่อเอามาทำเป็น Identity Provider ซึ่งสามารถช่วยลดเวลาในการพัฒนาระบบเก็บ user/password ลงไปได้มากเลยครับ แถมยังมั่นใจในเรื่อง security practice มากกว่าที่จะต้องมานั่งเขียนโปรแกรมเองครับ....
ในคลิปวีดีโอนี้ ผมได้ทำการใช้งาน Keycloak ที่ผมติดตั้งขึ้นมาเอง แล้วใช้โปรแกรมตัวที่ชื่อ oauth.tools (https://oauth.tools) มาใช้ในการอธิบายกระบวนการรับส่งค่าไปยัง Keycloak อีกทีหนึ่ง....
https://www.youtube.com/watch?v=g6QusDptDuA
มาทำความรู้จักกับ Keycloak กัน มาทำความรู้จักกับ Keycloak กัน, ในวีดีโอนี้เราได้ทำการติดตั้ง Keycloak ไว้แล้วโดยนำมาใช้งานเป็น Identity Provider สำหรับเก็บ user/pass...
06/09/2023
พอดีได้รับงานมาตัวหนึ่ง ลูกค้าต้องการมีเครื่อง sFTP เซิร์ฟเวอร์ เพื่อให้กล้อง CCTV อัพโหลดภาพแต่ละ snapshot ขึ้นมาเก็บไว้ โดยจะมี job อีกตัวทำหน้าที่นำรูปภาพไปประมวลผลต่อ.
ผมได้ทำการติดตั้ง sFTP server อยู่บน Kubernetes ด้วยเลยเพื่อความสะดวก แล้วก็ใช้ Google Cloud Storage (GCS) เป็น backend storage เพื่อทำการเก็บไฟล์ภาพที่อัพโหลดมาอีกทีหนึ่ง.
Source code ตัวอย่างผมเก็บไว้ที่ github นี้
https://github.com/devops-skill-experts/k3s-gcs-sftp.
คลิปวีดีโออธิบายวิธีการใช้งานดูได้ตามนี้เลยครับ
https://www.youtube.com/watch?v=Sd3MTRY5Mkk..
GitHub - devops-skill-experts/k3s-gcs-sftp Contribute to devops-skill-experts/k3s-gcs-sftp development by creating an account on GitHub.
คลิกที่นี่เพื่อเป็นสมาชิก?
เว็บไซต์
ที่อยู่
55 สุทธิสารแยก 1
Din Daeng
10400