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/10/14 02:23:17 UTC

[GitHub] [apisix-ingress-controller] haowang-pony commented on issue #710: request help: Apisix ingress controller config.yaml couldn't read os environment variable

haowang-pony commented on issue #710:
URL: https://github.com/apache/apisix-ingress-controller/issues/710#issuecomment-942887452


   > This is normal, because apisix and apisix-ingress-controller are two independent software. The former supports the use of environment variables when parsing configuration files( [code link](https://github.com/apache/apisix/blob/master/apisix/cli/file.lua#L55-L55) ), and the latter has not been implemented. Of course this is a nice feature, we can consider supporting it.
   
   Thanks for quick response! Looking forward to this feature.
   
   And could I just use the k8s command flags to config the apisix-ingress-controller. Is this recommend practice before this feature? 
   
       ```
       command=[
           "/ingress-apisix/apisix-ingress-controller",
           "ingress",
           "--log-level",
           "debug",
           "--log-output",
           "stderr",
           "--http-listen",
           ":8080",
           // namespaces that controller will watch for resources
           "--app-namespace",
           "*",
           "--apisix-route-version",
           "apisix.apache.org/v2beta1",
           "--default-apisix-cluster-base-url",
           "http://apisix-admin.ingress-apisix:9180/apisix/admin",
           "--default-apisix-cluster-admin-key",
           "$(ADMIN_PASSWORD)",
         ],
   ```


-- 
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