tutuV opened a new issue #239:
URL: https://github.com/apache/apisix-helm-chart/issues/239
env:
k8s v1.21.0
apisix-helm-chart v0.8.2
apisix values.yaml :
...
discovery:
enabled: true
dns:
servers:
- "192.168.70.237:8600"
...
consul service.json:
{
"id": 1,
"discovery_type": "dns",
"service_name": "createaccount.service.consul",
"type": "roundrobin"
}
install command:
kubectl create ns apisix
helm install apisix apisix \
-f apisix/values.yaml \
--set admin.allow.ipList="{0.0.0.0/0}" \
--set admin.type=LoadBalancer \
--set etcd.enabled=true \
--set etcd.persistence.enabled=false \
--set ingress-controller.enabled=true \
--set ingress-controller.config.apisix.serviceNamespace=apisix \
--set dashboard.enabled=true \
--namespace apisix
//192.168.70.22 is apisix-admin lb ip
curl http://192.168.70.22:9180/apisix/admin/upstreams/1 -H 'X-API-KEY:
edd1c9f034335f136f87ad84b625c8f1' -X PUT -d @service.json
error:
kubectl logs -f apisix-xxx -n apisix
[error] 46#46: *70250 [lua] init.lua:520: http_access_phase(): failed to
set upstream: discovery dns is uninitialized,
--------------------------------
i intend to use consul as service registry and apisix's DNS way as service
discovery
there are too few documents. i don't know how to configure it correctly .
--
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]