How to test the Openshift Cluster and Machine Autoscaler

oc new-project work-queue


echo 'apiVersion: batch/v1
kind: Job
metadata:
  generateName: work-queue-
spec:
  template:
    spec:
	  tolerations:
	  - effect: NoSchedule
	    key: node-role.kubernetes.io/infra
	    value: reserved
	  - effect: NoExecute
	    key: node-role.kubernetes.io/infra
	    value: reserved
      containers:
      - name: work
        image: busybox
        command: ["sleep", "300"]
        resources:
          requests:
            memory: 2Gi
            cpu: 4
      restartPolicy: Never
  parallelism: 50
  completions: 250' | oc create -f - -n work-queue

oc get jobs -n work-queue

oc get pods -n work-queue  

oc get machineset -n openshift-machine-api

oc get machines -n openshift-machine-api

oc get nodes

oc delete project work-queue
Previous
Next