Skip to content

Deploying to K8s #9532

@ladeak

Description

@ladeak

Is your question related to a specific version? If so, please specify:

it is not

What language does your question apply to? (e.g. C#, JavaScript, Java, All)

C#

Question

I have a function, that runs locally as well as locally in a docker container. I would like to deploy it to k8s with my helm chart. When I do that however I notice I need to manually set environment variables, for example:
WEBSITE_SITE_NAME (which I could figure out myself)
or
HTTP_LEADER_ENDPOINT (which I am not sure what value to set)

At the moment I would like to deploy the function without a container in AKS, and I have our own container registry (not ACR), hence it is unclear how I could use func deploy or func kubernetes deploy commands.

Would you have a suggestion on what environment variables need to be set (with suggestion on values) so I can run the function as a single instance on k8s?

Is it a good idea to set KUBERNETES_SERVICE_HOST to empty string to disable leader election and using the storage account instead? (asking this based on the changes in #7327 )

Well I realize I cannot set KUBERNETES_SERVICE_HOST ... so maybe instead setting MANAGED_ENVIRONMENT?

cc. @yojagad and @pragnagopa

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions