MirtoBusico edited a comment on issue #853:
URL: 
https://github.com/apache/apisix-ingress-controller/issues/853#issuecomment-1040277232


   Hi @tao12345666333 I've reinstalled apisix with these changes in values.yaml:
   ```
   ...
   gateway:
     type: LoadBalancer
   ...
     tls:
       enabled: true
       servicePort: 443
       containerPort: 9443
       existingCASecret: "m01cacert"
       certCAFilename: "cert"
       http2:
         enabled: true
   ...
   discovery:
     enabled: true
     registry:
       dns:
           servers:
               - "10.43.0.10:53"
   ...
   dashboard:
     enabled: true
   
   
   ingress-controller:
     enabled: true
   ```
   And installed with:
   ```
   kubectl create ns apisix
   kubectl label namespace apisix istio-injection=enabled
   kubectl -n apisix create secret generic m01cacert 
--from-file=cert=./m01ca.pem
   helm install apisix apisix/apisix -f apisix-values.yaml \
   --set ingress-controller.config.apisix.serviceNamespace=apisix \
   --set ingress-controller.config.apisix.serviceName=apisix-admin \
   --set 
ingress-controller.config.kubernetes.apisixRouteVersion=apisix.apache.org/v2beta3
 \
   --namespace apisix
   ```
   Created a route with:
   ```
   apiVersion: apisix.apache.org/v2beta3
   kind: ApisixRoute
   metadata:
     name: productpage
   spec:
     http:
     - name: rule1
       match:
         hosts:
         - www2.m01.net
         paths:
         - /*
       backends:
       - serviceName: productpage
         servicePort: 9080
         resolveGranularity: service
   ```
   Using the command:
   ```
   kubectl -n bookinfo apply -f productpage-ar.yaml
   ```
   
   The route is created with the service address
   Nothing appears about route creation in apisix-ingres-controller log:
   ```
   2022-02-15T13:20:13.772Z | [GIN] 2022/02/15 - 21:20:13 | 200 | 31.747µs | 
127.0.0.6 | GET "/healthz"
   2022-02-15T13:20:13.773Z | [GIN] 2022/02/15 - 21:20:13 | 200 | 33.197µs | 
127.0.0.6 | GET "/healthz"
   2022-02-15T13:20:23.772Z | [GIN] 2022/02/15 - 21:20:23 | 200 | 40.887µs | 
127.0.0.6 | GET "/healthz"
   ```
   The command executed op apisix pod (using the upstream_id from apisix 
dashboard) says
   ```
   bash-5.1# curl http://127.0.0.1:9180/apisix/admin/upstreams/49b914ed -H 
'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X GET
   
{"action":"get","count":1,"node":{"key":"\/apisix\/upstreams\/49b914ed","value":{"labels":{"managed-by":"apisix-ingress-controller"},"scheme":"http","name":"bookinfo_productpage_9080","update_time":1644930766,"hash_on":"vars","desc":"Created
 by apisix-ingress-controller, DO NOT modify it 
manually","type":"roundrobin","nodes":[{"weight":100,"port":9080,"priority":0,"host":"10.43.189.220"}],"id":"49b914ed","pass_host":"pass","create_time":1644930766}}}
   bash-5.1# 
   ```
   
   
   
   
   
   
   
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to