Open rpjeff opened 1 year ago
The example is from Chapter 10 but affects other chapters.
# kubectl apply -f /opt/nginx-selector.yaml The connection to the server localhost:8080 was refused - did you specify the right host or port?
The fix is to copy main config file
# cp /etc/kubernetes/admin.conf ~/.kube/config
It then succeeds,
# kubectl apply -f /opt/nginx-selector.yaml pod/nginx created
The example is from Chapter 10 but affects other chapters.
The fix is to copy main config file
It then succeeds,