You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-7Lines changed: 6 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -170,18 +170,17 @@ Using the Core Tools, you can easily configure a Kubernetes cluster and run Azur
170
170
171
171
### Installing Kubernetes scalers
172
172
173
-
This deploys [KEDA](https://github.com/kedacore/keda)and [Osiris](https://github.com/deislabs/osiris)to your cluster which allows you to deploy your functions in a scale-to-zero by default.
173
+
This deploys [KEDA](https://github.com/kedacore/keda) to your cluster which allows you to deploy your functions in a scale-to-zero by default for non-http scenarios only.
174
174
175
175
```bash
176
176
func kubernetes install --namespace {namespace}
177
177
```
178
178
179
179
**KEDA:** Handles monitoring polling event sources currently QueueTrigger and ServiceBusTrigger.
180
-
**Osiris:**: Handles Http traffic monitoring and on demand scale your deployment to and from 0
181
180
182
181
### Deploy to Kubernetes
183
182
184
-
**First make sure you have Dockerfile for your project.** You can generate one using
183
+
**First make sure you have Dockerfile for your project.** You can generate one using
185
184
```bash
186
185
func init --docker # or --docker-only (for existing projects)
An ACR instance can be created using the Azure Portal or the [Azure CLI](https://docs.microsoft.com/en-us/azure/container-registry/container-registry-get-started-azure-cli#create-a-container-registry)
243
242
244
243
#### Login to the ACR Registry
245
-
Before pushing and pulling container images, you must log in to the ACR instance.
244
+
Before pushing and pulling container images, you must log in to the ACR instance.
246
245
247
246
```azurecli
248
247
az acr login --name <acrName>
249
248
```
250
249
251
250
#### Give the AKS cluster access to the ACR Registry
252
-
The AKS cluster needs access to the ACR Registry to pull the container. Azure creates a service principal to support cluster operability with other Azure resources. This can be used for authentication with an ACR registry. See here for how to grant the right access here: [Authenticate with Azure Container Registry from Azure Kubernetes Service](https://docs.microsoft.com/en-us/azure/container-registry/container-registry-auth-aks)
251
+
The AKS cluster needs access to the ACR Registry to pull the container. Azure creates a service principal to support cluster operability with other Azure resources. This can be used for authentication with an ACR registry. See here for how to grant the right access here: [Authenticate with Azure Container Registry from Azure Kubernetes Service](https://docs.microsoft.com/en-us/azure/container-registry/container-registry-auth-aks)
253
252
254
-
#### Run the deployment
253
+
#### Run the deployment
255
254
The deployment will build the docker container and upload the container image to your referenced ACR instance (Note: Specify the ACR Login Server in the --registry parameter this is usually of the form <container_registry_name>.azurecr.io) and then your AKS cluster will use that as a source to obtain the container and deploy it.
256
255
257
256
```bash
@@ -263,7 +262,7 @@ If the deployment is successful, you should see this:
263
262
Function deployed successfully!
264
263
Function IP: 40.121.21.192
265
264
266
-
#### Verifying your deployment
265
+
#### Verifying your deployment
267
266
You can verify your deployment by using the Kubernetes web dashboard. To start the Kubernetes dashboard, use the [az aks browse](https://docs.microsoft.com/en-us/cli/azure/aks?view=azure-cli-latest#az-aks-browse) command.
[Action(Name="install",Context=Context.Kubernetes,HelpText="Install Keda (non-http scale to zero) and Osiris (http scale to zero) in the kubernetes cluster from kubectl config")]
17
+
[Action(Name="install",Context=Context.Kubernetes,HelpText="Install Keda (non-http scale to zero) in the kubernetes cluster from kubectl config")]
SetFlag<string>("namespace","Kubernetes namespace to deploy to. Default: default", s =>Namespace=s);
27
-
SetFlag<bool>("keda","Install Keda only. By default both keda (non-http scale to zero) and osiris (http scale to zero) are installed", f =>KedaOnly=f);
28
-
SetFlag<bool>("keda-only",string.Empty, f =>KedaOnly=f);
29
26
SetFlag<bool>("dry-run","Show the deployment template", f =>DryRun=f);
30
27
returnbase.ParseArgs(args);
31
28
}
@@ -35,26 +32,15 @@ public async override Task RunAsync()
0 commit comments