[
https://issues.apache.org/jira/browse/YUNIKORN-2230?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kuan-Po Tseng updated YUNIKORN-2230:
------------------------------------
Description:
yunikorn configmap
{code:yaml}
apiVersion: v1
kind: ConfigMap
metadata:
name: yunikorn-configs
namespace: yunikorn
data:
log.level: "DEBUG"
admissionController.filtering.defaultQueue: ""
queues.yaml: |
partitions:
- name: default
placementrules:
- name: provided
create: false
- name: tag
value: namespace
create: true
queues:
- name: root
submitacl: "*"
queues:
- name: sandbox
submitacl: "*"
{code}
test pod
{code:yaml}
apiVersion: v1
kind: Pod
metadata:
labels:
app: sleep
applicationId: "application-sleep-0001"
name: task0
spec:
schedulerName: yunikorn
restartPolicy: Never
containers:
- name: sleep-30s
image: "alpine:latest"
command: ["sleep", "30"]
resources:
requests:
cpu: "100m"
memory: "500M"
{code}
Even though there is no queue name specified for the sleep pod, it's still
submitted to root.sandbox(Shim 's default queue value.) What we expected was
that it should submit the application through 'tag' placement rule.
was:
yunikorn configmap
apiVersion: v1
kind: ConfigMap
metadata:
name: yunikorn-configs
namespace: yunikorn
data:
log.level: "DEBUG"
admissionController.filtering.defaultQueue: ""
queues.yaml: |
partitions:
- name: default
placementrules:
- name: provided
create: false
- name: tag
value: namespace
create: true
queues:
- name: root
submitacl: "*"
queues:
- name: sandbox
submitacl: "*"
test pod
apiVersion: v1
kind: Pod
metadata:
labels:
app: sleep
applicationId: "application-sleep-0001"
name: task0
spec:
schedulerName: yunikorn
restartPolicy: Never
containers:
- name: sleep-30s
image: "alpine:latest"
command: ["sleep", "30"]
resources:
requests:
cpu: "100m"
memory: "500M"
Even though there is no queue name specified for the sleep pod, it's still
submitted to root.sandbox(Shim 's default queue value.) What we expected was
that it should submit the application through 'tag' placement rule.
> Fix placement rule not behave as expected
> -----------------------------------------
>
> Key: YUNIKORN-2230
> URL: https://issues.apache.org/jira/browse/YUNIKORN-2230
> Project: Apache YuniKorn
> Issue Type: Bug
> Reporter: Kuan-Po Tseng
> Assignee: Kuan-Po Tseng
> Priority: Major
>
> yunikorn configmap
> {code:yaml}
> apiVersion: v1
> kind: ConfigMap
> metadata:
> name: yunikorn-configs
> namespace: yunikorn
> data:
> log.level: "DEBUG"
> admissionController.filtering.defaultQueue: ""
> queues.yaml: |
> partitions:
> - name: default
> placementrules:
> - name: provided
> create: false
> - name: tag
> value: namespace
> create: true
> queues:
> - name: root
> submitacl: "*"
> queues:
> - name: sandbox
> submitacl: "*"
> {code}
> test pod
> {code:yaml}
> apiVersion: v1
> kind: Pod
> metadata:
> labels:
> app: sleep
> applicationId: "application-sleep-0001"
> name: task0
> spec:
> schedulerName: yunikorn
> restartPolicy: Never
> containers:
> - name: sleep-30s
> image: "alpine:latest"
> command: ["sleep", "30"]
> resources:
> requests:
> cpu: "100m"
> memory: "500M"
> {code}
> Even though there is no queue name specified for the sleep pod, it's still
> submitted to root.sandbox(Shim 's default queue value.) What we expected was
> that it should submit the application through 'tag' placement rule.
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]