update at 2023-11-17 13:00:38

pull/153/head
roc 2023-11-17 13:00:38 +08:00
parent 7513140ec7
commit 185078bde4
1 changed files with 5 additions and 5 deletions

View File

@ -36,7 +36,7 @@ TKE 提供了 CLB 直通 Pod 的能力,不经过 NodePort网络链路上少
kind: Service
metadata:
annotations:
# hightlight-next-line
# highlight-next-line
service.cloud.tencent.com/direct-access: "true" # 关键
labels:
app: nginx
@ -69,7 +69,7 @@ TKE 提供了 CLB 直通 Pod 的能力,不经过 NodePort网络链路上少
kind: Ingress
metadata:
annotations:
# hightlight-next-line
# highlight-next-line
ingress.cloud.tencent.com/direct-access: "true"
kubernetes.io/ingress.class: qcloud
name: test-ingress
@ -107,7 +107,7 @@ spec:
template:
metadata:
annotations:
# hightlight-next-line
# highlight-next-line
tke.cloud.tencent.com/networks: tke-route-eni
labels:
app: nginx
@ -116,12 +116,12 @@ spec:
- image: nginx
name: nginx
resources:
# hightlight-start
# highlight-start
requests:
tke.cloud.tencent.com/eni-ip: "1"
limits:
tke.cloud.tencent.com/eni-ip: "1"
# hightlight-end
# highlight-end
```
## 参考资料