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
{{ message }}
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.
I created my cluster(k8s 1.8) by kubeadm on 2 physical server( os:ubuntu 16.04)
$ kubectl get nodes
NAME STATUS AGE VERSION
digital Ready 21m v1.8.0
next Ready 22m v1.8.0
$ kubectl get pods
NAME READY STATUS RESTARTS AGE
wordpress-76b66d5644-76rtc 1/1 Running 4 7m
wordpress-mysql-5cdbc78858-vxnmn 1/1 Running 0 7m
By following this guide , I tried to deploy it on my cluster. WordPress pod was deployed on master node , and mysql pod was deployed on another worker node.
But wordpress pod can not connect mysql.
$ kubectl logs -f wordpress-76b66d5644-76rtc
MySQL Connection Error: (2002) No route to host
Warning: mysqli::mysqli(): (HY000/2002): No route to host in - on line 22
Warning: mysqli::mysqli(): (HY000/2002): No route to host in - on line 22
The text was updated successfully, but these errors were encountered:
I created my cluster(k8s 1.8) by kubeadm on 2 physical server( os:ubuntu 16.04)
By following this guide , I tried to deploy it on my cluster. WordPress pod was deployed on master node , and mysql pod was deployed on another worker node.
But wordpress pod can not connect mysql.
The text was updated successfully, but these errors were encountered: