MarsSec773 opened a new issue #3184:
URL: https://github.com/apache/apisix/issues/3184
### Issue description
I'm trying to deploy apisix on k8s environment. I tested successfully on
IPv4 environment, but I failed to deploy it on IPv6 environment.
- Kubectl Error log:
```
I0104 15:24:57.263301 19005 round_trippers.go:443] GET https://[<k8s api
server>]:6443/api/v1/namespaces/<namespace>/pods/apisix-server-869d4bd9b5-q2w7j/log
200 OK in 5 milliseconds
I0104 15:24:57.263340 19005 round_trippers.go:449] Response Headers:
I0104 15:24:57.263355 19005 round_trippers.go:452] Content-Type:
text/plain
I0104 15:24:57.263369 19005 round_trippers.go:452] Date: Mon, 04 Jan
2021 06:24:57 GMT
I0104 15:24:57.263381 19005 round_trippers.go:452] Cache-Control:
no-cache, private
/usr/local/openresty/luajit/bin/luajit:
/usr/local/apisix/deps/share/lua/5.1/tinyyaml.lua:641: failed to classify line:
<IPv6 Address of DNS>
stack traceback:
[C]: in function 'error'
/usr/local/apisix/deps/share/lua/5.1/tinyyaml.lua:641: in function
'parsemap'
/usr/local/apisix/deps/share/lua/5.1/tinyyaml.lua:504: in function
'parseseq'
/usr/local/apisix/deps/share/lua/5.1/tinyyaml.lua:675: in function
'parsemap'
/usr/local/apisix/deps/share/lua/5.1/tinyyaml.lua:735: in function
'parsedocuments'
/usr/local/apisix/deps/share/lua/5.1/tinyyaml.lua:760: in function
'parse'
/usr/local/apisix/apisix/cli/file.lua:196: in function 'read_yaml_conf'
/usr/local/apisix/apisix/cli/ops.lua:131: in function
</usr/local/apisix/apisix/cli/ops.lua:122>
/usr/local/apisix/apisix/cli/ops.lua:453: in function 'execute'
/usr/bin/apisix:37: in main chunk
[C]: at 0x559105f17320
```
This is config.yaml file setup:
```
apisix:
node_listen: 9080 # APISIX listening port
enable_ipv6: true
allow_admin: #
http://nginx.org/en/docs/http/ngx_http_access_module.html#allow
- 0.0.0.0/0 # We need to restrict ip access rules for
security. 0.0.0.0/0 is for test.
admin_key:
- name: "admin"
key: <secret>
role: admin # admin: manage all configuration data
# viewer: only can view configuration data
- name: "viewer"
key: <secret>
role: viewer
dns_resolver:
- fxx4:cxxb:3xx9:8xxc:xxx:1x:0:xx0a
etcd:
host: # it's possible to define multiple etcd
hosts addresses of the same etcd cluster.
- "http://[fxx4:xxxb:xxx9:8xxx:xx2:1x:0:bxx0]:12379"
prefix: "/apisix" # apisix configurations prefix
timeout: 30 # 30 seconds
```
### Environment
* apisix version (cmd: `apisix version`): apisix 1.2
* OS: CentOS Linux 7 (Core)
* Code referred from:
https://github.com/apache/apisix/tree/master/kubernetes
### What's the actual result? (including assertion message & call stack if
applicable)
```
kubectl get pods
NAME READY STATUS RESTARTS AGE
apisix-server-869d4bd9b5-q2w7j 0/1 CrashLoopBackOff 10 31m`
```
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]