Skip to content

Hostid in a k8s environment #11108

Open
Open
@berubejp

Description

@berubejp

Hi,

I am looking for recommendations.

I am deploying many c# functions app a in a k8s cluster using a deployment.
All functions have their own storage account.
Each time I deploy, the host id of a function app is changed as it takes the name of the replicaset.

For an app with the name "myfuncapp", the replicatset will be by example "myfuncapp-64b4b66bbf-xnz6f".
This will result in a host id name "myfuncapp64b4b66bbfxnz6f" which changes every time I deploy.

Having my secrets in blob, my masterkey and functionkeys are changed every time which is an problem for me. I could probably get others issues as locks also depends on hostid.

Is that expected or am I doing it wrong?
Should I set AzureFunctionsWebHost__hostid manually to have a consistent hostid?

Best regards

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions