marcuskrantz commented on issue #476:
URL: 
https://github.com/apache/apisix-helm-chart/issues/476#issuecomment-1437951510

   This is exactly the use case that I have. It would be ideal to:
   
   1) First create the secret. This can either be done manually or through some 
third-party product like external-secrets.io.
   
   `kubectl -n kong create secret generic apisix-credentials 
--from-literal=adminKey="my_secret_admin_key"`
   
   2) Configure APISIX Ingress to pick up credentials from the secret. In 
deployment.yaml:
   
   ```
   spec:
     ...
     env:
     - name: DEFAULT_CLUSTER_ADMIN_KEY
         valueFrom:
           secretKeyRef:
             key: "adminKey"
             name: "apisix-credentials"
   ```
   
   
   
   


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