产品动态
公告
产品发布记录
{"80":{"protocol":["TCP_SSL"],"tls":"cert-secret"}}
{"80":{"protocol":["HTTP"],"hosts":{"a.tencent.com":{},"b.tencent.com":{}}}}
{"80":{"protocol":["HTTPS"],"hosts":{"a.tencent.com":{"tls":"cert-secret-a"},"b.tencent.com":{"tls":"cert-secret-b"}}}}
{"80":{"protocol":["TCP","UDP"]}} # 仅直连模式支持,详情见https://www.tencentcloud.com/document/product/457/36837
{"80":{"protocol":["TCP_SSL","UDP"],"tls":"cert-secret"}} # 仅直连模式支持,详情见https://www.tencentcloud.com/document/product/457/36837
{"80":{"protocol":["QUIC"],"tls":"cert-secret"}}
cert-secret,表示使用该协议需要指定一个证书,证书是 Opaque 类型的 Secret,Secret 的 Key 为 qcloud_cert_id,Value 是证书 ID。详情见 Ingress 证书配置。apiVersion: v1kind: Servicemetadata:annotations:service.cloud.tencent.com/specify-protocol: '{"80":{"protocol":["TCP_SSL"],"tls":"cert-secret"}}' # 若要使用别的协议,修改该键值对的值为上述内容name: test....
apiVersion: v1kind: Servicemetadata:annotations:service.cloud.tencent.com/direct-access: "true" #TKE Serverless 集群默认是直连模式,TKE 集群请务必先参照文档开启直连模式。service.cloud.tencent.com/specify-protocol: '{"80":{"protocol":["TCP"]},"8080":{"protocol":["UDP"]}}' # 指定 80 端口 TCP 协议,8080 端口 UDP 协议。name: nginxspec:externalTrafficPolicy: Clusterports:- name: tcp-80-80nodePort: 32150port: 80protocol: TCPtargetPort: 80- name: udp-8080-8080nodePort: 31082port: 8080protocol: TCP # 注意,因为 Kubernetes Service Controller 限制,只能使用同类型协议。targetPort: 8080selector:k8s-app: nginxqcloud-app: nginxsessionAffinity: Nonetype: LoadBalancer
文档反馈