0%

Kubernetes_Nginx-Ingress

Kubernetes_Nginx-Ingress

For example

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
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
nginx.ingress.kubernetes.io/force-ssl-redirect: 'true' #代表其中跳转
nginx.ingress.kubernetes.io/service-weight: ''
nginx.ingress.kubernetes.io/ssl-redirect: 'true'
creationTimestamp: '2018-12-25T10:29:36Z'
generation: 1
name: boss
namespace: default
resourceVersion: '21429383'
selfLink: /apis/extensions/v1beta1/namespaces/default/ingresses/boss
uid: fa56e2a0-082f-11e9-80cf-00163e0e2421
spec:
rules:
- host: boss1.vcg.com
http:
paths:
- backend:
serviceName: node-vcg-boss
servicePort: 80
path: /
tls:
- hosts:
- boss1.vcg.com
secretName: vcg-https
status:
loadBalancer:
ingress:
- ip: 39.97.21.16