Tutorial Tutorial Tutorial Cloudflare One Cloudflare One Cloudflare One ~10 phút ~10 min ~10 នាទី Đồng bộ 2026-06-10 Synced 2026-06-10 ធ្វើសមកាល 2026-06-10

Kết nối thông qua Cloudflare Access bằng kubectl Connect through Cloudflare Access using kubectl ការភ្ជាប់តាម Cloudflare Access ដោយប្រើ kubectl

Hướng dẫn chi tiết đồng bộ từ docs Cloudflare — mỗi section có backlink tới đúng vị trí trên trang gốc. Detailed guide synced from Cloudflare docs — each section links to the matching anchor on the official page. មគ្គុទ្ទេសក៍លម្អិតធ្វើសមកាលពី docs Cloudflare — ផ្នែកនីមួយៗមានតំណទៅទីតាំងត្រូវគ្នានៅទំព័រផ្លូវការ។

← Danh mục ← Catalog ← បញ្ជី

Giải thích nhanh Quick context បរិបទរហ័ស

Thuộc Cloudflare One — Zero Trust, truy cập an toàn và kiểm soát traffic người dùng/thiết bị. Tutorial «Kết nối through Cloudflare Access using kubectl» giúp bạn làm quen luồng triển khai thật — phù hợp đọc trước khi mở tài liệu gốc tiếng Anh. Đọc phần tóm tắt và lưu ý trước — sau đó mở docs gốc để copy lệnh và cấu hình chi tiết.

Connecting to Cloudflare's network using kubectl. Create a Zero Trust policy for your machine. Create an outbound-only connection between your machine and Cloudflared's network.

ការតភ្ជាប់ជាមួយបណ្តាញ Cloudflare ដោយប្រើ kubectl ។ បានបង្កើតគោលការណ៍ Zero Trust សម្រាប់ម៉ាស៊ីនរបស់អ្នក។ បានបង្កើតការតភ្ជាប់តែខាងក្រៅរវាងម៉ាស៊ីនរបស់អ្នកនិងបណ្តាញរបស់ Cloudflared ។

Lưu ý Note ចំណាំ

Lưu ý trước khi làm Notes before you start ចំណាំមុនពេលចាប់ផ្តើម

  • Đây là bản tóm tắt trên Orange Cloud Learning Hub — không thay thế tài liệu chính thức.
  • Luôn mở liên kết «Tài liệu gốc» bên dưới khi cần lệnh CLI, snippet code và ảnh minh họa đầy đủ.
  • Zero Trust thường cần quyền admin trên tenant Cloudflare One và IdP đã kết nối.
  • Docs Cloudflare cập nhật thường xuyên — đối chiếu ngày «Rà soát lần cuối» trên trang gốc khi triển khai production.
  • This is a summary on Orange Cloud Learning Hub — it does not replace the official documentation.
  • Open the Official docs link below for CLI commands, code snippets, and full screenshots.
  • Zero Trust typically requires Cloudflare One tenant admin access and a connected IdP.
  • Cloudflare docs change frequently — verify the Last reviewed date on the official page before production use.
  • នេះគឺជាការបញ្ជាក់អំពី Orange Cloud Learning Hub — វាគឺជាការផ្លាស់ប្តូរនៃឯកសារផ្លូវការ។
  • ចុចតំណភ្ជាប់ Docs Official នៅខាងក្រោមសម្រាប់ការបញ្ជា CLI, សៀវភៅកូដនិងរូបថតពេញលេញ។
  • Zero Trust ជាទូទៅតម្រូវការ Cloudflare One អ្នកគ្រប់គ្រងហិរញ្ញវត្ថុ access និង IdP ។
  • Cloudflare បានផ្លាស់ប្តូរជាធម្មតានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅពេលវេលានៅ។

Tài liệu gốc — rà soát lần cuối: almost 4 years ago Official docs — last reviewed: almost 4 years ago ឯកសារផ្លូវការ — ពិនិត្យចុងក្រោយ: almost 4 years ago

Overview Overview Overview

Phần «Tổng quan» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "Overview" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «Overview» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Bạn có thể kết nối với máy qua kubectl bằng cách sử dụng nền tảng Cloudflare của Zero Trust.
You can connect to machines over kubectl using Cloudflare's Zero Trust platform.
អ្នកអាចបណ្តាញជាមួយម៉ាស៊ីននៅលើ kubectl ដោយប្រើវេទិកា Zero Trust នៃ Cloudflare ។
This walkthrough covers how to:
This walkthrough covers how to:
This walkthrough covers how to:
  • Tạo một chính sách trong Cloudflare Access để bảo mật máy
  • Kết nối máy với mạng Cloudflare bằng kubectl
  • Kết nối từ máy khách
  • Build a policy in Cloudflare Access to secure the machine
  • Connect a machine to Cloudflare's network using kubectl
  • Connect from a client machine
  • បានបង្កើតគោលនយោបាយនៅក្នុង Cloudflare Access ដើម្បីសុវត្ថិភាពម៉ាស៊ីន
  • ការផ្លាស់ប្តូរកុំព្យូទ័រទៅលើបណ្តាញ Cloudflare ដោយប្រើ kubectl
  • ការភ្ជាប់ពីម៉ាស៊ីនអតិថិជន
Before you start
Before you start
Before you start
Time to complete:
Time to complete:
Time to complete:
30 phút
30 minutes
30 នាទី
---
---
---

Liên kết liên quan (docs Cloudflare) Related links (Cloudflare docs) តំណពាក់ព័ន្ធ (docs Cloudflare)

Tạo chính sách Access Create an Access policy ការបង្កើតគោលនយោបាយ Access

Phần «Tạo Access policy» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "Create an Access policy" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «ការបង្កើតគោលនយោបាយ Access» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
  1. Trong Cloudflare dashboard ↗, đi đến Zero Trust \> Access controls \> Applications.
  2. Chọn Create new application
  3. Chọn Self-hosted and private
  4. Chọn Add public hostname và input là một tên miền con. Đây sẽ là tên máy chủ nơi ứng dụng của bạn sẽ có sẵn cho người dùng.
  5. Create a new policy để kiểm soát ai có thể truy cập ứng dụng, hoặc chọn các chính sách hiện có.
  6. Làm theo phần còn lại self-hosted application creation steps để xuất bản ứng dụng.
  1. In the Cloudflare dashboard ↗, go to Zero Trust \> Access controls \> Applications.
  2. Select Create new application.
  3. Select Self-hosted and private.
  4. Select Add public hostname and input a subdomain. This will be the hostname where your application will be available to users.
  5. Create a new policy to control who can reach the application, or select existing policies.
  6. Follow the remaining self-hosted application creation steps to publish the application.
  1. ក្នុង Cloudflare dashboard ↗ សូមចូលទៅទៅ Zero Trust \> Access controls \> Applications ។
  2. សូមជ្រើស Create new application ។
  3. សូមជ្រើស Self-hosted and private ។
  4. ជ្រើសរើស Add public hostname និង input ជាឧបករណ៍។ នេះនឹងជាឈ្មោះក្រុមហ៊ុនផ្គត់ផ្គង់ដែលកម្មវិធីរបស់អ្នកនឹងអាចរកបានសម្រាប់អ្នកប្រើ។
  5. Create a new policy ដើម្បីត្រួតពិនិត្យអ្នកដែលអាចចូលទៅក្នុងកម្មវិធីឬជ្រើសរើសគោលនយោបាយដែលមាន។
  6. បន្ទាប់ពី self-hosted application creation steps ដើម្បីបង្ហាញកម្មវិធីនេះ។

Liên kết liên quan (docs Cloudflare) Related links (Cloudflare docs) តំណពាក់ព័ន្ធ (docs Cloudflare)

Cài đặt cloudflared Install cloudflared ទាញយក CloudFlared

Phần «Cài đặt cloudflared» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "Install cloudflared" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «ទាញយក CloudFlared» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Cloudflare Tunnel tạo ra một kết nối an toàn, chỉ ra ngoài giữa máy này và mạng của Cloudflare. Với một mô hình chỉ ra ngoài, bạn có thể ngăn chặn bất kỳ access trực tiếp đến máy này và khóa bất kỳ điểm xâm nhập được phơi bày bên ngoài. Và với điều đó, không có cổng tường lửa mở.
Cloudflare Tunnel creates a secure, outbound-only connection between this machine and Cloudflare's network. With an outbound-only model, you can prevent any direct access to this machine and lock down any externally exposed points of ingress. And with that, no open firewall ports.
Cloudflare Tunnel បានបង្កើតការតភ្ជាប់ដែលមានសុវត្ថិភាពនិងបញ្ចូលគ្នានៅក្នុងរវាងម៉ាស៊ីននេះនិងបណ្តាញរបស់ Cloudflare ។ ជាមួយនឹងម៉ូដែលបញ្ចូលគ្នានេះអ្នកអាចជួសជុល access ដែលផ្ទាល់ទៅនឹងម៉ាស៊ីននេះនិងកាត់បន្ថយទីផ្សារចូលដែលបង្ហាញពីខាងក្រៅ។ ដូច្នេះមិនមានផ្លាស់ប្តូរផ្លាស់ប្តូរផ្លាស់ប្តូរ firewall ។
Cloudflare Tunnel được thực hiện thông qua một daemon nhẹ từ Cloudflare được gọi là cloudflared. Tải xuống và cài đặt cloudflared trên máy DigitalOcean bằng cách làm theo các hướng dẫn được liệt kê trên trang Downloads.
Cloudflare Tunnel is made possible through a lightweight daemon from Cloudflare called cloudflared. Download and install cloudflared on the DigitalOcean machine by following the instructions listed on the Downloads page.
Cloudflare Tunnel ត្រូវបានធ្វើឱ្យមានប្រសិទ្ធិភាពដោយសារតែ DAEMON ទាបពី Cloudflare ដែលគេស្គាល់ថា cloudflared ។ ទាញយកនិងដំឡើង cloudflared នៅលើម៉ាស៊ីន DigitalOcean ដោយធ្វើដូចម្តេចដែលបានបង្ហាញនៅលើទំព័រ Downloads ។

Liên kết liên quan (docs Cloudflare) Related links (Cloudflare docs) តំណពាក់ព័ន្ធ (docs Cloudflare)

Cloudflared xác thực Authenticate cloudflared អាកាសធាតុ Cloudflared

Phần «Authenticate cloudflared» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "Authenticate cloudflared" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «អាកាសធាតុ Cloudflared» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Chạy lệnh sau để xác thực cloudflared vào tài khoản Cloudflare của bạn.
Run the following command to authenticate cloudflared into your Cloudflare account.
ការដំឡើងជំហានខាងក្រោមដើម្បីត្រួតពិនិត្យ Cloudflared ទៅលើគណនីរបស់អ្នក Cloudflare ។
Cửa sổ Terminal
Terminal window
បង្វិល Terminal
text
cloudflared tunnel login
cloudflared sẽ mở ra một cửa sổ trình duyệt và nhắc bạn đăng nhập vào tài khoản Cloudflare của bạn. Nếu bạn đang làm việc trên máy mà không có trình duyệt, hoặc một cửa sổ trình duyệt không khởi động, bạn có thể sao chép URL từ đầu ra dòng lệnh và truy cập URL trong một trình duyệt trên bất kỳ máy nào.
cloudflared will open a browser window and prompt you to log in to your Cloudflare account. If you are working on a machine that does not have a browser, or a browser window does not launch, you can copy the URL from the command-line output and visit the URL in a browser on any machine.
cloudflared នឹងផ្លាស់ប្តូរបង្វិលបង្វិលបង្វិលបង្វិលបង្វិលបង្វិលបង្វិលបង្វិលបង្វិលបង្វិលបង្វិលបង្វិលបង្វិលបង្វិលបង្វិលបង្វិលបង្វិលបង្វិលបង្វិលបង្វិលបង្វិលបង្វិលបង្វិលបង្វិល ប្រសិនបើអ្នកកំពុងធ្វើការនៅលើម៉ាស៊ីនដែលមិនមានបណ្តាញឬបង្វិលបណ្តាញមិនបើកដំណើរការអ្នកអាចកាត់បន្ថយ URL ពីការនាំចេញបន្ទាត់គោលបំណងហើយស្វែងរក URL នៅក្នុងបណ្តាញនៅលើម៉ាស៊ីនណាមួយ។
Chọn bất kỳ tên máy chủ nào được trình bày trong danh sách. Cloudflare sẽ phát hành một chứng chỉ được bao gồm trong tài khoản của bạn. Bạn không cần phải chọn tên máy chủ cụ thể nơi bạn sẽ phục vụ Tunnel.
Choose any hostname presented in the list. Cloudflare will issue a certificate scoped to your account. You do not need to pick the specific hostname where you will serve the Tunnel.
ជ្រើសរើសប្រព័ន្ធគ្រប់គ្រងដែលបានបង្ហាញនៅក្នុងគណនីនេះ។ Cloudflare នឹងបោះពុម្ពវិញ្ញាបនប័ត្រដែលមានតម្រូវការសម្រាប់គណនីរបស់អ្នក។ អ្នកមិនចាំបាច់ជ្រើសឈ្មោះក្រុមហ៊ុនផ្គត់ផ្គង់ពិសេសដែលអ្នកនឹងបម្រើ Tunnel ។

Tạo một Tunnel Create a Tunnel បានបង្កើត Tunnel

Phần «Tạo Tunnel» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "Create a Tunnel" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «បានបង្កើត Tunnel» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Tiếp theo, tạo tunnel với lệnh bên dưới.
Next, create a tunnel with the command below.
បន្ទាប់មកបង្កើត tunnel ជាមួយនឹងជម្រើសខាងក្រោម។
Cửa sổ Terminal
Terminal window
បង្វិល Terminal
text
cloudflared tunnel create <NAME>
Thay thế <NAME> bằng tên Tunnel. Tên này có thể là bất kỳ giá trị. Một Tunnel duy nhất cũng có thể phục vụ lưu lượng truy cập cho nhiều tên máy chủ đến nhiều dịch vụ trong môi trường của bạn, bao gồm một hỗn hợp các loại kết nối như SSH và HTTP.
Replacing <NAME> with a name for the Tunnel. This name can be any value. A single Tunnel can also serve traffic for multiple hostnames to multiple services in your environment, including a mix of connection types like SSH and HTTP.
ការផ្លាស់ប្តូរ <NAME> ដោយឈ្មោះសម្រាប់ Tunnel ។ ឈ្មោះនេះអាចជាតម្លៃណាមួយ។ មួយ Tunnel អាចផ្គត់ផ្គង់ការដឹកជញ្ជូនសម្រាប់ឈ្មោះហ្គេមជាច្រើនទៅកាន់សេវាកម្មជាច្រើននៅក្នុងបរិស្ថានរបស់អ្នក, រួមទាំងប្រភេទទំនាក់ទំនងដូចជា SSH និង HTTP ។
Lệnh này sẽ xuất ra một ID cho Tunnel và tạo ra một tệp xác thực liên quan. Bất cứ lúc nào bạn có thể liệt kê các đường hầm trong tài khoản của bạn bằng lệnh sau.
The command will output an ID for the Tunnel and generate an associated credentials file. At any time you can list the Tunnels in your account with the following command.
ការបញ្ជានេះនឹងនាំចេញ ID សម្រាប់ Tunnel និងបង្កើតឯកសារវិញ្ញាបនប័ត្រដែលមាន។ នៅពេលណាមួយអ្នកអាចបញ្ចូលគណនី Tunnels នៅក្នុងគណនីរបស់អ្នកដោយប្រើជម្រើសខាងក្រោម។
Cửa sổ Terminal
Terminal window
បង្វិល Terminal
text
cloudflared tunnel list

Cài đặt Tunnel Configure the Tunnel ទាញយក Tunnel

Phần «Cấu hình Tunnel» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "Configure the Tunnel" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «ទាញយក Tunnel» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Bây giờ bạn có thể configure the tunnel để phục vụ giao thông.
You can now configure the tunnel to serve traffic.
ឥឡូវនេះអ្នកអាច configure the tunnel ដើម្បីបម្រើការដឹកជញ្ជូន។
Tạo một tập tin YAML mà cloudflared có thể đạt được. Theo mặc định, cloudflared sẽ tìm kiếm tệp trong cùng một thư mục nơi cloudflared đã được cài đặt.
Create a YAML file that cloudflared can reach. By default, cloudflared will look for the file in the same folder where cloudflared has been installed.
បានបង្កើតឯកសារ YAML ដែល cloudflared អាចទទួលបាន។ ជាទូទៅ, cloudflared នឹងស្វែងរកឯកសារនៅក្នុងឯកសារដូចគ្នាដែល cloudflared ត្រូវបានដំឡើង។
Cửa sổ Terminal
Terminal window
បង្វិល Terminal
text
vim ~/.cloudflared/config.yml
Tiếp theo, cấu hình Tunnel, thay thế ID ví dụ bên dưới bằng ID của Tunnel được tạo ở trên. Ngoài ra, thay thế tên máy chủ trong ví dụ này bằng tên máy chủ của ứng dụng được cấu hình với Cloudflare Access.
Next, configure the Tunnel, replacing the example ID below with the ID of the Tunnel created above. Additionally, replace the hostname in this example with the hostname of the application configured with Cloudflare Access.
បន្ទាប់មកកំណត់ Tunnel ដោយផ្លាស់ប្តូរ ID សំរាប់ខាងក្រោមដោយ ID នៃ Tunnel ដែលបានបង្កើតឡើងនៅលើ។ លើសពីនេះទៀត, ការផ្លាស់ប្តូរឈ្មោះក្រុមហ៊ុនផ្គត់ផ្គង់នៅក្នុងឧទាហរណ៍នេះដោយឈ្មោះក្រុមហ៊ុនផ្គត់ផ្គង់នៃកម្មវិធីដែលបានកំណត់ជាមួយ Cloudflare Access ។
YAML
YAML
YAML
text
tunnel: 6ff42ae2-765d-4adf-8112-31c55c1551ef

credentials-file: /root/.cloudflared/6ff42ae2-765d-4adf-8112-31c55c1551ef.json


ingress:

  - hostname: azure.widgetcorp.tech

    service: tcp://kubernetes.docker.internal:6443

    originRequest:

      proxyType: socks

  - service: http_status:404

  # Catch-all rule, which responds with 404 if traffic doesn't match any of

  # the earlier rules

Liên kết liên quan (docs Cloudflare) Related links (Cloudflare docs) តំណពាក់ព័ន្ធ (docs Cloudflare)

Đường đến Tunnel Route to the Tunnel ផ្លូវទៅ Tunnel

Phần «Route to Tunnel» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "Route to the Tunnel" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «ផ្លូវទៅ Tunnel» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Bây giờ bạn có thể tạo một bản ghi DNS sẽ định tuyến lưu lượng truy cập đến Tunnel này. Nhiều bản ghi DNS có thể chỉ đến một Tunnel duy nhất và sẽ gửi lưu lượng truy cập đến dịch vụ được cấu hình miễn là tên máy chủ được xác định bằng ingress rule.
You can now create a DNS record that will route traffic to this Tunnel. Multiple DNS records can point to a single Tunnel and will send traffic to the configured service as long as the hostname is defined with an ingress rule.
ឥឡូវនេះអ្នកអាចបង្កើតកំណត់ DNS ដែលនឹងដំណើរការទៅ Tunnel នេះ។ អក្សរកាត់ DNS ច្រើនៗអាចបង្ហាញទៅ Tunnel មួយតែមួយហើយនឹងផ្ញើការដឹកជញ្ជូនទៅសេវាកម្មដែលបានកំណត់ដូច្នេះប្រសិនបើឈ្មោះក្រុមហ៊ុនផ្គត់ផ្គង់ត្រូវបានកំណត់ជាមួយ ingress rule ។
  1. Đăng nhập vào Cloudflare dashboard ↗ và đi đến trang DNS Records cho tên miền của bạn.
  1. Log in to the Cloudflare dashboard ↗ and go to the DNS Records page for your domain.
  1. សូមចូលទៅក្នុង Cloudflare dashboard ↗ និងចូលទៅក្នុងទំព័រ DNS Records សម្រាប់ឧបករណ៍របស់អ្នក។
  1. Chọn Add record Chọn CNAME làm loại bản ghi. Đối với Name, hãy chọn tên máy chủ mà bạn muốn tạo Tunnel. Điều này nên khớp với tên máy chủ của chính sách Access.
  2. Đối với Target, input là ID của bạn Tunnel tiếp theo là .cfargotunnel.com. Ví dụ:
  1. Select Add record. Choose CNAME as the record type. For Name, choose the hostname where you want to create a Tunnel. This should match the hostname of the Access policy.
  2. For Target, input the ID of your Tunnel followed by .cfargotunnel.com. For example:
  1. សូមជ្រើស Add record ។ សូមជ្រើស CNAME ជាប្រភេទសៀវភៅ។ សម្រាប់ Name, ជ្រើសឈ្មោះហ្គេមដែលអ្នកចង់បង្កើត Tunnel ។ នេះគួរតែត្រឹមត្រូវជាមួយឈ្មោះហ្គេមរបស់គោលការណ៍ Access ។
  2. សម្រាប់ Target, input គឺជា ID របស់អ្នក Tunnel បន្ទាប់ពី .cfargotunnel.com ។ ឧទាហរណ៍ :
text
6ff42ae2-765d-4adf-8112-31c55c1551ef.cfargotunnel.com
  1. Chọn Save
  1. Select Save.
  1. សូមជ្រើស Save ។

Liên kết liên quan (docs Cloudflare) Related links (Cloudflare docs) តំណពាក់ព័ន្ធ (docs Cloudflare)

Chạy Tunnel Run the Tunnel ទាញយក Tunnel

Phần «Chạy Tunnel» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "Run the Tunnel" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «ទាញយក Tunnel» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Bây giờ bạn có thể chạy Tunnel để kết nối dịch vụ mục tiêu với Cloudflare. Sử dụng lệnh sau đây để chạy Tunnel, thay thế <NAME> bằng tên được tạo cho Tunnel của bạn.
You can now run the Tunnel to connect the target service to Cloudflare. Use the following command to run the Tunnel, replacing <NAME> with the name created for your Tunnel.
ឥឡូវនេះអ្នកអាចដំណើរការ Tunnel ដើម្បីភ្ជាប់សេវាកម្មគោលដៅទៅ Cloudflare ។ ទាញយក Tunnel ដោយធ្វើឱ្យប្រសើរឡើង <NAME> ជាមួយនឹងឈ្មោះដែលបានបង្កើតឡើងសម្រាប់ Tunnel ។
Cửa sổ Terminal
Terminal window
បង្វិល Terminal
text
cloudflared tunnel run <NAME>
Chúng tôi khuyên bạn nên chạy cloudflared as a service được cấu hình để khởi động khi khởi động.
We recommend that you run cloudflared as a service that is configured to launch on start.
យើងផ្តល់អនុសាសន៍ឱ្យអ្នកដំណើរការ cloudflared as a service ដែលត្រូវបានកំណត់ដើម្បីចាប់ផ្តើមនៅពេលចាប់ផ្តើម។

Liên kết liên quan (docs Cloudflare) Related links (Cloudflare docs) តំណពាក់ព័ន្ធ (docs Cloudflare)

Kết nối từ máy khách Connect from a client machine ការភ្ជាប់ពីម៉ាស៊ីនអតិថិជន

Phần «Kết nối từ client machine» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "Connect from a client machine" section below — open the official docs link for full screenshots and configuration tabs.

អានផ្នែក «ការភ្ជាប់ពីម៉ាស៊ីនអតិថិជន» ខាងក្រោម — បើកតំណ docs ផ្លូវការសម្រាប់រូបភាព និង tab កំណត់។

Mở section docs gốc ↗ Open source section ↗ បើកផ្នែក docs ផ្លូវការ ↗
Bây giờ bạn có thể kết nối từ máy khách bằng cách sử dụng cloudflared.
You can now connect from a client machine using cloudflared.
ឥឡូវនេះអ្នកអាចតភ្ជាប់ពីម៉ាស៊ីនអតិថិជនដោយប្រើ cloudflared ។
Ví dụ này sử dụng máy tính xách tay macOS. Trên macOS, bạn có thể cài đặt cloudflared bằng lệnh sau bằng cách sử dụng Homebrew.
This example uses a macOS laptop. On macOS, you can install cloudflared with the following command using Homebrew.
ប្រព័ន្ធ ប្រតិបត្តិការ macOS Laptop ។ នៅលើ macOS អ្នកអាចដំឡើង cloudflared ជាមួយនឹងការបញ្ជាក់ដូចខាងក្រោមដោយប្រើ Homebrew ។
Cửa sổ Terminal
Terminal window
បង្វិល Terminal
text
brew install cloudflared
Chạy lệnh sau đây để tạo kết nối từ thiết bị đến Cloudflare. Bất kỳ cổng nào có thể được chỉ định.
Run the following command to create a connection from the device to Cloudflare. Any available port can be specified.
ការដំឡើងបញ្ហាខាងក្រោមដើម្បីបង្កើតការតភ្ជាប់ពីឧបករណ៍ទៅ Cloudflare ។ ទោះជាយ៉ាងណាក៏ដោយប្រព័ន្ធផ្សព្វផ្សាយគ្រប់គ្រងអាចត្រូវបានបញ្ជាក់។
Cửa sổ Terminal
Terminal window
បង្វិល Terminal
text
cloudflared access tcp --hostname azure.widgetcorp.tech --url 127.0.0.1:1234
Với dịch vụ này chạy, bạn có thể chạy lệnh kubectl và cloudflared sẽ khởi động một cửa sổ trình duyệt và yêu cầu người dùng xác thực với nhà cung cấp SSO của bạn. Sau khi xác thực, cloudflared sẽ phơi bày kết nối với máy khách tại URL địa phương được chỉ định trong lệnh.
With this service running, you can run a kubectl command and cloudflared will launch a browser window and prompt the user to authenticate with your SSO provider. Once authenticated, cloudflared will expose the connection to the client machine at the local URL specified in the command.
ជាមួយនឹងសេវាកម្មនេះធ្វើដំណើរការអ្នកអាចធ្វើដំណើរការការ kubectl និង cloudflared នឹងបើកដំណើរការបង្វិលបង្វិលបង្វិលបង្វិលនិងបង្វិលអ្នកប្រើដើម្បីធ្វើការអនុម័តជាមួយអ្នកផ្គត់ផ្គង់ SSO របស់អ្នក។ នៅពេលដែលការអនុម័ត cloudflared នឹងបង្ហាញការតភ្ជាប់ទៅនឹងម៉ាស៊ីនអតិថិជននៅលើអាសយដ្ឋានអ៊ីនធឺណិតដែលបានបង្ហាញនៅក្នុងការអនុញ្ញាត។
kubeconfig không hỗ trợ cấu hình lệnh proxy tại thời điểm này, mặc dù cộng đồng đã gửi kế hoạch để làm như vậy. Trong khi đó, người dùng có thể alias máy chủ API của cụm để tiết kiệm thời gian.
kubeconfig does not support proxy command configurations at this time, though the community has submitted plans to do so. In the interim, users can alias the cluster's API server to save time.
kubeconfig មិនគាំទ្រការកំណត់ផែនការ proxy នៅពេលនេះប៉ុន្តែសហគមន៍បានបញ្ជូនគម្រោងដើម្បីធ្វើដូច្នេះ។ ក្នុងអំឡុងពេលនេះអ្នកប្រើប្រាស់អាចអេឡិចត្រូនិ API អ្នកផ្គត់ផ្គង់កម្រិតកម្រិតកម្រិតកម្រិតកម្រិតកម្រិតកម្រិតកម្រិតកម្រិតកម្រិតកម្រិតកម្រិតកម្រិតកម្រិតកម្រិតកម្រិតកម្រិតកម្រិតកម្រិតកម្រិតកម្រិតកម្រិតកម្រិត។
Cửa sổ Terminal
Terminal window
បង្វិល Terminal
text
alias kubeone="env HTTPS_PROXY=socks5://127.0.0.1:1234 kubectl"
json
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"item":{"@id":"/directory/","name":"Directory"}},{"@type":"ListItem","position":2,"item":{"@id":"/cloudflare-one/","name":"Cloudflare One"}},{"@type":"ListItem","position":3,"item":{"@id":"/cloudflare-one/tutorials/","name":"Tutorials"}},{"@type":"ListItem","position":4,"item":{"@id":"/cloudflare-one/tutorials/kubectl/","name":"Connect through Cloudflare Access using kubectl"}}]}

Xem bản đầy đủ trên developers.cloudflare.com (ảnh, tab cấu hình). View the full guide on developers.cloudflare.com (images, config tabs). មើលមគ្គុទ្ទេសក៍ពេញលើ developers.cloudflare.com (រូបភាព, tab កំណត់)។

Tài liệu gốc ↗ Official docs ↗ ឯកសារផ្លូវការ ↗