...
Code Block | ||||
---|---|---|---|---|
| ||||
$ kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.1.0.4/aio/deploy/recommended.yaml |
...
We need to make a small modification to a .yaml
file, via the command
Code Block | ||||
---|---|---|---|---|
| ||||
$ kubectl -n kubernetes-dashboard edit svc kubernetes-dashboard |
Once the above command has been launched, a .yaml
file will appear. If not already present, make the following change (here an extract of the file already modified)
...
The port value here is generated randomly in the range 30000-32767, after saving the modified file with type: NodePort
(the default value should be ClusterIP
). If you want, you can opt for another value, as long as it belongs to the aforementioned range of values, by relaunching the edit command (here we have chosen the 30000 port, easier to remember). Remember to open the port in the SecurityGroup on OpenStack. We can check if the changes made have had any effect on the service by running the command
...