singhajitk opened a new issue, #2200:
URL: https://github.com/apache/apisix-ingress-controller/issues/2200
### Current Behavior
Hi @shreemaan-abhishek, @H When Upstream creates through Apisix dashboard by
selecting Upstream Type: Service Discovery and it has below spec as yaml
```
type: roundrobin
hash_on: vars
scheme: https
discovery_type: kubernetes
pass_host: node
name: api-testapp
service_name: apisix/api-test:http
```
But it gave error "reason: ResourceSyncAborted" when creating using below
manifest file
```
apiVersion: apisix.apache.org/v2
kind: ApisixUpstream
metadata:
name: api-test-upstream
namespace: apisix
spec:
scheme: https
loadbalancer:
type: roundrobin
discovery:
serviceName: apisix/api-test:http
type: kubernetes
passHost: pass
```
### Expected Behavior
ApisixUpstream should get created and have status as
```
status:
conditions:
- lastTransitionTime: 'TimeStamp'
message: Sync Successfully
observedGeneration: 1
reason: ResourcesSynced
status: 'True'
type: ResourcesAvailable
```
### Error Logs
apisix-ingress-controller throw below error:
2024-04-04T08:16:14+08:00 error apisix/apisix_upstream.go:333 failed
to get upstream apisix_api-test-upstream: not found
2024-04-04T08:16:14+08:00 warn apisix/apisix_upstream.go:489 sync
ApisixUpstream failed, will retry {"object":
{"Type":1,"Object":{"Key":"apisix/api-test-upstream","OldObject":null,"GroupVersion":"apisix.apache.org/v2"},"OldObject":null,"Tombstone":null},
"error": "not found"}
2024-04-04T08:16:49+08:00 warn apisix/cluster.go:1164 upstream not
found {"id": "2a212dd9", "url":
"http://apisix-admin.apisix.svc.cluster.local:9180/apisix/admin/upstreams/2a212dd9",
"cluster": "default"}
### Steps to Reproduce
1. Install APISIX, APISIX ingress controller and APISIX dashboard with the
helm chart.
2. Create a ApisixUpstream with below template
```
apiVersion: apisix.apache.org/v2
kind: ApisixUpstream
metadata:
name: api-test-upstream
namespace: apisix
spec:
scheme: https
loadbalancer:
type: roundrobin
discovery:
serviceName: apisix/api-test:http
type: kubernetes
passHost: pass
```
3. Verify the created resource in cluster
### Environment
APISIX version : - 3.8.0
Operating system : Linux apisix-647b4867df-79542 5.4.0-136-generic test:
only check part of schema.
https://github.com/apache/apisix/pull/153~18.04.1-Ubuntu SMP Wed Nov 30
15:47:57 UTC 2022 x86_64 GNU/Linux
OpenResty / Nginx version (run openresty -V or nginx -V):
nginx version: openresty/1.21.4.2
built by gcc 10.2.1 20210110 (Debian 10.2.1-6)
built with OpenSSL 3.2.0 23 Nov 2023
TLS SNI support enabled
APISIX Dashboard version: 3.0.0
APISIX ingress controller version: 1.8.0
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]