Especially when creating pods, you will encounter all kinds of problems, please check the error details by the following command.
Kubectl describe pod xxxxxx
1. Problem phenomenon: Mirroring is always not getting down
WORKAROUND: Set up a mirror source for Docker
--registry-mirror=http://f2d6cb40.m.daocloud.io'
2. Symptom: There is a certificate error in the error message, certificate xxxx, execute on node nodes
Yum Install *rhsm*-y
3. Problem phenomenon: When using the Docker private library, when prompted Http:server gave HTTP response to HTTPS client
Echo ' {"insecure-registries": ["192.168.100.6:5000"]} ' >/etc/docker/daemon.json
192.168.100.6:5000 the IP address and port of the private library
4. Problem phenomenon: cannot ping the corresponding IP after pod boot success
1. Verify that the firewall is turned off
2. Iptables-p FORWARD ACCEPT
5. Problem symptom: Cannot ping service IP address
Service IP address cannot be directly ping and must be inside the container to access
Test with Curl Ip:port/url
Via Telnet IP port test
6. Symptom: Kubectl create-f xxx.yaml prompt format is incorrect
Workaround:Yaml is very strict in format requirements, indentation must use a space cannot be tab, Key:value,: There is a space behind
7.YAML ENV environment variable name cannot be used in Java common attribute variable format such as Server.port Point in Yaml should be used server_url such
Kubernetes Cluster Construction (7): frequently asked questions and handling