· 6 years ago · Sep 09, 2019, 09:14 PM
1apiVersion: v1
2items:
3- apiVersion: extensions/v1beta1
4 kind: Ingress
5 metadata:
6 annotations:
7 certmanager.k8s.io/cluster-issuer: letsencrypt-production
8 kubectl.kubernetes.io/last-applied-configuration: |
9 {"apiVersion":"extensions/v1beta1","kind":"Ingress","metadata":{"annotations":{"certmanager.k8s.io/cluster-issuer":"letsencrypt-production","kubernetes.io/ingress.class":"nginx","nginx.ingress.kubernetes.io/ssl-redirect":"true","nginx.ingress.kubernetes.io/upstream-vhost":"yandex.ru"},"name":"example-handbook","namespace":"production"},"spec":{"rules":[{"host":"handbook.example.com","http":{"paths":[{"backend":{"serviceName":"example-handbook","servicePort":80},"path":"/"}]}}],"tls":[{"hosts":["handbook.example.com"],"secretName":"example-handbook-tls"}]}}
10 kubernetes.io/ingress.class: nginx
11 nginx.ingress.kubernetes.io/ssl-redirect: "true"
12 nginx.ingress.kubernetes.io/upstream-vhost: yandex.ru
13 creationTimestamp: "2019-09-09T20:46:59Z"
14 generation: 1
15 name: example-handbook
16 namespace: production
17 resourceVersion: "41632318"
18 selfLink: /apis/extensions/v1beta1/namespaces/production/ingresses/example-handbook
19 uid: f82823e2-d342-11e9-b017-42010a9600e9
20 spec:
21 rules:
22 - host: handbook.example.com
23 http:
24 paths:
25 - backend:
26 serviceName: example-handbook
27 servicePort: 80
28 path: /
29 tls:
30 - hosts:
31 - handbook.example.com
32 secretName: example-handbook-tls
33 status:
34 loadBalancer:
35 ingress:
36 - ip: <redacted>
37- apiVersion: v1
38 kind: Service
39 metadata:
40 annotations:
41 kubectl.kubernetes.io/last-applied-configuration: |
42 {"apiVersion":"v1","kind":"Service","metadata":{"annotations":{},"name":"example-handbook","namespace":"production"},"spec":{"externalName":"yandex.ru","type":"ExternalName"}}
43 creationTimestamp: "2019-09-09T16:15:49Z"
44 name: example-handbook
45 namespace: production
46 resourceVersion: "41632316"
47 selfLink: /api/v1/namespaces/production/services/example-handbook
48 uid: 16949725-d31d-11e9-b017-42010a9600e9
49 spec:
50 externalName: yandex.ru
51 sessionAffinity: None
52 type: ExternalName
53 status:
54 loadBalancer: {}
55kind: List
56metadata:
57 resourceVersion: ""
58 selfLink: ""