"No Signature" and "Unverified Service" Compatibility Warnings Displayed When upgrading Kubernetes Service
search cancel

"No Signature" and "Unverified Service" Compatibility Warnings Displayed When upgrading Kubernetes Service

book

Article ID: 439515

calendar_today

Updated On:

Products

VMware vSphere Kubernetes Service

Issue/Introduction

The vSphere UI displays the following Compatibility Messages during configuration:

  • “Image <harbor_fqdn>/vcf/vks/tkg-service:x.x.x of Service Version x.x.x+vx.xx has no signature and Supervisor is unable to verify the developer's identity.”

  • “Running unverified services on user workloads has security risks. An unverified service has network access to user workloads, vSphere Pods, and exposed APIs.”

Environment

vSphere Kubernetes Service 

vCenter 9.x

Cause

The warnings are triggered because the Kubernetes service package is registered with an incorrect image path pointing to the Harbor repository.

Because the path provided in the YAML definition is incorrect, the Supervisor cannot locate the image in the registry to verify its signature, resulting in the warnings.

Resolution

To resolve this issue, verify the exact repository path in your Harbor registry and update the registered package YAML file to match it.

Check the image path from the supervisor :

First SSH into vCenter and run /usr/lib/vmware-wcp/decryptK8Pwd.py
root@vcenter [ ~ ]# /usr/lib/vmware-wcp/decryptK8Pwd.py
Read key from file
Connected to PSQL
Cluster: domain-c#: <supervisor cluster domain id>
IP: <Supervisor FIP>
PWD: <password>

root@vcenter [ ~ ]# ssh root@<Supervisor FIP>

then run :
kubectl get packages tkg.vsphere.vmware.com.3.6.2+v1.35 -o yaml | grep "image:"

the output looks like :

image: <harbor_fqdn>/vcf/vks3.6.2/tkg-service:3.6.2

Compare it the harbor repository :

if the URL does not match your Harbor repository:

1. Deactivate a Supervisor Service or a Version

2. Delete a Supervisor Service Version

3. Re add the New Version to a Supervisor Service with the corrected URL

The precheck should show :