Available in VPC
You might run into the following problems when using Ncloud Kubernetes. Find out causes and possible solutions.
Occurrence of ImagePullBackOff status when creating pods
When creating a pod, an ImagePullBackOff status occurs.
Cause
The ImagePullBackOff status means that the pod is unable to retrieve the image to use. You must identify the detailed causes.
Solution
- If the image name and tag are incorrect, you are unable to retrieve the image. Check the image name and tag.
- If you are retrieving an image from a private registry and authentication cannot be performed, you are unable to retrieve the image. Check whether a correct
imagePullSecretswas used. If you are using the Container Registry service, see Check and manage Container Registry information when creatingimagePullSecrets. - You may not be able to use certain images that are restricted by DockerHub's image download policy. Use the paid subscription model or the private registry.
- In the case of a Kubernetes Cluster that uses a Private Subnet, you must have the outbound traffic enabled to use an external image. To enable outbound traffic:
- NAT Gateway (Old)
- From the NAVER Cloud Platform console, navigate to
> Services > Networking > VPC > NAT Gateway(Old). - Create a NAT Gateway.
- From the VPC environment of the NAVER Cloud Platform console, navigate to
> Services > Networking > VPC > Route Table. - Select the route table of the private subnet that needs Internet communication, and then click [Routes settings].
- Add the route rules for external communication.
- Destination: Enter the destination point’s public IP address in the CIDR format (for example, if the entire Internet is the destination point, enter 0.0.0.0/0).
- Target Type: Select the next hop type to communicate with the destination point (NAT Gateway).
- Target Name: Select the created NAT Gateway name.
- Click [Create].
- From the NAVER Cloud Platform console, navigate to
- NAT Gateway (New)
- From the VPC environment of the NAVER Cloud Platform console, navigate to
> Services > Networking > VPC > NAT Gateway(New). - Create a public NAT Gateway.
- From the VPC environment of the NAVER Cloud Platform console, navigate to
> Services > Networking > VPC > Route Table. - Set the network path to communicate through the NAT Gateway.
- See the Route table setting guide.
- From the VPC environment of the NAVER Cloud Platform console, navigate to
- NAT Gateway (Old)
Intermittent failed DNS lookup and task delays in a specific pod
DNS lookup intermittently failed or took a long time in a specific pod.
Cause
This problem occurs when the image used by the corresponding pod has problems.
Solution
If DNS lookup failed or there is an issue with query processing, check the image used by the corresponding pod.
- Alpine Linux-based container image
- Apply dnsConfig to resolve the issue.
spec: ... dnsConfig: options: - name: single-request-reopen - BusyBox-based container image
- Use the BusyBox 1.28 based images to resolve the issue.
Using the above images may cause issues in DNS query processing. NAVER Cloud Platform is unable to help resolve technical issues concerning images, so use other container images or edit the DNS settings for such issues.
Delayed resources deletion
Resources inside the cluster are not deleted or take a long time.
Cause
This is usually caused by the resource you are deleting having a finalizer set on it, or by dependencies between resources.
Solution
If the deletion of resources is delayed, check and modify the resources settings. Run the commands below.
$ kubectl edit [resource-type] [resource-name]
- Check the resources' finalizer, and remove it if necessary.
- If resources have ownerReferences settings, adjust the deletion order to resolve dependency issues.
If you're still having trouble finding what you need, click on the feedback icon and send us your thoughts and requests. We’ll use your feedback to improve this guide.