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 a 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.
Using the VMware Cloud Director Tenant Portal, you can view the Content Hub operator version and whether the version is up to date, deprecated, not supported, or there is an available update.
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 primary left navigation panel, select Content Hub.
- From the secondary left panel, select Kubernetes Clusters.
- Click the radio button next to 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 primary left navigation panel, select Content Hub.
- From the secondary left panel, select Kubernetes Clusters.
- Click the radio button next to 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.
Procedure
Manage the User Access to a Kubernetes Cluster in Your VMware Cloud Director Tenant Portal
To grant or restrict access to a Kubernetes cluster, you can change the user access levels or remove user permissions.
Prerequisites
- Verify that you have permissions on the Kubernetes cluster. You must have one of the following permission levels:
- Granted Administrator Full Control: VMWARE: CAPVCDCLUSTER right
- Granted Full Control: VMWARE: CAPVCDCLUSTER right and Full Control cluster entity ACL entry.
See Manage the User Access to a Kubernetes Cluster in Your VMware Cloud Director Tenant Portal and Manage the Namespace Access to a Kubernetes Cluster in Your VMware Cloud Director Tenant Portal.
Procedure
Manage the Namespace Access to a Kubernetes Cluster in Your VMware Cloud Director Tenant Portal
You can use namespaces to divide and isolate cluster resources between the users of your organization.
Prerequisites
- Verify that you have the Manage Kubernetes Namespace ACL right.
- Verify that you have permissions on the Kubernetes cluster. You must have one of the following permission levels:
- Granted Administrator Full Control: VMWARE: CAPVCDCLUSTER right
- Granted Full Control: VMWARE: CAPVCDCLUSTER right and Full Control ACL of the target Kubernetes cluster
See Manage the User Access to a Kubernetes Cluster in Your VMware Cloud Director Tenant Portal and Manage the Namespace Access to a Kubernetes Cluster in Your VMware Cloud Director Tenant Portal.