Skip to content

Commit f2f119e

Browse files
committed
Additional help for reconciliation
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
1 parent dc2bb89 commit f2f119e

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

docs/deployment/troubleshooting.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,42 @@ kubectl annotate -n openfaas-fn function/nodeinfo \
114114

115115
The value of the `uid` field can be any value, if you want to force the Operator to try and you already have a value here, then you can just change it to a different value, i.e. `2` or a random string like a UUID.
116116

117+
### I'm not sure that any functions are getting reconciled
118+
119+
Reconciliation problems occur when you deploy a Function Custom Resource, but you do not see the operator creating a Deployment for it in the same namespace.
120+
121+
First check any Kubernetes Quotas or LimitRanges that you may have in place for the namespace.
122+
123+
Check the logs of all of the gateway Pods to see if it is displaying an error such as RBAC, or whether it is detecting the event for the Function CR.
124+
125+
```bash
126+
kubectl logs -n openfaas -l app=gateway -c operator --follow
127+
```
128+
129+
Next, check the status of the Leader Election:
130+
131+
```bash
132+
kubectl get lease/openfaas-operator-leader -n openfaas -o yaml
133+
```
134+
135+
Check the following fields: `acquireTime`, `renewTime`, `holderIdentity` and `leaseDurationSeconds`.
136+
137+
Do they match the Pods that you have running for the gateway?
138+
139+
```bash
140+
kubectl get pods -n openfaas -l app=gateway
141+
```
142+
143+
Check the .Status of the Function Custom Resource, i.e. for the `nodeinfo` function:
144+
145+
```bash
146+
kubectl describe -n openfaas-fn function/nodeinfo
147+
```
148+
149+
Look for warnings or errors in the .Status field.
150+
151+
If in doubt, and this is a critical issue, then you can try restarting the gateway Deployment, to restart the operator: `kubectl rollout restart -n openfaas deploy/gateway`
152+
117153
### Is my function's name too long?
118154

119155
When using OpenFaaS Standard or OpenFaaS for Enterprises along with the Function CRD, a function's name can be no longer than 63 characters. This is due to a limitation on the length of label selectors within Kubernetes.

0 commit comments

Comments
 (0)