当前位置:网站首页>Three ways to enable IPv6 on Tencent cloud
Three ways to enable IPv6 on Tencent cloud
2022-06-23 22:41:00 【K8s Getting Started tutorial】
Deployed from traditional binary Nginx, To cloud native deployment K8S、Istio, Introduce the website startup respectively IPv6 In three ways .
1.Nginx How to open IPv6
precondition
1.1 Start listening IPv6 Address of the Nginx
Default Nginx Configuration file for (/etc/nginx/nginx.conf) Already open IPv6 visit , start-up Nginx.
server {
listen 80;
listen [::]:80; ## monitor IPv6 Of 80 port
...
} You can see Ngnix Simultaneous monitoring IPv4 and IPv6 Address .
# netstat -ntlp | grep nginx tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 138362/nginx: maste tcp6 0 0 :::80 :::* LISTEN 138362/nginx: maste
1.2 Server authentication IPv6 visit
On the server through curl The command can verify IPv6 On visit
# curl -g http://[2402:4e00:1013:e500:0:940e:29d7:3443] -I HTTP/1.1 200 OK Server: nginx/1.20.1 Date: Sat, 04 Dec 2021 13:58:37 GMT Content-Type: text/html Content-Length: 4833 Last-Modified: Fri, 16 May 2014 15:12:48 GMT Connection: keep-alive ETag: "53762af0-12e1" Accept-Ranges: bytes
1.3 Security pairing IPv6 The source address authorizes access
The next in Security group Chinese vs Monitor in IPv6 The address on the 80 Port authorization access .
1.4 Local computer verification IPv6 visit
If The local network is turned on IPv6 visit , Next reference Browser access IPv6 Address , It can be verified by browser on the local computer IPv6 visit .
1.5 Domain name add IPv6 Address resolution
Add... To the domain name IPv6 Parsing records (AAAA), After adding, you can use IPv6 Online domain name resolution tool Parse and verify it .
The same host name can be resolved at the same time IPv4(A Record ) and IPv6(AAAA Record ), Local browsers are generally IPv6 Priority access to .
1.6 IPv6 Website open verification
adopt Website IPv6 Open the validation tool To verify IPv6 Open successfully or not .
2. K8S How to open IPv6
stay K8S Chinese vs Web For service , Usually by Ingress Provide traffic access to users , therefore K8S In the open IPv6, Namely Ingress Support IPv6.
Here to Take Tencent cloud container service as an example , How to turn on IPv6.
With reference to article Tencent cloud cvm Turn on IPv6 , Submit IPv6 Internal test application .
2.1 establish IPv6 NAT64 Version of Ingress
establish IPv6 NAT64 Version of Ingress.
IPv6 NAT64: Users and
IPv6 NAT64Of LB Between IPv6 visit ,IPv6 NAT64Of LB With the back end Service、Pod Communication is IPv4. advantage : Business processes do not need to transform the network , Can support IPv6 Network access . shortcoming : Unable to get the client real IPv6 Address .
Next, refer to the above , For the Ingress Behind the load balancer add to the source IPv6 Security group policy for address access .
2.2 verification IPv6 Whether the website is open or not
The verification method is the same as above , No more details here .
3. Istio How to start the service grid IPv6
Service Grid istio, Than K8S Native Ingress It is more convenient to manage traffic , If you use a service grid , You don't need to be right K8S Of ingress Turn on IPv6 visit , Open directly in the service grid IPv6 visit .
3.1 establish IPv6 Edge proxy gateway
When creating an edge proxy gateway , Select Create in advance IPv6 LB.
3.2 establish IPv6 Gateway
establish IPv6 Gateway when , Association just created IPv6 Edge proxy gateway .
If open HTTPS visit , Then add the certificate .
3.3 establish IPv6 Virtual Service
establish IPv6 Virtual Service, Mount the... Created above IPv6 Gateway.
3.4 verification IPv6 Whether the website is open or not
The verification method is the same as above , No more details here .
IPv6 The trend of The Times , The stationmaster hurry to act .
Reference article
边栏推荐
- 应用实践 | Apache Doris 整合 Iceberg + Flink CDC 构建实时湖仓一体的联邦查询分析架构
- Teach you how to write a delay queue
- Get and post are nothing more than TCP links in nature?
- [tcapulusdb knowledge base] [generic table] read data interface description
- Remember a compose version of Huarong Road, you deserve it!
- Virtual machine performance monitoring and fault handling commands on the console
- 蚂蚁集团自研TEE技术通过国家级金融科技产品认证
- Core features and technical implementation of FISCO bcos v3.0
- How does the national standard gb28181 security video platform easygbs download device video through the interface?
- H264_ AVC analysis
猜你喜欢

為什麼你的數據圖譜分析圖上只顯示一個值?

游戏安全丨喊话CALL分析-写代码

Hackinglab penetration test question 8:key can't find it again

Opengauss Developer Day 2022 was officially launched to build an open source database root community with developers

蚂蚁获FinQA竞赛冠军,在长文本数值推理AI技术上取得突破

应用实践 | Apache Doris 整合 Iceberg + Flink CDC 构建实时湖仓一体的联邦查询分析架构

In the eyes of the universe, how to correctly care about counting East and West?

openGauss Developer Day 2022正式开启,与开发者共建开源数据库根社区

脚本之美│VBS 入门交互实战

在宇宙的眼眸下,如何正确地关心东数西算?
随机推荐
Is the website under construction because there is no FTP upload? Can I upload without FTP
在宇宙的眼眸下,如何正确地关心东数西算?
Website construction column setting form which website construction company is better
[tcapulusdb knowledge base] example of deleting data (TDR table)
How to set secondary title in website construction what is the function of secondary title
Command line enumeration, obtaining and modifying time zones
What are the application flow restrictions of API gateway framework?
Intelligent storage | high speed HD media processing capability
How to set the protective strip in the barcode
SLSA: 成功SBOM的促进剂
WordPress plugin wpschoolpress 2.1.16 -'multiple'cross site scripting (XSS)
How to build a business analysis system
openGauss Developer Day 2022正式开启,与开发者共建开源数据库根社区
Server classification of hardware knowledge (2)
Text editor GNU nano 6.0 release!
Problems and solutions of MacOS installation go SQLite3
SAP mm initial service purchase order
WordPress plugin WP guppy 1.1 - WP JSON API sensitive information disclosure
Shell automatically obtains hardware information
Service API version design and Practice