When downloading yaml of ingress nginx
wget https://raw.githubusercontent.com/kubernetes/ingress-nginx/nginx-0.30.0/deploy/static/mandatory.yaml -O nginx-ingress-controller.yaml
When deploying ingress nginx, check the pod log and report the following error
Solution:
Add the following hostnetwork: true in yaml, re deploy, or modify the deployment file of pod to deploy the update
Kubernetes hostnetwork: true network
this is a way to define pod network directly
if you use hostnetwork: true to configure the network in pod, the application running in pod can directly see the network interface of the host computer, and all network interfaces on the LAN where the host computer is located can access the application.
After successful deployment, you can log in to the node where the pod is located to view it
netstat -anp |grep LISTEN |grep 80
hostNetwork: true
View log information after deployment
Read More:
- [Solved] socket.gaierror: [Errno 8] nodename nor servname provided, or not known
- [Errno 8] nodename nor servname provided, or not known
- SSH Remote ulimit does not work
- How to Solve Vue Command Not Work Issue in win7_64
- The problem that headers [‘content-type ‘] does not work is set in the Axios get method request interface
- Pull is not possible because you have unmerged files. Please, fix them up in the work tree, and then
- Python’s importerror: DLL load failed: the specified module was not found and the problem was solved
- How to Fix LDPlayer4 Proxy Setting Not Work Issue
- AS3.5 Error gradle project sync failed.Basic functionality(e.g.editing,debugging) will not work
- Vue + element, SCSS plus / deep / style does not work
- In windows, “cmake” is not an internal or external command, nor a runnable program or batch file.
- After the two hosts set up the master-slave replication of MySQL, the show slave status displays: last_ IO_ Error: error connecting to master ……
- Ant Design ‘cross env’ is not an internal or external command, nor is it an error reporting problem for a runnable program
- Error gyp verb ‘which’ failed error: not found: python2 using Vue admin template master
- Debug assembler NTVDM has encountered a system error The equipment connected to the system does not work
- pathspec ‘master’ did not match any files known to git
- SAP Migo 101 receives the work order and reports an error – check table tfbefu_ CR entry 10 does not exist – Countermeasures
- After windows VM is installed successfully, it is always prompted that this application may not work properly