Skip to content

Remove type suffixes #544

@jacobtomlinson

Description

@jacobtomlinson

When creating a DaskCluster with dask_kubernetes.experimental.KubeCluster the name you specify gets -cluster added onto the name.

from dask_kubernetes.experimental import KubeCluster

cluster = KubeCluster(name='foo')
$ kubectl get dsk
NAME                  AGE
foo-cluster           7m32s

return f"{self.name}-cluster"

Also the service that gets created has -service added to the end of its name.

$ kubectl get svc -l dask.org/cluster-name=foo-cluster
NAME                          TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)             AGE
foo-cluster-service           ClusterIP   10.96.223.217   <none>        8786/TCP,8787/TCP   8m27s

"name": f"{name}-service",

Both of these feel a little redundant given their resource types and also require a little working around to convert the names back and forth. I think it would be good to remove these suffixes.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions