Skip to content

Commit be7dbc5

Browse files
authored
Add docs for the func raw deployer (#6500)
1 parent a83cc12 commit be7dbc5

File tree

1 file changed

+24
-5
lines changed

1 file changed

+24
-5
lines changed

docs/snippets/proc-deploying-function.md

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,31 @@ The `deploy` command uses the function project name as the Knative Service name.
2020
kn func deploy --registry <registry>
2121
```
2222

23+
!!! note
24+
In case you want to deploy your function as a raw Kubernetes Deployment and Service instead of a Knative Service, you can use the `raw` deployer:
25+
=== "func"
26+
27+
Deploy the function by running the command inside the project directory:
28+
29+
```bash
30+
func deploy --registry <registry> --deployer raw
31+
```
32+
33+
=== "kn func"
34+
35+
Deploy the function by running the command inside the project directory:
36+
37+
```bash
38+
kn func deploy --registry <registry> --deployer raw
39+
```
40+
41+
2342
!!! Success "Expected output"
24-
```{ .bash .no-copy }
25-
🙌 Function image built: <registry>/hello:latest
26-
✅ Function deployed in namespace "default" and exposed at URL:
27-
http://hello.default.127.0.0.1.sslip.io
28-
```
43+
```{ .bash .no-copy }
44+
🙌 Function image built: <registry>/hello:latest
45+
✅ Function deployed in namespace "default" and exposed at URL:
46+
http://hello.default.127.0.0.1.sslip.io
47+
```
2948

3049
You can verify that your function has been successfully deployed by using the `invoke` command and observing the output:
3150

0 commit comments

Comments
 (0)