Từ Vựng Kubernetes — Thuật Ngữ K8s Dành Cho Developer

Kubernetes (K8s) là nền tảng orchestration container phổ biến nhất hiện nay. Thuật ngữ K8s khá nhiều và đặc thù, nên nếu bạn mới bắt đầu sẽ thấy hơi “ngợp”. Bài này giúp bạn nắm rõ 14 thuật ngữ cốt lõi để đọc docs và làm việc với K8s tự tin hơn. ☸️ 🔹 Đơn vị cơ bản English IPA Tiếng Việt Example pod /pɒd/ pod (đơn vị nhỏ nhất trong K8s) Each pod runs one or more containers that share the same network namespace. node /noʊd/ node (máy chủ vật lý hoặc ảo) The scheduler assigns pods to a node based on available resources. namespace /ˈneɪmspeɪs/ không gian tên (phân chia tài nguyên) Create a separate namespace for each team to isolate their resources. manifest /ˈmænɪfɛst/ tệp khai báo (YAML config) Apply the manifest file to create the deployment using kubectl apply -f. 🔹 Workload & Scaling English IPA Tiếng Việt Example deployment /dɪˈplɔɪmənt/ triển khai (quản lý pod) The deployment ensures three replicas of the API server are always running. replica set /ˈrɛplɪkə sɛt/ bộ bản sao (duy trì số lượng pod) The replica set automatically creates a new pod if one crashes. horizontal pod autoscaler /ˌhɒrɪˈzɒntl pɒd ˌɔːtoʊˈskeɪlər/ bộ tự động mở rộng pod theo chiều ngang (HPA) The horizontal pod autoscaler scales up to 10 pods when CPU exceeds 80%. 🔹 Networking & Config English IPA Tiếng Việt Example service /ˈsɜːrvɪs/ dịch vụ (expose pod ra mạng) Create a service of type LoadBalancer to expose the app to the internet. ingress /ˈɪnɡrɛs/ điểm vào (quản lý traffic HTTP) Configure an ingress rule to route /api requests to the backend service. configmap /kənˈfɪɡmæp/ bản đồ cấu hình (lưu config dạng key-value) Store the database URL in a configmap instead of hardcoding it in the container. secret /ˈsiːkrɪt/ bí mật (lưu thông tin nhạy cảm) Put the API key in a Kubernetes secret and mount it as an environment variable. persistent volume /pərˈsɪstənt ˈvɒljuːm/ ổ đĩa bền vững (lưu trữ lâu dài) Attach a persistent volume to the database pod so data survives restarts. 🔹 Công cụ quản lý English IPA Tiếng Việt Example helm /hɛlm/ helm (trình quản lý package K8s) Use Helm charts to deploy complex applications with a single command. kubectl /ˌkuːb ˈkʌtl/ kubectl (CLI quản lý K8s) Run **kubectl** get pods to list all running pods in the current namespace. 💡 Mẹo ghi nhớ Pod giống như một “căn phòng” chứa 1 hoặc nhiều container cùng chia sẻ mạng và storage. Hầu hết pod chỉ chạy 1 container. Service vs Ingress: Service expose pod trong cluster (internal), Ingress expose ra ngoài internet (external) với routing rules. ConfigMap vs Secret: Cùng lưu config, nhưng Secret được mã hóa base64 và có cơ chế bảo mật riêng — dùng cho password, API key, certificate. 📝 Bài tập Điền từ thích hợp vào chỗ trống: ...

02/02/2023 · 4 phút · 657 từ · Cuong TQ

Từ Vựng Docker — Thuật Ngữ Container Mà Developer Cần Biết

Docker đã trở thành công cụ không thể thiếu trong workflow của developer hiện đại. Dù bạn đang build microservices hay chỉ muốn setup môi trường dev nhanh gọn, việc hiểu rõ thuật ngữ Docker bằng tiếng Anh sẽ giúp bạn đọc docs, communicate với team quốc tế tự tin hơn rất nhiều. Cùng tìm hiểu nhé! 🐳 🔹 Khái niệm cơ bản English IPA Tiếng Việt Example image /ˈɪmɪdʒ/ ảnh (bản mẫu chỉ đọc) We need to pull the latest image from Docker Hub before deploying. container /kənˈteɪnər/ container (thể hiện đang chạy của image) The container crashed because it ran out of memory. layer /ˈleɪər/ lớp (tầng trong image) Each instruction in a Dockerfile creates a new layer in the image. tag /tæɡ/ thẻ (nhãn phiên bản) Always use a specific tag like v1.2.3 instead of latest in production. 🔹 Lưu trữ & Mạng English IPA Tiếng Việt Example volume /ˈvɒljuːm/ ổ đĩa ảo (lưu trữ persistent) Mount a volume to persist database data between container restarts. network /ˈnetwɜːrk/ mạng (kết nối giữa các container) Create a custom network so the API container can talk to the database container. port mapping /pɔːrt ˈmæpɪŋ/ ánh xạ cổng Use port mapping -p 8080:80 to expose the container’s port 80 on the host’s port 8080. 🔹 Dockerfile & Build English IPA Tiếng Việt Example Dockerfile /ˈdɒkərfaɪl/ tệp cấu hình Docker The Dockerfile defines all the steps needed to build our application image. build context /bɪld ˈkɒntekst/ ngữ cảnh build (thư mục gửi đến Docker daemon) Keep the build context small by using a .dockerignore file. entrypoint /ˈentripɔɪnt/ điểm khởi chạy Set the entrypoint to node server.js so the container starts the app automatically. CMD /siː.ɛm.diː/ lệnh mặc định The CMD instruction provides default arguments that can be overridden at runtime. multi-stage build /ˌmʌlti steɪdʒ bɪld/ build nhiều giai đoạn Use a multi-stage build to keep the final image small by discarding build dependencies. 🔹 Registry & Orchestration English IPA Tiếng Việt Example registry /ˈredʒɪstri/ kho lưu trữ image We pushed the image to our private registry on AWS ECR. compose /kəmˈpoʊz/ biên soạn (Docker Compose — công cụ quản lý multi-container) Define all services in a compose file and run them with docker compose up. 💡 Mẹo ghi nhớ Image vs Container: Image giống như class trong OOP, còn container giống như instance — image là bản thiết kế, container là thứ đang chạy thực tế. Entrypoint vs CMD: Entrypoint là “chương trình chính” luôn chạy, CMD là “tham số mặc định” có thể ghi đè. Nhớ: Entry = cửa vào bắt buộc, CMD = command tùy chọn. Layer: Mỗi dòng trong Dockerfile = 1 layer. Gộp các RUN command lại bằng && để giảm số layer → image nhỏ hơn. 📝 Bài tập Điền từ thích hợp vào chỗ trống: ...

30/01/2023 · 4 phút · 642 từ · Cuong TQ