当前位置:网站首页>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
边栏推荐
- Opengauss Developer Day 2022 was officially launched to build an open source database root community with developers
- What is the was fortress server restart was command? What are the reasons why was could not be restarted?
- 为什么你的数据图谱分析图上只显示一个值?
- H265 enables mobile phone screen projection
- How to use xshell to log in to the server through the fortress machine? How does the fortress machine configure the tunnel?
- AAAI 2022 | Tencent Youtu 14 papers were selected, including image coloring, face security, scene text recognition and other frontier fields
- 為什麼你的數據圖譜分析圖上只顯示一個值?
- SAP mm ml81n creates a service receipt for a purchase order and reports an error - no matching Po items selected-
- Redis6.x.x build rediscluster cluster
- C language picture transcoding for performance testing
猜你喜欢

Game security - call analysis - write code

Pourquoi une seule valeur apparaît - elle sur votre carte de données?

解密抖音春节红包背后的技术设计与实践

为什么你的数据图谱分析图上只显示一个值?

Slsa: accelerator for successful SBOM

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

Why is only one value displayed on your data graph?

蚂蚁集团自研TEE技术通过国家级金融科技产品认证

Application practice | Apache Doris integrates iceberg + Flink CDC to build a real-time federated query and analysis architecture integrating lake and warehouse

In the eyes of the universe, how to correctly care about counting East and West?
随机推荐
Heat transfer oil electric heater
Take you to understand the lazy loading of pictures
Beauty of script │ VBS introduction interactive practice
C language picture transcoding for performance testing
Problems and solutions of MacOS installation go SQLite3
Micro API gateway Middleware
Tcapulusdb Jun · industry news collection
What is the was fortress server restart was command? What are the reasons why was could not be restarted?
How does the national standard gb28181 security video platform easygbs download device video through the interface?
openGauss Developer Day 2022正式开启,与开发者共建开源数据库根社区
Huawei hardware configuration command, recommended collection
How to build a website after registering a domain name
5 minutes to explain what is redis?
Game security - call analysis - write code
Micro build low code tutorial - variable definition
H264_ AVC analysis
Slsa: accelerator for successful SBOM
Application practice | Apache Doris integrates iceberg + Flink CDC to build a real-time federated query and analysis architecture integrating lake and warehouse
Why is only one value displayed on your data graph?
Method of thread synchronization in kotlin