|
| 1 | +apiVersion: mcad.ibm.com/v1beta1 |
| 2 | +kind: AppWrapper |
| 3 | +metadata: |
| 4 | + labels: |
| 5 | + orderedinstance: cpu.small_gpu.large |
| 6 | + name: cli-test-cluster |
| 7 | + namespace: ns |
| 8 | +spec: |
| 9 | + priority: 9 |
| 10 | + resources: |
| 11 | + GenericItems: |
| 12 | + - custompodresources: |
| 13 | + - limits: |
| 14 | + cpu: 2 |
| 15 | + memory: 8G |
| 16 | + nvidia.com/gpu: 0 |
| 17 | + replicas: 1 |
| 18 | + requests: |
| 19 | + cpu: 2 |
| 20 | + memory: 8G |
| 21 | + nvidia.com/gpu: 0 |
| 22 | + - limits: |
| 23 | + cpu: 4 |
| 24 | + memory: 6G |
| 25 | + nvidia.com/gpu: 7 |
| 26 | + replicas: 2 |
| 27 | + requests: |
| 28 | + cpu: 3 |
| 29 | + memory: 5G |
| 30 | + nvidia.com/gpu: 7 |
| 31 | + generictemplate: |
| 32 | + apiVersion: ray.io/v1alpha1 |
| 33 | + kind: RayCluster |
| 34 | + metadata: |
| 35 | + labels: |
| 36 | + appwrapper.mcad.ibm.com: cli-test-cluster |
| 37 | + controller-tools.k8s.io: '1.0' |
| 38 | + name: cli-test-cluster |
| 39 | + namespace: ns |
| 40 | + spec: |
| 41 | + autoscalerOptions: |
| 42 | + idleTimeoutSeconds: 60 |
| 43 | + imagePullPolicy: Always |
| 44 | + resources: |
| 45 | + limits: |
| 46 | + cpu: 500m |
| 47 | + memory: 512Mi |
| 48 | + requests: |
| 49 | + cpu: 500m |
| 50 | + memory: 512Mi |
| 51 | + upscalingMode: Default |
| 52 | + enableInTreeAutoscaling: false |
| 53 | + headGroupSpec: |
| 54 | + rayStartParams: |
| 55 | + block: 'true' |
| 56 | + dashboard-host: 0.0.0.0 |
| 57 | + num-gpus: '0' |
| 58 | + serviceType: ClusterIP |
| 59 | + template: |
| 60 | + spec: |
| 61 | + affinity: |
| 62 | + nodeAffinity: |
| 63 | + requiredDuringSchedulingIgnoredDuringExecution: |
| 64 | + nodeSelectorTerms: |
| 65 | + - matchExpressions: |
| 66 | + - key: cli-test-cluster |
| 67 | + operator: In |
| 68 | + values: |
| 69 | + - cli-test-cluster |
| 70 | + containers: |
| 71 | + - env: |
| 72 | + - name: MY_POD_IP |
| 73 | + valueFrom: |
| 74 | + fieldRef: |
| 75 | + fieldPath: status.podIP |
| 76 | + - name: RAY_USE_TLS |
| 77 | + value: '0' |
| 78 | + - name: RAY_TLS_SERVER_CERT |
| 79 | + value: /home/ray/workspace/tls/server.crt |
| 80 | + - name: RAY_TLS_SERVER_KEY |
| 81 | + value: /home/ray/workspace/tls/server.key |
| 82 | + - name: RAY_TLS_CA_CERT |
| 83 | + value: /home/ray/workspace/tls/ca.crt |
| 84 | + image: quay.io/project-codeflare/ray:2.5.0-py38-cu116 |
| 85 | + imagePullPolicy: Always |
| 86 | + lifecycle: |
| 87 | + preStop: |
| 88 | + exec: |
| 89 | + command: |
| 90 | + - /bin/sh |
| 91 | + - -c |
| 92 | + - ray stop |
| 93 | + name: ray-head |
| 94 | + ports: |
| 95 | + - containerPort: 6379 |
| 96 | + name: gcs |
| 97 | + - containerPort: 8265 |
| 98 | + name: dashboard |
| 99 | + - containerPort: 10001 |
| 100 | + name: client |
| 101 | + resources: |
| 102 | + limits: |
| 103 | + cpu: 2 |
| 104 | + memory: 8G |
| 105 | + nvidia.com/gpu: 0 |
| 106 | + requests: |
| 107 | + cpu: 2 |
| 108 | + memory: 8G |
| 109 | + nvidia.com/gpu: 0 |
| 110 | + imagePullSecrets: |
| 111 | + - name: cli-test-pull-secret |
| 112 | + rayVersion: 2.1.0 |
| 113 | + workerGroupSpecs: |
| 114 | + - groupName: small-group-cli-test-cluster |
| 115 | + maxReplicas: 2 |
| 116 | + minReplicas: 2 |
| 117 | + rayStartParams: |
| 118 | + block: 'true' |
| 119 | + num-gpus: '7' |
| 120 | + replicas: 2 |
| 121 | + template: |
| 122 | + metadata: |
| 123 | + annotations: |
| 124 | + key: value |
| 125 | + labels: |
| 126 | + key: value |
| 127 | + spec: |
| 128 | + affinity: |
| 129 | + nodeAffinity: |
| 130 | + requiredDuringSchedulingIgnoredDuringExecution: |
| 131 | + nodeSelectorTerms: |
| 132 | + - matchExpressions: |
| 133 | + - key: cli-test-cluster |
| 134 | + operator: In |
| 135 | + values: |
| 136 | + - cli-test-cluster |
| 137 | + containers: |
| 138 | + - env: |
| 139 | + - name: MY_POD_IP |
| 140 | + valueFrom: |
| 141 | + fieldRef: |
| 142 | + fieldPath: status.podIP |
| 143 | + - name: RAY_USE_TLS |
| 144 | + value: '0' |
| 145 | + - name: RAY_TLS_SERVER_CERT |
| 146 | + value: /home/ray/workspace/tls/server.crt |
| 147 | + - name: RAY_TLS_SERVER_KEY |
| 148 | + value: /home/ray/workspace/tls/server.key |
| 149 | + - name: RAY_TLS_CA_CERT |
| 150 | + value: /home/ray/workspace/tls/ca.crt |
| 151 | + image: quay.io/project-codeflare/ray:2.5.0-py38-cu116 |
| 152 | + lifecycle: |
| 153 | + preStop: |
| 154 | + exec: |
| 155 | + command: |
| 156 | + - /bin/sh |
| 157 | + - -c |
| 158 | + - ray stop |
| 159 | + name: machine-learning |
| 160 | + resources: |
| 161 | + limits: |
| 162 | + cpu: 4 |
| 163 | + memory: 6G |
| 164 | + nvidia.com/gpu: 7 |
| 165 | + requests: |
| 166 | + cpu: 3 |
| 167 | + memory: 5G |
| 168 | + nvidia.com/gpu: 7 |
| 169 | + imagePullSecrets: |
| 170 | + - name: cli-test-pull-secret |
| 171 | + initContainers: |
| 172 | + - command: |
| 173 | + - sh |
| 174 | + - -c |
| 175 | + - until nslookup $RAY_IP.$(cat /var/run/secrets/kubernetes.io/serviceaccount/namespace).svc.cluster.local; |
| 176 | + do echo waiting for myservice; sleep 2; done |
| 177 | + image: busybox:1.28 |
| 178 | + name: init-myservice |
| 179 | + replicas: 1 |
| 180 | + - generictemplate: |
| 181 | + apiVersion: route.openshift.io/v1 |
| 182 | + kind: Route |
| 183 | + metadata: |
| 184 | + labels: |
| 185 | + odh-ray-cluster-service: cli-test-cluster-head-svc |
| 186 | + name: ray-dashboard-cli-test-cluster |
| 187 | + namespace: ns |
| 188 | + spec: |
| 189 | + port: |
| 190 | + targetPort: dashboard |
| 191 | + to: |
| 192 | + kind: Service |
| 193 | + name: cli-test-cluster-head-svc |
| 194 | + replica: 1 |
| 195 | + Items: [] |
0 commit comments