diff --git a/plugins/scheduler-k3s/functions.go b/plugins/scheduler-k3s/functions.go index c8ec555e4..314a6d6d2 100644 --- a/plugins/scheduler-k3s/functions.go +++ b/plugins/scheduler-k3s/functions.go @@ -101,6 +101,12 @@ func createKubernetesNamespace(ctx context.Context, namespaceName string) error namespace := &corev1.Namespace{ ObjectMeta: metav1.ObjectMeta{ Name: namespaceName, + Annotations: map[string]string{ + "dokku.com/managed": "true", + }, + Labels: map[string]string{ + "dokku.com/managed": "true", + }, }, } _, err = clientset.Client.CoreV1().Namespaces().Create(ctx, namespace, metav1.CreateOptions{})