Kubernetes Cluster Construction (7): FAQs and Handling

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.