tkg-system kapp-controller-##########-##### 0/2 Init:ImagePullBackOff 0 88m
Events: Type Reason Age From Message ---- ------ ---- ---- ------- Normal BackOff 3m51s (x282 over 68m) kubelet Back-off pulling image "projects.registry.vmware.com/tkg/kapp-controller:v0.30.0_vmware.1"
Private-registry. TKG_CUSTOM_IMAGE_REPOSITORY: Private-registry.domain.com/k8sbuild/projects.registry.vmware.com/tkg
TKG_CUSTOM_IMAGE_REPOSITORY_SKIP_TLS_VERIFY: "false"
TKG_CUSTOM_IMAGE_REPOSITORY_CA_CERTIFICATE: <CERTIFICATE BASE64 ENCODED TEXT DATA>
Ex:
Events: Type Reason Age From Message ---- ------ ---- ---- ------- Normal Scheduled 35s default-scheduler Successfully assigned kube-system/coredns-#########-##### to workload-cluster-md-0-###########-####### Normal Pulling 35s kubelet Pulling image "private-registry.domain.com/k8sbuild/projects.registry.vmware.com/tkg/coredns:v1.8.6_vmware.17" Normal Pulled 12s kubelet Successfully pulled image "private-registry.domain.com/k8sbuild/projects.registry.vmware.com/tkg/coredns:v1.8.6_vmware.17" in 22.805351343s Normal Created 12s kubelet Created container coredns Normal Started 12s kubelet Started container coredns
# kubectl describe pkgi workload_cluster_name-kapp-controller -n <namespace>
Name: workload_cluster_name-kapp-controller
Namespace: default
Labels: <none>
Annotations: tkg.tanzu.vmware.com/cluster-name: workload_cluster_name
tkg.tanzu.vmware.com/cluster-namespace: default
API Version: packaging.carvel.dev/v1alpha1
Kind: PackageInstall
Status:
Conditions:
Message: Error (see .status.usefulErrorMessage for details)
Status: True
Type: ReconcileFailed
Friendly Description: Reconcile failed: Error (see .status.usefulErrorMessage for details)
Last Attempted Version: 0.48.2+vmware.1-tkg.1
Observed Generation: 1
Useful Error Message: kapp: Error: waiting on reconcile deployment/kapp-controller (apps/v1) namespace: tkg-system:
Finished unsuccessfully (Deployment is not progressing: ProgressDeadlineExceeded (message: ReplicaSet "kapp-controller-############" has timed out progressing.))
Version: 0.48.2+vmware.1-tkg.1
Events: <none
projects.registry.vmware.com.
Note: The preceding log excerpts are only examples. Date, time, and environmental variables may vary depending on your environment.
VMware Tanzu Kubernetes Grid.
VMware Tanzu Kubernetes Grid Management (TKGm).
projects.registry.vmware.com/tkg, This caused the workload cluster kapp-controller pod to pull the image from public registry instead of the private registry and since this is an Air-gapped Environments the image pull failed.
Note: Since the workload cluster needs to be created using a private repository, then the management cluster that creates the workload cluster needs to be created using the same private repository