You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Removing dashboard_namespace variable from inventory/devk8s/group_vars/k8s-cluster/addons.yml solves the issue but deploys dashboard in kube-system namespace.
The text was updated successfully, but these errors were encountered:
I had same issue.
The namespace is just not created before applying the manifest, so beside your solution, you could have just created the namespace manually on the cluster:
kubectl create ns kube-dashboard
A step should be added to create the dashboard namespace if it's something else than kube-system
Environment:
Cloud provider or hardware configuration:
ESXi VMs
OS (
printf "$(uname -srm)\n$(cat /etc/os-release)\n"
):Linux 4.18.0-147.8.1.el8_1.x86_64 x86_64
NAME="CentOS Linux"
VERSION="8 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Linux 8 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-8"
CENTOS_MANTISBT_PROJECT_VERSION="8"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="8"
Version of Ansible (
ansible --version
):ansible 2.9.6
config file = /home/username/.ansible.cfg
configured module search path = ['/home/username/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python3.7/site-packages/ansible
executable location = /usr/local/bin/ansible
python version = 3.7.4 (default, Oct 11 2019, 11:15:58) [Clang 8.0.1 (tags/RELEASE_801/final)]
Version of Python (
python --version
):Python 3.7.4
Kubespray version (commit) (
git rev-parse --short HEAD
):01dbc90
Network plugin used:
calico
Full inventory with variables (
ansible -i inventory/sample/inventory.ini all -m debug -a "var=hostvars[inventory_hostname]"
):https://gist.github.com/karlism/653a887fc29f87ea15142e6d8e793e1a
Command used to invoke ansible:
ansible-playbook cluster.yml -i inventory/devk8s/inventory.ini -b
Output of ansible run:
error when creating "/etc/kubernetes/dashboard.yml": namespaces "kube-dashboard" not found
Anything else do we need to know:
Removing
dashboard_namespace
variable frominventory/devk8s/group_vars/k8s-cluster/addons.yml
solves the issue but deploys dashboard inkube-system
namespace.The text was updated successfully, but these errors were encountered: