To enable tenants with provisioned Kubernetes clusters to deploy container applications from configured VMware Marketplace and Helm chart repository content resources into VMware Cloud Director catalogs, you must install the Kubernetes operator.
Configuration of the Kubernetes Cluster Owner
The Kubernetes cluster owner is the tenant user that deploys and has administrative control over the Kubernetes cluster.
The Kubernetes operator uses the API token of the Kubernetes cluster owner for communication with VMware Cloud Director and for carrying out container application management operations.
To enable the installation of the Kubernetes operator, an organization administrator must first assign additional permissions to the owner of the Kubernetes cluster where the operator is going to be installed.
Install a Kubernetes Operator in Your VMware Cloud Director Tenant Portal
To deploy container applications from external content sources, in VMware Cloud Director Tenant Portal, you must install a Kubernetes operator.
Prerequisites
- Verify that the owner of the Kubernetes cluster, where you are installing the operator, has the following permissions.
- All rights from the global Kubernetes Cluster Author role. The Kubernetes Cluster Author role is automatically created during the VMware Cloud Director Container Service Extension server configuration process. For more information, see the VMware Cloud Director Container Service Extension documentation.
- Full management control of the Kubernetes cluster.
- The additional VMware Cloud Director rights: Manage Container App, Reconcile Container App, and Full Control: VMWARE: KUBECLUSTEREXTENSION.
- Verify that you have full administrative control of the Kubernetes cluster, where you are installing the Kubernetes operator, and the Full Control: VMWARE:CAPVCDCLUSTER and View: VMWARE: KUBECLUSTEREXTENSION rights.
Procedure
- From the top navigation bar, select Content Hub.
- From the left panel, select Kubernetes Operator.
- On the Kubernetes Operator page, select the Kubernetes cluster on which you want to install the Kubernetes operator, and click Install Operator.
- Select the type of the source location for the Kubernetes operator package.
Option Description VMware Registry If the Kubernetes cluster has access to the Internet, you can install the Kubernetes operator by using the official Content Hub Kubernetes operator package from the public VMware container registry.
Custom Registry If the Kubernetes cluster does not have access to the Internet, install the Kubernetes operator by using a custom registry.
You must clone the official Content Hub Kubernetes operator package from the public VMware container registry to your custom registry. The Content Hub Kubernetes operator package must be in the Carvel format and you must use the Carvel imgpkg tool for cloning the package. For information about the imgpkg tool, see the Carvel imgpkg documentation.
Note: To use custom registry, copy the version of the official Content Hub Kubernetes operator package from the public VMware container registry. - If you want to use a custom registry, enter the path to the custom registry that stores the cloned Content Hub Kubernetes operator package, and the version of the official Content Hub Kubernetes operator package from the public VMware container registry.
- Click Install Operator.
Results
Edit a Kubernetes Operator in Your VMware Cloud Director Tenant Portal
Using the VMware Cloud Director Tenant Portal, you can update the package location and redeploy the Kubernetes operator.
Prerequisites
- Verify that the owner of the Kubernetes cluster, where you are installing the operator, has the following permissions.
- All rights from the global Kubernetes Cluster Author role. The Kubernetes Cluster Author role is automatically created during the VMware Cloud Director Container Service Extension server configuration process. For more information, see the VMware Cloud Director Container Service Extension documentation.
- Full management control of the Kubernetes cluster.
- The additional VMware Cloud Director rights: Manage Container App, Reconcile Container App, and Full Control: VMWARE: KUBECLUSTEREXTENSION.
- Verify that you have full administrative control of the Kubernetes cluster, where you are installing the Kubernetes operator, and the Full Control: VMWARE:CAPVCDCLUSTER and View: VMWARE: KUBECLUSTEREXTENSION rights.
Procedure
- From the top navigation bar, select Content Hub.
- From the left panel, select Kubernetes Operator.
- On the Kubernetes Operator page, select the Kubernetes cluster on which you want to update the Kubernetes operator, and click Edit Operator.
- Select the type of the source location for the Kubernetes operator package.
Option Description VMware Registry If the Kubernetes cluster has access to the Internet, you can install the Kubernetes operator by using the official Content Hub Kubernetes operator package from the public VMware container registry.
Custom Registry If the Kubernetes cluster does not have access to the Internet, install the Kubernetes operator by using a custom registry.
You must clone the official Content Hub Kubernetes operator package from the public VMware container registry to your custom registry. The Content Hub Kubernetes operator package must be in the Carvel format and you must use the Carvel imgpkg tool for cloning the package. For information about the imgpkg tool, see the Carvel imgpkg documentation.
Note: To use custom registry, copy the version of the official Content Hub Kubernetes operator package from the public VMware container registry. - If you want to use a custom registry, enter the path to the custom registry that stores the cloned Content Hub Kubernetes operator package, and the version of the official Content Hub Kubernetes operator package from the public VMware container registry.
- Click Edit Operator.
Uninstall a Kubernetes Operator from Your VMware Cloud Director Tenant Portal
You can delete the Kubernetes operator and all container applications it manages from the VMware Cloud Director Tenant Portal by uninstalling the operator.
After uninstalling the Kubernetes operator from Content Hub, you must delete the Kubernetes operator namespaces and resources from the Kubernetes cluster.
Prerequisites
- Verify that the owner of the Kubernetes cluster, where you are installing the operator, has the following permissions.
- All rights from the global Kubernetes Cluster Author role. The Kubernetes Cluster Author role is automatically created during the VMware Cloud Director Container Service Extension server configuration process. For more information, see the VMware Cloud Director Container Service Extension documentation.
- Full management control of the Kubernetes cluster.
- The additional VMware Cloud Director rights: Manage Container App, Reconcile Container App, and Full Control: VMWARE: KUBECLUSTEREXTENSION.
- Verify that you have full administrative control of the Kubernetes cluster, where you are installing the Kubernetes operator, and the Full Control: VMWARE:CAPVCDCLUSTER and View: VMWARE: KUBECLUSTEREXTENSION rights.