Cloudslab / qfaas

QFaaS - A Serverless Function-as-a-Service Framework for Quantum Computing
https://qfaas.cloud
GNU General Public License v3.0
16 stars 9 forks source link

Qfaas-api-core deployment : env-secret #1

Closed mopoa closed 1 month ago

mopoa commented 3 months ago

Hi, while deploying the api-core based on the "Quantum Serverless Paradigm and Application Development using the QFaaS Framework" i encountered an error which looks like it's a problem with the env-secret. Is it possible to use github instead of gitlab? I'm giving a huge possibility that my .env file has a problem. Screenshot from 2024-08-20 01-50-38

I'll be grateful if you help me through this problem. Screenshot from 2024-08-20 01-48-56

the secret is been created and existing under the qfaas namespace

hoaiocom commented 3 months ago

Hi @mopoa, Could you provide more information about your K8s setup? Please note that this will work with K8s 1.6+ (https://kubernetes.io/docs/tasks/inject-data-application/distribute-credentials-secure/#configure-all-key-value-pairs-in-a-secret-as-container-environment-variables). Currently, QFaaS is compatible with Gitlab only, and I'm still working on migrating QFaaS to be independent of Gitlab but it will take a bit more time.

mopoa commented 3 months ago

Thanks alot for your response. I'm using microk8s as like the documentation recommended. Screenshot from 2024-08-20 16-42-46

by the way i havn't installed gitlab at the moment

hoaiocom commented 3 months ago

No worries, you may try out the sample example of using secrets: https://kubernetes.io/docs/tasks/inject-data-application/distribute-credentials-secure/#configure-all-key-value-pairs-in-a-secret-as-container-environment-variables and double-check the deployment.yaml file again