调研kubernetes的过程中碰到个问题,如下图所示:
    image.png

    1. kubectl create ingress demo-localhost --class=nginx --rule=demo.localdev.me/*=demo:80
    1. zsh: no matches found: --rule=demo.localdev.me/*=demo:80

    编辑.zshrc文件

    1. vim ~/.zshrc

    .zshrc末尾加上setopt no_nomatch

    1. if [ -f ~/.bash_profile ]; then
    2. source ~/.bash_profile
    3. fi
    4. setopt no_nomatch

    使.zshrc文件生效

    1. source ~/.zshrc