You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/service-connector/how-to-use-service-connector-in-aks.md
+52Lines changed: 52 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -183,6 +183,58 @@ If there's an error during the extension installation, and the error message in
183
183
kubectl logs job/sc-job -n sc-system
184
184
```
185
185
186
+
### Common errors and mitigations
187
+
188
+
#### Conflict
189
+
190
+
**Error Message:**
191
+
`Operation returned an invalid status code: Conflict`.
192
+
193
+
**Reason:**
194
+
This error usually occurs when attempting to create a service connection while the AKS (Azure Kubernetes Service) cluster is in an updating state. The service connection update conflicts with the ongoing update.
195
+
196
+
**Mitigation:**
197
+
Ensure your cluster is in a "Succeeded" state before retrying the creation. It resolves most errors related to conflicts.
198
+
199
+
#### Timeout
200
+
201
+
**Error Message:**
202
+
- `Long running operation failed with status 'Failed'. Unable to get a response from the Agent in time`.
203
+
- `Timed out waiting for the resource to come to a ready/completed state`
204
+
205
+
**Reason:**
206
+
This error often happens when the Kubernetes job used to create or update the Service Connector cluster extension fails to be scheduled due to resource limitations or other issues.
207
+
208
+
**Mitigation:**
209
+
Refer to [Check Kubernetes cluster logs](#check-kubernetes-cluster-logs) to identify and resolve the detailed reasons. A common issue is that no nodes are available due to preemption. In this case, consider adding more nodes or enabling auto-scaling for your nodes.
210
+
211
+
#### Unauthorized resource access
212
+
213
+
**Error Message:**
214
+
`You do not have permission to perform ... If access was recently granted, please refresh your credentials`.
215
+
216
+
**Reason:**
217
+
Service Connector requires permissions to operate the Azure resources you want to connect to, in order to perform connection operations on your behalf. This error indicates a lack of necessary permissions on some Azure resources.
218
+
219
+
**Mitigation:**
220
+
Check the permissions on the Azure resources specified in the error message. Obtain the required permissions and retry the creation.
221
+
222
+
#### Other issues
223
+
224
+
If the above mitigations don't resolve your issue, try resetting the service connector cluster extension by removing it and then retrying the creation. This method is expected to resolve most issues related to the Service Connector cluster extension.
225
+
226
+
Use the following CLI commands to reset the extension:
227
+
228
+
```azurecli
229
+
az extension add --name k8s-extension
230
+
231
+
az k8s-extension delete \
232
+
--resource-group <MyClusterResourceGroup> \
233
+
--cluster-name <MyCluster> \
234
+
--cluster-type managedClusters \
235
+
--name sc-extension
236
+
```
237
+
186
238
## Next steps
187
239
188
240
Learn how to integrate different target services and read about their configuration settings and authentication methods.
0 commit comments