You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/11/12 09:25:23 UTC

[GitHub] [apisix-ingress-controller] tutuV edited a comment on issue #749: ApisixRoute does not write to etcd and is not shown on dashboard

tutuV edited a comment on issue #749:
URL: https://github.com/apache/apisix-ingress-controller/issues/749#issuecomment-966950111


   @tokers 
   kubectl create ns apisix
   
   helm install apisix apisix \
   -f apisix/values.yaml \
   --set apisix.replicaCount=1 \
   --set gateway.type=LoadBalancer \
   --set admin.allow.ipList="{0.0.0.0/0}" \
   --set etcd.enabled=true \
   --set etcd.persistence.enabled=false \
   --set ingress-controller.enabled=true \
   --set ingress-controller.config.apisix.serviceNamespace=apisix \
   --set ingress-controller.config.kubernetes.apisixRouteVersion="apisix.apache.org/v2beta2" \
   --set dashboard.enabled=true \
   --namespace apisix
   
   vim echo.yaml
   #The missing item is echo Server
   apiVersion: apisix.apache.org/v2beta2   #for apisix v2.10
   kind: ApisixRoute
   metadata:
     name: echo-apisixroute
     namespace: echo
   spec:
     http:
     - name: echo-apisixroute
       match:
         paths:
         - "/echo"
       backends:
       - serviceName: echo
         servicePort: 80
       plugins:
       - name: cors
         enable: true
   
   kubectl apply -f echo.yaml
   
   -------------------------
   That's all I did
   
   


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org