dask / dask/dask-gateway

How to configure labels in metadata of pod template for Dask Gateway Kubernetes workers non-invasively

Open
#686 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
148
Forks
93
PR merge metrics
No merged PRs in 30d

Description

Is there any way to configure labels in metadata of pod template for Dask Gateway Kubernetes workers non-invasively?

For example, in spec->template->metadata->lablels:

apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
labels:
app: nginx
spec:
replicas: 3
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
**app: nginx**
spec:
containers:
- name: nginx
image: nginx:1.14.2
ports:
- containerPort: 80

I think it can be directly added to the "common_labels".

https://github.com/dask/dask-gateway/blob/5771a3ff3734d487f3114ea3ce408dd5fa9133b0/dask-gateway-server/dask_gateway_server/backends/kubernetes/backend.py#L321

Is there any way to do that non-invasively through values.yaml?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.