Skip to main content
Version: 0.7.0

KubeSlice Controller-generated Events

The KubeSlice Controller generates events that represents an operation that occurs on the controller cluster. All of these generated events are specific to KubeSlice operations.

By default, the controller events are logged in the following namespaces:

kubeslice-controller Namespace Events

This section describes the events that are generated on the kubeslice-controller namespace. Use the following command to get the kubeslice-controller namespace events:

kubectl get events -n kubeslice-controller

Project

These events are related to the KubeSlice projects that you create on the controller cluster.

Sl. NoEventTypeDescription
1ProjectDeletedWARNINGThe project has been deleted.
2ProjectDeletionFailedWARNINGThe project deletion has failed.

Namespace

These events are related to the project namespace in the controller cluster.

Sl. NoEventTypeDescription
1NamespaceCreatedNORMALThe namespace has been created.
2NamespaceCreationFailedWARNINGThe namespace creation has failed.
3NamespaceDeletedWARNINGThe namespace has been deleted.
4NamespaceDeletionFailedWARNINGThe namespace deletion has failed.

kubeslice-project Namespace Events

This section describes the events that are generated on the kubeslice-project namespace. Use the following command to get the kubeslice-project namespace events:

kubectl get events -n kubeslice-project

Access Control

These events are associated with Kubernetes RBAC on the controller cluster.

Sl. NoEventTypeDescription
1WorkerClusterRoleCreatedNORMALThe worker cluster role has been created.
2WorkerClusterRoleCreationFailedWARNINGThe worker cluster role creation has failed.
3WorkerClusterRoleUpdatedNORMALThe worker cluster role has been updated.
4WorkerClusterRoleUpdateFailedWARNINGThe worker cluster role update has failed.
5ReadOnlyRoleCreatedNORMALThe read-only role has been created.
6ReadOnlyRoleCreationFailedWARNINGThe read-only role creation has failed.
7ReadOnlyRoleUpdatedNORMALThe read-only role has been updated.
8ReadOnlyRoleUpdateFailedWARNINGThe read-only role update has failed.
9ReadWriteRoleCreatedNORMALThe read-write role has been created.
10ReadWriteRoleCreationFailedWARNINGThe read-write role creation has failed.
11ReadWriteRoleUpdatedNORMALThe read-write role has been updated.
12ReadWriteRoleUpdateFailedWARNINGThe read-write role update has failed.
13ServiceAccountCreatedNORMALThe service account has been created.
14ServiceAccountCreationFailedWARNINGThe service account creation has failed.
15ServiceAccountSecretCreatedNORMALThe service account secret has been updated.
16ServiceAccountSecretCreationFailedWARNINGThe service account secret creation has failed.
17DefaultRoleBindingCreatedNORMALThe default role binding has been created.
18DefaultRoleBindingCreationFailedWARNINGThe default role binding creation has failed.
19DefaultRoleBindingUpdatedNORMALThe default role binding has been deleted.
20DefaultRoleBindingDeletedWARNINGThe service account creation has failed.
21InactiveRoleBindingDeletedWARNINGThe inactive role binding has been deleted.
22InactiveRoleBindingDeletionFailedWARNINGThe inactive role binding deletion has failed.
23InactiveServiceAccountDeletedWARNINGThe inactive service account has been deleted.
24InactiveServiceAccountDeletionFailedWARNINGThe inactive service account deletion has failed.
25ServiceAccountDeletedWARNINGThe service account has been deleted.
26ServiceAccountDeletionFailedWARNINGThe service account deletion has failed.
27SecretDeletedWARNINGThe service account secret has been deleted.
28SecretDeletionFailedWARNINGThe service account secret deletion has failed.

Cluster

These events associated with worker cluster deletion are listed below.

Sl. NoEventTypeDescription
1ClusterDeletedWARNINGThe worker cluster has been deleted from KubeSlice.
2ClusterDeletionFailedWARNINGThe worker cluster deletion from KubeSlice has failed.

SliceConfig

These events are related to a slice deletion.

Sl. NoEventTypeDescription
1SliceConfigDeletedWARNINGThe slice has been deleted.
2SliceConfigDeletionFailedWARNINGThe slice deletion has failed.

ServiceExportConfig

These events are related to the service export of a worker cluster.

Sl. NoEventTypeDescription
1ServiceExportConfigDeletedWARNINGThe service export configuration has been deleted.
2ServiceExportConfigDeletionFailedWARNINGThe service export configuration deletion has failed.

SliceQoSConfig

These events are related to a slice quality-of-service (QoS) profile.

Sl. NoEventTypeDescription
1SliceQoSConfigDeletedWARNINGThe slice QoS configuration has been deleted.
2SliceQoSConfigDeletionFailedWARNINGThe slice QoS configuration deletion has failed.

WorkerServiceImport

These events are related to the worker objects of service import of a worker cluster.

Sl. NoEventTypeDescription
1WorkerServiceImportDeletedForcefullyWARNINGThe worker service import has been deleted forcefully.
2WorkerServiceImportRecreationFailedWARNINGThe worker service import recreation has failed after forceful deletion.
3WorkerServiceImportRecreatedNORMALThe worker service import has been recreated after forceful deletion.
4WorkerServiceImportCreationFailedWARNINGThe worker service import creation has failed.
5WorkerServiceImportCreatedNORMALThe worker service import has been created.
6WorkerServiceImportUpdateFailedWARNINGThe worker service import update has failed.
7WorkerServiceImportUpdatedNORMALThe worker service import has been updated.
8WorkerServiceImportDeletedWARNINGThe worker service import has been deleted.
9WorkerServiceImportDeletionFailedWARNINGThe worker service import deletion has failed.

WorkerSliceConfig

These events are related to the worker objects of a slice. A worker object is automatically generated after slice creation. A worker object is created for every worker cluster connected to a slice.

Sl. NoEventTypeDescription
1WorkerSliceConfigDeletedForcefullyWARNINGThe worker slice configuration has been deleted forcefully.
2WorkerSliceConfigRecreationFailedWARNINGThe worker slice configuration recreation has failed after forceful deletion.
3WorkerSliceConfigRecreatedNORMALThe worker slice configuration has been recreated after forceful deletion.
4WorkerSliceConfigCreationFailedWARNINGThe worker slice configuration creation has failed.
5WorkerSliceConfigCreatedNORMALThe worker slice configuration has been created.
6WorkerSliceConfigUpdateFailedWARNINGThe worker slice configuration update has failed.
7WorkerSliceConfigUpdatedNORMALThe worker slice configuration has been updated.
8WorkerSliceConfigDeletedWARNINGThe worker slice configuration has been deleted.
9WorkerSliceConfigDeletionFailedWARNINGThe worker slice configuration deletion has failed.

WorkerSliceGateway

These events are related to the worker slice gateways for a slice with more than one worker cluster. The number of worker slice gateways on a slice is equal to n * (n-1), where n is the total number of worker clusters on that slice.

Sl. NoEventTypeDescription
1WorkerSliceGatewayDeletedForcefullyWARNINGThe worker slice gateway has been deleted forcefully.
2WorkerSliceGatewayRecreationFailedWARNINGThe worker slice gateway recreation has failed after forceful deletion.
3WorkerSliceGatewayRecreatedNORMALThe worker slice gateway has been recreated after forceful deletion.
4WorkerSliceGatewayCreationFailedWARNINGThe worker slice gateway creation has failed.
5WorkerSliceGatewayCreatedNORMALThe worker slice gateway has been created.
6SliceGatewayJobCreationFailedWARNINGThe worker slice gateway job creation has failed.
7SliceGatewayJobCreatedNORMALThe worker slice gateway job has been created.
8WorkerSliceGatewayDeletedWARNINGThe worker slice gateway has been deleted.
9WorkerSliceGatewayDeletionFailedWARNINGThe worker slice gateway deletion has failed.

Disable Controller Events

You can disable all the KubeSlice Controller events or a few of them.

Disable All the KubeSlice Controller Events

If you want to disable all the events, then edit the KubeSlice Controller configuration file and set the following configuration for events.

  events:
disabled: true

After changing the configuration, use the following command to update the KubeSlice Controller:

helm upgrade kubeslice-controller kubeslice/kubeslice-controller -f <full path of the values.yaml> -n kubeslice-controller

Where values.yaml is the KubeSlice Controller configuration file.

Disable a Few KubeSlice Controller Events

If you do not want to see a KubeSlice Controller event, then you can list it under disabledEvents in the kubeslice-controller-event-schema-conf file that is located in the kubeslice-controller namespace.

For example, if you do not want to see the WorkerSliceConfigCreated event, then go to the kubeslice-controller-event-schema-conf file using the following command:

kubectl edit cm kubeslice-controller-event-schema-conf -n kubeslice-controller

In the kubeslice-controller-event-schema-conf file, add the WorkerSliceConfigCreated event that you want to hide under disabledEvents as illustrated below.

# Please edit the object below. Lines beginning with a '#' will be ignored,
# and an empty file will abort the edit. If an error occurs while saving this file will be
# reopened with the relevant failures.
#
apiVersion: v1
data:
controller.yaml: |-
disabledEvents:
- WorkerSliceConfigCreated
kind: ConfigMap
metadata:
annotations:
meta.helm.sh/release-name: kubeslice-controller
meta.helm.sh/release-namespace: kubeslice-controller
creationTimestamp: "2023-04-10T07:32:57Z"
labels:
app.kubernetes.io/managed-by: Helm
name: event-schema
name: kubeslice-controller-event-schema-conf
namespace: kubeslice-controller
resourceVersion: "201971"
uid: 6cbcaba7-08b8-4d2e-b880-7516f594950f

Save the file after adding the events that you want to disable.