yujinchoi-94 commented on issue #1693:
URL:
https://github.com/apache/apisix-ingress-controller/issues/1693#issuecomment-1480645877
@AlinsRan
I've just tried like you suggested (Create ApisixPluginConfig first and then
ApisixRoute)
However it isn't working.
Here's what I've tried.
```
k describe apisixpluginconfig openapi-alimi-plugin-config
Name: openapi-alimi-plugin-config
Namespace: ingress-apisix
Labels: argocd.argoproj.io/instance=dev-apisix
Annotations: <none>
API Version: apisix.apache.org/v2
Kind: ApisixPluginConfig
Metadata:
Creation Timestamp: 2023-03-23T05:42:39Z # created first.
Generation: 1
Managed Fields:
API Version: apisix.apache.org/v2
Fields Type: FieldsV1
fieldsV1:
f:status:
.:
f:conditions:
Manager: apisix-ingress-controller
Operation: Update
Time: 2023-03-23T05:42:39Z
API Version: apisix.apache.org/v2
Fields Type: FieldsV1
fieldsV1:
f:metadata:
f:annotations:
.:
f:kubectl.kubernetes.io/last-applied-configuration:
f:labels:
.:
f:argocd.argoproj.io/instance:
f:spec:
.:
f:plugins:
Manager: argocd-application-controller
Operation: Update
Time: 2023-03-23T05:42:39Z
Resource Version: 542795381
UID: 36adc3ef-1b45-456d-9d08-3d1ce4ba36a5
Spec:
Plugins:
Config:
request_headers:
***
request_method: GET
upstream_headers:
***
Uri: ***
Enable: true
Name: forward-auth
Config:
Disable: false
prefer_name: true
Enable: true
Name: prometheus
Config:
Uri:
http://openapi-logging.openapi-logging.svc.cluster.local:8080/v1/logging
Enable: true
Name: http-logger
Config:
Headers:
***
Uri: ***
Enable: true
Name: proxy-rewrite
Status:
Conditions:
Message: Sync Successfully
Observed Generation: 1
Reason: ResourcesSynced
Status: True
Type: ResourcesAvailable
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal ResourcesSynced 2m4s (x4 over 11m) ApisixIngress ApisixIngress
synced successfully
```
```
k describe apisixroute openapi-alimi-route
Name: openapi-alimi-route
Namespace: ingress-apisix
Labels: argocd.argoproj.io/instance=dev-apisix
Annotations: <none>
API Version: apisix.apache.org/v2
Kind: ApisixRoute
Metadata:
Creation Timestamp: 2023-03-23T05:53:13Z
Generation: 1
Managed Fields:
API Version: apisix.apache.org/v2
Fields Type: FieldsV1
fieldsV1:
f:status:
.:
f:conditions:
Manager: apisix-ingress-controller
Operation: Update
Time: 2023-03-23T05:53:13Z
API Version: apisix.apache.org/v2
Fields Type: FieldsV1
fieldsV1:
f:metadata:
f:annotations:
.:
f:kubectl.kubernetes.io/last-applied-configuration:
f:labels:
.:
f:argocd.argoproj.io/instance:
f:spec:
.:
f:http:
Manager: argocd-application-controller
Operation: Update
Time: 2023-03-23T05:53:13Z
Resource Version: 542802079
UID: b8e9a2e9-29d1-42c6-83c9-a866b52b010e
Spec:
Http:
Match:
Hosts:
***
Paths:
***
Name: rule-alimi
plugin_config_name: openapi-alimi-plugin-config
Priority: 1
Upstreams:
Name: cv-upstream
Status:
Conditions:
Message: Sync Successfully
Observed Generation: 1
Reason: ResourcesSynced
Status: True
Type: ResourcesAvailable
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal ResourcesSynced 29s (x2 over 29s) ApisixIngress ApisixIngress
synced successfully
```
Even though ApisixRoute created first, I think it should work normally after
ApisixPluginConfig is created.
Also, it would be good if i could know that kind of situation through events
or at least logs. I can't find any logs related with that.
--
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]