Reputation: 2821
I am a newbie to kubernetes and docker and I am following the tutorial at https://cloud.google.com/container-engine/docs/tutorials/hello-wordpress which teaches how to setup a pod running wordpress.
I have setup a GCE instance and have logged into my debian instance and installed docker and kubernetes. But when I specify a file to be used by kubectl, I get a permission error. The command I issue is:
sudo kubernetes/platforms/linux/amd64/kubectl create -f wordpress.json
The error I get is:
Error: Post http://localhost:8080/api/v1beta1/pods?namespace=default: dial tcp 127.0.0.1:8080: connection refused
What am I doing wrong? I suspect a firewall permissions error and I added the following firewall rule to my instance setting.
Source Ranges: 10.0.0.0/8
Allowed Protocols and Port: tcp:1-65535;udp:1-65535;icmp
Upvotes: 0
Views: 806
Reputation: 18200
For the simplest getting started experience on Google's cloud platform, I'd recommend using Google Container Engine to get your cluster up and running.
With one click or a single command line (gcloud alpha container clusters create NAME --zone ZONE
) you can deploy a cluster and get yourself up and running quickly. This allows you to focus your time on using Kubernetes rather than installing Kubernetes.
Upvotes: 1