diff --git a/docs/serving/app-security/security-guard-quickstart.md b/docs/serving/app-security/security-guard-quickstart.md index 094e21430..cad5fc285 100644 --- a/docs/serving/app-security/security-guard-quickstart.md +++ b/docs/serving/app-security/security-guard-quickstart.md @@ -46,7 +46,9 @@ Create a sample securedService: Where `` is the name of the file you created in the previous step. -=== "kn CLI" +=== "kn services CLI" + + Creating a service using CLI ``` kn service create helloworld-go \ @@ -56,6 +58,25 @@ Create a sample securedService: --annotation qpoption.knative.dev/guard-activate=enable ``` +=== "kn func CLI" + + Creating a function using CLI. + + Add the following `deploy.annotations` to your `func.yaml` file located in your project dir" + + ``` + deploy: + annotations: + features.knative.dev/queueproxy-podinfo: enabled + qpoption.knative.dev/guard-activate: enable + ``` + + Deploy as you would deploy any other function + + ``` + kn func deploy + ``` + After the Service has been created, Guard starts monitoring the Service Pods and all Events sent to the Service. Continue to [Security-Guard alert example](./security-guard-example-alerts.md) to test your installation