Created
September 16, 2019 03:41
-
-
Save DavadDi/a241392a5c8a41ac7b9c67f8120e6465 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: extensions/v1beta1 | |
| kind: Ingress | |
| metadata: | |
| annotations: | |
| field.cattle.io/publicEndpoints: '[{"addresses":["172.25.11.99"],"port":80,"protocol":"HTTP","serviceName":"qtt-infra-dev:adcoder","ingressName":"qtt-infra-dev:ingress-weight-test","hostname":"adcoder.cdad3fc3448684306b7f8003e6ceeb429.cn-zhangjiakou.alicontainer.com","path":"/version","allNodes":false},{"addresses":["172.25.11.99"],"port":80,"protocol":"HTTP","serviceName":"qtt-infra-dev:adcoder-test","ingressName":"qtt-infra-dev:ingress-weight-test","hostname":"adcoder.cdad3fc3448684306b7f8003e6ceeb429.cn-zhangjiakou.alicontainer.com","path":"/version","allNodes":false}]' | |
| nginx.ingress.kubernetes.io/service-weight: 'adcoder: 200, adcoder-test: 200' | |
| creationTimestamp: 2019-09-02T12:07:10Z | |
| generation: 1 | |
| name: ingress-weight-test | |
| namespace: qtt-infra-dev | |
| resourceVersion: "12659233" | |
| selfLink: /apis/extensions/v1beta1/namespaces/qtt-infra-dev/ingresses/ingress-weight-test | |
| uid: 315e2396-cd7a-11e9-87dc-00163e0577f1 | |
| spec: | |
| rules: | |
| - host: adcoder.cdad3fc3448684306b7f8003e6ceeb429.cn-zhangjiakou.alicontainer.com | |
| http: | |
| paths: | |
| - backend: | |
| serviceName: adcoder | |
| servicePort: 5693 | |
| path: /version | |
| - backend: | |
| serviceName: adcoder-test | |
| servicePort: 5693 | |
| path: /version | |
| --------------------------- | |
| [ | |
| { | |
| "name":"qtt-infra-dev-adcoder-5693", | |
| "service":{ | |
| "metadata":{ | |
| "creationTimestamp":null | |
| }, | |
| "spec":{ | |
| "ports":[ | |
| { | |
| "name":"http", | |
| "protocol":"TCP", | |
| "port":5693, | |
| "targetPort":8103 | |
| }, | |
| { | |
| "name":"metrics", | |
| "protocol":"TCP", | |
| "port":5694, | |
| "targetPort":5694 | |
| }, | |
| { | |
| "name":"negri-metrics", | |
| "protocol":"TCP", | |
| "port":9103, | |
| "targetPort":9103 | |
| } | |
| ], | |
| "selector":{ | |
| "app":"adcoder" | |
| }, | |
| "clusterIP":"10.225.36.172", | |
| "type":"ClusterIP", | |
| "sessionAffinity":"None" | |
| }, | |
| "status":{ | |
| "loadBalancer":{ | |
| } | |
| } | |
| }, | |
| "port":5693, | |
| "secureCACert":{ | |
| "secret":"", | |
| "caFilename":"", | |
| "pemSha":"" | |
| }, | |
| "sslPassthrough":false, | |
| "endpoints":[ | |
| { | |
| "address":"10.224.1.57", | |
| "port":"8103" | |
| } | |
| ], | |
| "sessionAffinityConfig":{ | |
| "name":"", | |
| "cookieSessionAffinity":{ | |
| "name":"", | |
| "hash":"" | |
| } | |
| }, | |
| "upstreamHashByConfig":{ | |
| "upstream-hash-by-subset-size":3 | |
| }, | |
| "noServer":false, | |
| "trafficShapingPolicy":{ | |
| "weight":0, | |
| "header":"", | |
| "cookie":"", | |
| "serviceWeight":{ | |
| "qtt-infra-dev-adcoder-5693":50, | |
| "qtt-infra-dev-adcoder-test-5693":50 | |
| }, | |
| "hostPath":"adcoder.cdad3fc3448684306b7f8003e6ceeb429.cn-zhangjiakou.alicontainer.com/version" | |
| }, | |
| "alternativeBackends":[ | |
| "qtt-infra-dev-adcoder-test-5693" | |
| ] | |
| }, | |
| { | |
| "name":"qtt-infra-dev-adcoder-8103", | |
| "service":{ | |
| "metadata":{ | |
| "creationTimestamp":null | |
| }, | |
| "spec":{ | |
| "ports":[ | |
| { | |
| "name":"http", | |
| "protocol":"TCP", | |
| "port":5693, | |
| "targetPort":8103 | |
| }, | |
| { | |
| "name":"metrics", | |
| "protocol":"TCP", | |
| "port":5694, | |
| "targetPort":5694 | |
| }, | |
| { | |
| "name":"negri-metrics", | |
| "protocol":"TCP", | |
| "port":9103, | |
| "targetPort":9103 | |
| } | |
| ], | |
| "selector":{ | |
| "app":"adcoder" | |
| }, | |
| "clusterIP":"10.225.36.172", | |
| "type":"ClusterIP", | |
| "sessionAffinity":"None" | |
| }, | |
| "status":{ | |
| "loadBalancer":{ | |
| } | |
| } | |
| }, | |
| "port":8103, | |
| "secureCACert":{ | |
| "secret":"", | |
| "caFilename":"", | |
| "pemSha":"" | |
| }, | |
| "sslPassthrough":false, | |
| "endpoints":[ | |
| { | |
| "address":"10.224.1.57", | |
| "port":"8103" | |
| } | |
| ], | |
| "sessionAffinityConfig":{ | |
| "name":"", | |
| "cookieSessionAffinity":{ | |
| "name":"", | |
| "hash":"" | |
| } | |
| }, | |
| "upstreamHashByConfig":{ | |
| "upstream-hash-by-subset-size":3 | |
| }, | |
| "noServer":false, | |
| "trafficShapingPolicy":{ | |
| "weight":0, | |
| "header":"", | |
| "cookie":"" | |
| } | |
| }, | |
| { | |
| "name":"qtt-infra-dev-adcoder-test-5693", | |
| "service":{ | |
| "metadata":{ | |
| "creationTimestamp":null | |
| }, | |
| "spec":{ | |
| "ports":[ | |
| { | |
| "name":"http", | |
| "protocol":"TCP", | |
| "port":5693, | |
| "targetPort":8103, | |
| "nodePort":30211 | |
| } | |
| ], | |
| "selector":{ | |
| "app":"adcoder" | |
| }, | |
| "clusterIP":"10.225.42.221", | |
| "type":"NodePort", | |
| "sessionAffinity":"None", | |
| "externalTrafficPolicy":"Cluster" | |
| }, | |
| "status":{ | |
| "loadBalancer":{ | |
| } | |
| } | |
| }, | |
| "port":5693, | |
| "secureCACert":{ | |
| "secret":"", | |
| "caFilename":"", | |
| "pemSha":"" | |
| }, | |
| "sslPassthrough":false, | |
| "endpoints":[ | |
| { | |
| "address":"10.224.1.57", | |
| "port":"8103" | |
| } | |
| ], | |
| "sessionAffinityConfig":{ | |
| "name":"", | |
| "cookieSessionAffinity":{ | |
| "name":"", | |
| "hash":"" | |
| } | |
| }, | |
| "upstreamHashByConfig":{ | |
| "upstream-hash-by-subset-size":3 | |
| }, | |
| "noServer":false, | |
| "trafficShapingPolicy":{ | |
| "weight":0, | |
| "header":"", | |
| "cookie":"", | |
| "serviceWeight":{ | |
| "qtt-infra-dev-adcoder-5693":50, | |
| "qtt-infra-dev-adcoder-test-5693":50 | |
| }, | |
| "hostPath":"adcoder.cdad3fc3448684306b7f8003e6ceeb429.cn-zhangjiakou.alicontainer.com/version" | |
| }, | |
| "alternativeBackends":[ | |
| "qtt-infra-dev-adcoder-5693" | |
| ] | |
| }, | |
| { | |
| "name":"upstream-default-backend", | |
| "port":0, | |
| "secureCACert":{ | |
| "secret":"", | |
| "caFilename":"", | |
| "pemSha":"" | |
| }, | |
| "sslPassthrough":false, | |
| "endpoints":[ | |
| { | |
| "address":"127.0.0.1", | |
| "port":"8181" | |
| } | |
| ], | |
| "sessionAffinityConfig":{ | |
| "name":"", | |
| "cookieSessionAffinity":{ | |
| "name":"", | |
| "hash":"" | |
| } | |
| }, | |
| "upstreamHashByConfig":{ | |
| }, | |
| "noServer":false, | |
| "trafficShapingPolicy":{ | |
| "weight":0, | |
| "header":"", | |
| "cookie":"" | |
| } | |
| } | |
| ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment