https://www.google.com/search?q=nginx%E5%A6%82%E4%BD%95%E7%BB%99%E5%90%8C%E4%B8%80%E4%B8%AA%E6%9C%8D%E5%8A%A1%E9%85%8D%E7%BD%AE%E4%B8%8D%E5%90%8C%E7%9A%84%E5%9F%9F%E5%90%8D
k -n wing get ing testtaskon-orange-web-ingress -o yaml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
| apiVersion: networking.k8s.io/v1 kind: Ingress metadata: annotations: kubernetes.io/ingress.class: nginx nginx.ingress.kubernetes.io/affinity: cookie nginx.ingress.kubernetes.io/configuration-snippet: | add_header Cache-Control "no-cache"; add_header Pragma no-cache; # nginx.ingress.kubernetes.io/cors-allow-credentials: "false" #nginx.ingress.kubernetes.io/cors-allow-headers: '*' #nginx.ingress.kubernetes.io/cors-allow-origin: '*' #nginx.ingress.kubernetes.io/enable-cors: "true" nginx.ingress.kubernetes.io/force-ssl-redirect: "false" nginx.ingress.kubernetes.io/rewrite-target: / nginx.ingress.kubernetes.io/session-cookie-max-age: "3600" nginx.ingress.kubernetes.io/ssl-redirect: "true" creationTimestamp: "2023-06-14T09:22:46Z" generation: 2 name: testtaskon-orange-web-ingress namespace: wing resourceVersion: "11171389182" uid: f383b7dd-069b-4da6-97ba-29ecf9ba7aca spec: rules: - host: testtaskonweb.taskon.xyz http: paths: - backend: service: name: orange-taskon-web-service port: number: 80 path: / pathType: ImplementationSpecific tls: - hosts: - testtaskonweb.taskon.xyz secretName: taskonwildto202301011 status: loadBalancer: ingress: - hostname: lb-8cp5quyu-mzgrxfqhlwie43to.clb.ap-singapore.tencentclb.com
|
前端服务
原文链接: https://dashen.tech/2017/02/20/nginx如何给同一个服务配置不同的域名/
版权声明: 转载请注明出处.