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
Once execute kubectl apply -f naftis.yaml -n naftis
then execute kubectl -n naftis port-forward --address 0.0.0.0 pod/naftis-ui-866cdb6f9c-dxpkc 34000:80
[root@localhost ~]# kubectl get pods -n naftis
NAME READY STATUS RESTARTS AGE
naftis-api-69c88757f4-4q8bz 0/1 CrashLoopBackOff 5 8m52s
naftis-mysql-679fbf8784-jwd7v 1/1 Running 0 74m
naftis-ui-866cdb6f9c-dxpkc 0/1 CrashLoopBackOff 6 8m52s
naftis-ui :
2020/04/30 07:40:38 [emerg] 1#1: host not found in upstream "naftis-api.naftis.svc.cluster.local:50000" in /etc/nginx/conf.d/default.conf:10
nginx: [emerg] host not found in upstream "naftis-api.naftis.svc.cluster.local:50000" in /etc/nginx/conf.d/default.conf:10
Once execute
kubectl apply -f naftis.yaml -n naftis
then execute
kubectl -n naftis port-forward --address 0.0.0.0 pod/naftis-ui-866cdb6f9c-dxpkc 34000:80
[root@localhost ~]# kubectl get pods -n naftis
NAME READY STATUS RESTARTS AGE
naftis-api-69c88757f4-4q8bz 0/1 CrashLoopBackOff 5 8m52s
naftis-mysql-679fbf8784-jwd7v 1/1 Running 0 74m
naftis-ui-866cdb6f9c-dxpkc 0/1 CrashLoopBackOff 6 8m52s
naftis-ui :
2020/04/30 07:40:38 [emerg] 1#1: host not found in upstream "naftis-api.naftis.svc.cluster.local:50000" in /etc/nginx/conf.d/default.conf:10
nginx: [emerg] host not found in upstream "naftis-api.naftis.svc.cluster.local:50000" in /etc/nginx/conf.d/default.conf:10
naftis-api:
panic: failed to connect database dial tcp: lookup naftis-mysql.naftis.svc.cluster.local on 192.168.0.2:53: read udp 172.17.0.4:56757->192.168.0.2:53: i/o timeout
goroutine 1 [running]:
github.com/xiaomi/naftis/src/api/storer/db.Init()
/home/travis/gopath/src/github.com/xiaomi/naftis/src/api/storer/db/init.go:52 +0x22d
github.com/xiaomi/naftis/src/api/storer.Init()
/home/travis/gopath/src/github.com/xiaomi/naftis/src/api/storer/init.go:23 +0x20
github.com/xiaomi/naftis/src/api/service.Init()
/home/travis/gopath/src/github.com/xiaomi/naftis/src/api/service/init.go:23 +0x20
main.start(0x27afb20, 0xc00f4ffa40, 0x0, 0x2, 0x0, 0x0)
/home/travis/gopath/src/github.com/xiaomi/naftis/src/api/main.go:87 +0x186
github.com/xiaomi/naftis/vendor/github.com/spf13/cobra.(*Command).execute(0x27afb20, 0xc00f4ff9e0, 0x2, 0x2, 0x27afb20, 0xc00f4ff9e0)
/home/travis/gopath/src/github.com/xiaomi/naftis/vendor/github.com/spf13/cobra/command.go:762 +0x473
github.com/xiaomi/naftis/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x27af8c0, 0xc0000ee058, 0x0, 0x1837af9)
/home/travis/gopath/src/github.com/xiaomi/naftis/vendor/github.com/spf13/cobra/command.go:852 +0x2fd
github.com/xiaomi/naftis/vendor/github.com/spf13/cobra.(*Command).Execute(0x27af8c0, 0xc00f55bf88, 0xc0000ee058)
/home/travis/gopath/src/github.com/xiaomi/naftis/vendor/github.com/spf13/cobra/command.go:800 +0x2b
main.main()
/home/travis/gopath/src/github.com/xiaomi/naftis/src/api/main.go:143 +0x2d
The text was updated successfully, but these errors were encountered: