Skip to content

Commit 3ed335e

Browse files
committed
Separate out Q&A
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
1 parent 917fcf3 commit 3ed335e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/openfaas-pro/function-crd.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,19 @@
33
In addition to the REST API of the OpenFaaS gateway, the `Function` Custom Resource Definition can be used to manage functions.
44

55
Q: What's the difference between a Custom Resource Definition (CRD) and a Custom Resource (CR)?
6+
67
A: The CRD is the definition of a Function, which is installed to the cluster once via helm when OpenFaaS is installed The CR is an instance of a Function.
78

89
Q: Do you still need stack.yml, if we want to adopt the Function CRD?
10+
911
A: We recommend using either stack.yml on its own, along with IAM for OpenFaaS. However, if you want to use Helm, ArgoCD or Flux for GitOps-style deployments, then we would recommend using stack.yml for local development and for building images during CI, and the Function CRD for deployment.
1012

1113
Q: Can GitOps be used with Functions CRs?
14+
1215
A: You can use Helm, ArgoCD, or FluxCD to template, update and deploy functions. The Function CRD is a native Kubernetes resource, so it can be managed in the same way as Deployments, Services, and other resources.
1316

1417
Q: Can I still use kubectl if I deploy functions via REST or `faas-cli`?
18+
1519
A: Yes, the REST API accepts JSON deployment requests and then creates and manages a Function CR behind the scenes for you. That means you can explore, backup and inspect Functions using kubectl, even if you are not deploying via kubectl directly.
1620

1721
See also:

0 commit comments

Comments
 (0)