Configuring k8s-dashboard using exposed ApiServer did not work as k8s documentation describes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
CDK Addons |
Triaged
|
Medium
|
Unassigned | ||
Kubernetes Control Plane Charm |
Triaged
|
Medium
|
Unassigned |
Bug Description
I am currently trying to configure kubernetes-
I currently have a cluster with exposed API Server via Kubeapi-LB VIP to 10.66.0.20.
Bug related to:
https:/
$ kubectl get svc --all-namespaces
NAMESPACE NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
default kubernetes ClusterIP 10.152.183.1 <none> 443/TCP 11h
kube-system heapster ClusterIP 10.152.183.168 <none> 80/TCP 11h
kube-system kube-controller
kube-system kube-dns ClusterIP 10.152.183.240 <none> 53/UDP,
kube-system kube-scheduler-
kube-system kubelet ClusterIP None <none> 10250/TCP 3h35m
kube-system kubernetes-
kube-system metrics-server ClusterIP 10.152.183.19 <none> 443/TCP 11h
kube-system monitoring-grafana ClusterIP 10.152.183.129 <none> 80/TCP 11h
kube-system monitoring-influxdb ClusterIP 10.152.183.7 <none> 8083/TCP,8086/TCP 11h
monitoring alertmanager-main ClusterIP 10.152.183.8 <none> 9093/TCP 3h39m
monitoring alertmanager-
monitoring grafana ClusterIP 10.152.183.9 <none> 3000/TCP 3h39m
monitoring kube-state-metrics ClusterIP None <none> 8443/TCP,9443/TCP 3h39m
monitoring node-exporter ClusterIP None <none> 9100/TCP 3h39m
monitoring prometheus-k8s ClusterIP 10.152.183.42 <none> 9090/TCP 3h39m
monitoring prometheus-operated ClusterIP None <none> 9090/TCP 3h38m
monitoring prometheus-operator ClusterIP None <none> 8080/TCP 3h39m
Trying:
$ wget https:/
--2019-08-02 07:20:32-- https:/
Connecting to 10.152.
WARNING: cannot verify 10.152.183.62's certificate, issued by ‘CN=.’:
Self-signed certificate encountered.
WARNING: certificate common name ‘.’ doesn't match requested host name ‘10.152.183.62’.
HTTP request sent, awaiting response... 404 Not Found
2019-08-02 07:20:32 ERROR 404: Not Found.
How can I expose kubernetes-
The correct URL should have the IP of the Kubernetes API, not the IP of the kubernetes- dashboard service. Try this: https:/ /10.66. 0.20:443/ api/v1/ namespaces/ kube-system/ services/ https:kubernete s-dashboard: /proxy/
Alternatively, you can use `kubectl proxy` as covered in our docs on this page: https:/ /ubuntu. com/kubernetes/ docs/operations