Giter VIP home page Giter VIP logo

Comments (7)

zhaohuabing avatar zhaohuabing commented on May 31, 2024

Can you check if the ServiceEntry has been created?

k get ServiceEntry -n dubbo -oyaml

The output should look like

NAME                 HOSTS                                              LOCATION        RESOLUTION   AGE
test-dubbo-service   [org.apache.dubbo.samples.basic.api.demoservice]   MESH_INTERNAL   STATIC       18h

from aeraki.

shuxnhs avatar shuxnhs commented on May 31, 2024

the ServiceEntry has been created

# k get ServiceEntry -n dubbo -oyaml
apiVersion: v1
items:
- apiVersion: networking.istio.io/v1beta1
  kind: ServiceEntry
  metadata:
    annotations:
      interface: org.apache.dubbo.samples.basic.api.DemoService
      kubectl.kubernetes.io/last-applied-configuration: |
        {"apiVersion":"networking.istio.io/v1alpha3","kind":"ServiceEntry","metadata":{"annotations":{"interface":"org.apache.dubbo.samples.basic.api.DemoService"},"name":"test-dubbo-service","namespace":"dubbo"},"spec":{"addresses":["193.193.192.192"],"hosts":["org.apache.dubbo.samples.basic.api.demoservice"],"ports":[{"name":"tcp-dubbo","number":20880,"protocol":"TCP"}],"resolution":"STATIC","workloadSelector":{"labels":{"app":"dubbo-sample-provider"}}}}
    creationTimestamp: "2021-04-13T02:17:15Z"
    generation: 1
    managedFields:
    - apiVersion: networking.istio.io/v1alpha3
      fieldsType: FieldsV1
      fieldsV1:
        f:metadata:
          f:annotations:
            .: {}
            f:interface: {}
            f:kubectl.kubernetes.io/last-applied-configuration: {}
        f:spec:
          .: {}
          f:addresses: {}
          f:hosts: {}
          f:ports: {}
          f:resolution: {}
          f:workloadSelector:
            .: {}
            f:labels:
              .: {}
              f:app: {}
      manager: kubectl-client-side-apply
      operation: Update
      time: "2021-04-13T02:17:15Z"
    name: test-dubbo-service
    namespace: dubbo
    resourceVersion: "4706194"
    uid: 7b5ab92a-c3b8-4687-95f8-2a3c53c4d27a
  spec:
    addresses:
    - 193.193.192.192
    hosts:
    - org.apache.dubbo.samples.basic.api.demoservice
    ports:
    - name: tcp-dubbo
      number: 20880
      protocol: TCP
    resolution: STATIC
    workloadSelector:
      labels:
        app: dubbo-sample-provider
kind: List
metadata:
  resourceVersion: ""
  selfLink: ""




# k get ServiceEntry -n dubbo
NAME                 HOSTS                                                LOCATION   RESOLUTION   AGE
test-dubbo-service   ["org.apache.dubbo.samples.basic.api.demoservice"]              STATIC       18m

from aeraki.

zhaohuabing avatar zhaohuabing commented on May 31, 2024

If you follow the instruction on the README.md, it should work. How did you install the Istio? Have you enabled the pilot-agent DNS agent?

from aeraki.

shuxnhs avatar shuxnhs commented on May 31, 2024

i am sorry . i dont follow the instruction on the README.md, because my istio was installed a few months ago ! i install the istio by istioctl before.

istioctl install --set profile=demo -y

And install the aeraki after change the /demo/install-demo.sh

BASEDIR=$(dirname "$0")/..

SCRIPTS_DIR=$BASEDIR/test/e2e/scripts
COMMON_DIR=$BASEDIR/test/e2e/common
export ISTIO_VERSION=1.9.1
export BUILD_TAG=latest

bash ${SCRIPTS_DIR}/aeraki.sh
#bash ${SCRIPTS_DIR}/istio.sh -y -f ${COMMON_DIR}/istio-config.yaml

#kubectl apply -f https://raw.githubusercontent.com/istio/istio/release-1.8/samples/addons/prometheus.yaml -n istio-system
#kubectl apply -f https://raw.githubusercontent.com/istio/istio/release-1.8/samples/addons/grafana.yaml -n istio-system

#kubectl create namespace kiali-operator
#helm install \
#    --set cr.create=true \
#    --set cr.namespace=istio-system \
#    --namespace kiali-operator \
#    --repo https://kiali.org/helm-charts \
#    kiali-operator \
#    kiali-operator

#kubectl apply -f $BASEDIR/demo/gateway/demo-ingress.yaml -n istio-system
#kubectl apply -f $BASEDIR/demo/gateway/istio-ingressgateway.yaml -n istio-system

bash $BASEDIR/demo/dubbo/install.sh
#bash $BASEDIR/demo/thrift/install.sh
#bash ${BASEDIR}/demo/kafka/install.sh

What steps did I miss?

from aeraki.

shuxnhs avatar shuxnhs commented on May 31, 2024

by the way, the demo of thrift works normal

from aeraki.

zhaohuabing avatar zhaohuabing commented on May 31, 2024

You might not enable pilot-agent dns capture, please check https://github.com/aeraki-framework/aeraki/blob/master/test/e2e/common/istio-config.yaml for the Istio configuration.

from aeraki.

shuxnhs avatar shuxnhs commented on May 31, 2024

thank you very much, it works after enable pilot-agent dns capture!

from aeraki.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.