Documenting guard support for functions (#5439)

* Documenting guard support for functions

* Documenting guard support for functions

* Documenting guard support for functions
This commit is contained in:
David Hadas 2023-02-22 03:53:27 +02:00 committed by GitHub
parent 7e30793008
commit 320dd9e562
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 22 additions and 1 deletions

View File

@ -46,7 +46,9 @@ Create a sample securedService:
Where `<filename>` 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