When I run kubectl get svc -n kube-system
it tells me:
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kube-dns ClusterIP xx.xx.xx.xx <none> 53/UDP,53/TCP 13h
But when I try to kubectl edit svc/kube-dns -n kube-system
:
error: services "kube-dns" is invalid
A copy of your changes has been stored to "/tmp/kubectl-edit-4p5gn.yaml"
error: Edit cancelled, no valid changes were saved.
I am unable to change it to a LoadBalancer...any ideas?
I also tried to create a new kube-dns also but I am unable to get an external-ip; it stays stuck in pending state.
kind: Service
metadata:
name: kubedns-bkp
namespace: kube-system
labels:
k8s-app: kube-dns
spec:
type: LoadBalancer
ports:
- port: 53
protocol: UDP
selector:
k8s-app: kube-dns
kubectl get svc -n kube-system
reports:
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubedns-bkp LoadBalancer xx.xx.xx.xx <pending> 53:32115/UDP 5h
Note: I have created k8s cluster with ELB integration, for other services I successfully get external IPs.