Skip to content

Commit c04df4a

Browse files
authored
Merge pull request #92798 from jeffhollan/docker-patch
addressing feedback
2 parents eb26980 + 0575828 commit c04df4a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

articles/azure-functions/functions-kubernetes-keda.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ func init --docker-only
4747

4848
To build an image and deploy your functions to Kubernetes, run the following command:
4949

50+
> [!NOTE]
51+
> The core tools will leverage the docker CLI to build and publish the image. Be sure to have docker installed already and connected to your account with `docker login`.
52+
5053
```cli
5154
func kubernetes deploy --name <name-of-function-deployment> --registry <container-registry-username>
5255
```
@@ -55,6 +58,10 @@ func kubernetes deploy --name <name-of-function-deployment> --registry <containe
5558
5659
This creates a Kubernetes `Deployment` resource, a `ScaledObject` resource, and `Secrets`, which includes environment variables imported from your `local.settings.json` file.
5760

61+
### Deploying a function app from a private registry
62+
63+
The above flow works for private registries as well. If you are pulling your container image from a private registry, include the `--pull-secret` flag that references the Kubernetes secret holding the private registry credentials when running `func kubernetes deploy`.
64+
5865
## Removing a function app from Kubernetes
5966

6067
After deploying you can remove a function by removing the associated `Deployment`, `ScaledObject`, an `Secrets` created.

0 commit comments

Comments
 (0)