Uploaded image for project: 'Apache YuniKorn'
  1. Apache YuniKorn
  2. YUNIKORN-334

Configmap updates are not consumed and updated for queues

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Do
    • None
    • 0.11
    • core - scheduler
    • None

    Description

      Update configmap with new property(for example: stateaware app sorting or viceversa) and applied to the queues correctly

      • Apply the below config
        kubectl describe configmaps -n yunikorn yunikorn-configs
        Name:         yunikorn-configs
        Namespace:    yunikorn
        Labels:       app=yunikorn
                      chart=yunikorn-0.9.0
                      heritage=Helm
                      release=yunikorn
        Annotations:  helm.sh/hook: pre-install
                      helm.sh/hook-weight: 2
        
        Data
        ====
        queues.yaml:
        ----
        partitions:
          -
            name: default
            placementrules:
              - name: tag
                value: namespace
                create: true
            queues:
              - name: root
                submitacl: '*'
        
        Events:  <none>
        
      • kubectl create namespace dev7
      • Create an app under this queue
        apiVersion: v1
        kind: Pod
        metadata:
          labels:
            app: sleep-157
            applicationId: sleep-157
          name: sleep-157-2
          namespace: dev7
        spec:
          schedulerName: yunikorn
          restartPolicy: Never
          containers:
            - name: sleep-60s-1
              image: "alpine:latest"
              command: ["sleep", "60"]
              resources:
                requests:
                  cpu: "300m"
                  memory: "300M"
        
      • VErify the queues API response.
        {
        	queuename: "dev7",
        	status: "Active",
        	capacities: {
        		capacity: "[]",
        		maxcapacity: "[]",
        		usedcapacity: "[memory:300 vcore:300]",
        		absusedcapacity: "[]"
        	},
        	queues: null,
        	properties: {
        		application.sort.policy: "stateaware"
        	}
        }
        

      Attachments

        Issue Links

          Activity

            People

              wilfreds Wilfred Spiegelenburg
              ayubpathan Ayub Pathan
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: