Hi everyone! :wave: I have the following PodTempl...
# flyte-support
a
Hi everyone! 👋 I have the following PodTemplate in the
ohli-core-development
namespace, which sets the
priorityClassName
to
medium
for all Flyte pods in this namespace:
Copy code
apiVersion: v1
kind: PodTemplate
metadata:
  name: ohli-template
  namespace: ohli-core-development
template:
  metadata:
    pod-template-name: ohli-template
    pod-template-namespace: ohli-core-development
  spec:
    priorityClassName: medium
    containers:
      - name: primary
        image: 
<http://docker.io/rwgrim/docker-noop|docker.io/rwgrim/docker-noop>
        imagePullPolicy: IfNotPresent
        volumeMounts:
          - mountPath: /mnt
            name: mnt-volume
    volumes:
      - hostPath:
          path: /mnt
        name: mnt-volume
My question is: Can I assign differen
priorityClassName
values within the same namespace in Flyte? Specifically, I want to set the
priorityClassName
to
medium
for pods whose names start with
local_
, while setting the
priorityClassName
to
high
for all other pods in the
ohli-core-development
namespace. Is there a way to achieve this using PodTemplates or other configuration in Flyte? Thanks in advance for your help! 🙏
a
you can have another PodTemplate in the same namespace and just call it from your task. What I don't think Flyte supports is setting a particular config based on the pod name, something that is tied to the execution ID and couldn't be
local_
or anything