|
| 1 | +apiVersion: ray.io/v1 |
| 2 | +kind: RayCluster |
| 3 | +metadata: |
| 4 | + labels: |
| 5 | + controller-tools.k8s.io: '1.0' |
| 6 | + kueue.x-k8s.io/queue-name: local-queue-default |
| 7 | + name: unit-test-volume-cluster |
| 8 | + namespace: opendatahub |
| 9 | +spec: |
| 10 | + autoscalerOptions: |
| 11 | + idleTimeoutSeconds: 60 |
| 12 | + imagePullPolicy: Always |
| 13 | + resources: |
| 14 | + limits: |
| 15 | + cpu: 500m |
| 16 | + memory: 512Mi |
| 17 | + requests: |
| 18 | + cpu: 500m |
| 19 | + memory: 512Mi |
| 20 | + upscalingMode: Default |
| 21 | + enableInTreeAutoscaling: false |
| 22 | + headGroupSpec: |
| 23 | + enableIngress: false |
| 24 | + rayStartParams: |
| 25 | + block: 'true' |
| 26 | + dashboard-host: 0.0.0.0 |
| 27 | + num-gpus: '0' |
| 28 | + serviceType: ClusterIP |
| 29 | + template: |
| 30 | + spec: |
| 31 | + containers: |
| 32 | + - image: quay.io/project-codeflare/ray:latest-py39-cu118 |
| 33 | + imagePullPolicy: Always |
| 34 | + lifecycle: |
| 35 | + preStop: |
| 36 | + exec: |
| 37 | + command: |
| 38 | + - /bin/sh |
| 39 | + - -c |
| 40 | + - ray stop |
| 41 | + name: ray-head |
| 42 | + ports: |
| 43 | + - containerPort: 6379 |
| 44 | + name: gcs |
| 45 | + - containerPort: 8265 |
| 46 | + name: dashboard |
| 47 | + - containerPort: 10001 |
| 48 | + name: client |
| 49 | + resources: |
| 50 | + limits: |
| 51 | + cpu: 2 |
| 52 | + memory: 8G |
| 53 | + nvidia.com/gpu: 0 |
| 54 | + requests: |
| 55 | + cpu: 2 |
| 56 | + memory: 8G |
| 57 | + nvidia.com/gpu: 0 |
| 58 | + volumeMounts: |
| 59 | + - mountPath: /etc/pki/tls/certs/odh-trusted-ca-bundle.crt |
| 60 | + name: odh-trusted-ca-cert |
| 61 | + subPath: odh-trusted-ca-bundle.crt |
| 62 | + - mountPath: /etc/ssl/certs/odh-trusted-ca-bundle.crt |
| 63 | + name: odh-trusted-ca-cert |
| 64 | + subPath: odh-trusted-ca-bundle.crt |
| 65 | + - mountPath: /etc/pki/tls/certs/odh-ca-bundle.crt |
| 66 | + name: odh-ca-cert |
| 67 | + subPath: odh-ca-bundle.crt |
| 68 | + - mountPath: /etc/ssl/certs/odh-ca-bundle.crt |
| 69 | + name: odh-ca-cert |
| 70 | + subPath: odh-ca-bundle.crt |
| 71 | + - mountPath: /home/ray/test1 |
| 72 | + name: test |
| 73 | + - mountPath: /home/ray/test2 |
| 74 | + name: test2 |
| 75 | + - mountPath: /home/ray/test2 |
| 76 | + name: test3 |
| 77 | + imagePullSecrets: [] |
| 78 | + volumes: |
| 79 | + - configMap: |
| 80 | + items: |
| 81 | + - key: ca-bundle.crt |
| 82 | + path: odh-trusted-ca-bundle.crt |
| 83 | + name: odh-trusted-ca-bundle |
| 84 | + optional: true |
| 85 | + name: odh-trusted-ca-cert |
| 86 | + - configMap: |
| 87 | + items: |
| 88 | + - key: odh-ca-bundle.crt |
| 89 | + path: odh-ca-bundle.crt |
| 90 | + name: odh-trusted-ca-bundle |
| 91 | + optional: true |
| 92 | + name: odh-ca-cert |
| 93 | + - emptyDir: |
| 94 | + sizeLimit: 500Gi |
| 95 | + name: test |
| 96 | + - configMap: |
| 97 | + items: |
| 98 | + - key: test |
| 99 | + path: /home/ray/test2/data.txt |
| 100 | + name: config-map-test |
| 101 | + name: test2 |
| 102 | + - name: test3 |
| 103 | + secret: |
| 104 | + secretName: test-secret |
| 105 | + rayVersion: 2.7.0 |
| 106 | + workerGroupSpecs: |
| 107 | + - groupName: small-group-unit-test-volume-cluster |
| 108 | + maxReplicas: 1 |
| 109 | + minReplicas: 1 |
| 110 | + rayStartParams: |
| 111 | + block: 'true' |
| 112 | + num-gpus: '0' |
| 113 | + replicas: 1 |
| 114 | + template: |
| 115 | + metadata: |
| 116 | + annotations: |
| 117 | + key: value |
| 118 | + labels: |
| 119 | + key: value |
| 120 | + spec: |
| 121 | + containers: |
| 122 | + - image: quay.io/project-codeflare/ray:latest-py39-cu118 |
| 123 | + lifecycle: |
| 124 | + preStop: |
| 125 | + exec: |
| 126 | + command: |
| 127 | + - /bin/sh |
| 128 | + - -c |
| 129 | + - ray stop |
| 130 | + name: machine-learning |
| 131 | + resources: |
| 132 | + limits: |
| 133 | + cpu: 1 |
| 134 | + memory: 2G |
| 135 | + nvidia.com/gpu: 0 |
| 136 | + requests: |
| 137 | + cpu: 1 |
| 138 | + memory: 2G |
| 139 | + nvidia.com/gpu: 0 |
| 140 | + volumeMounts: |
| 141 | + - mountPath: /etc/pki/tls/certs/odh-trusted-ca-bundle.crt |
| 142 | + name: odh-trusted-ca-cert |
| 143 | + subPath: odh-trusted-ca-bundle.crt |
| 144 | + - mountPath: /etc/ssl/certs/odh-trusted-ca-bundle.crt |
| 145 | + name: odh-trusted-ca-cert |
| 146 | + subPath: odh-trusted-ca-bundle.crt |
| 147 | + - mountPath: /etc/pki/tls/certs/odh-ca-bundle.crt |
| 148 | + name: odh-ca-cert |
| 149 | + subPath: odh-ca-bundle.crt |
| 150 | + - mountPath: /etc/ssl/certs/odh-ca-bundle.crt |
| 151 | + name: odh-ca-cert |
| 152 | + subPath: odh-ca-bundle.crt |
| 153 | + - mountPath: /home/ray/test1 |
| 154 | + name: test |
| 155 | + - mountPath: /home/ray/test2 |
| 156 | + name: test2 |
| 157 | + - mountPath: /home/ray/test2 |
| 158 | + name: test3 |
| 159 | + imagePullSecrets: [] |
| 160 | + volumes: |
| 161 | + - configMap: |
| 162 | + items: |
| 163 | + - key: ca-bundle.crt |
| 164 | + path: odh-trusted-ca-bundle.crt |
| 165 | + name: odh-trusted-ca-bundle |
| 166 | + optional: true |
| 167 | + name: odh-trusted-ca-cert |
| 168 | + - configMap: |
| 169 | + items: |
| 170 | + - key: odh-ca-bundle.crt |
| 171 | + path: odh-ca-bundle.crt |
| 172 | + name: odh-trusted-ca-bundle |
| 173 | + optional: true |
| 174 | + name: odh-ca-cert |
| 175 | + - emptyDir: |
| 176 | + sizeLimit: 500Gi |
| 177 | + name: test |
| 178 | + - configMap: |
| 179 | + items: |
| 180 | + - key: test |
| 181 | + path: /home/ray/test2/data.txt |
| 182 | + name: config-map-test |
| 183 | + name: test2 |
| 184 | + - name: test3 |
| 185 | + secret: |
| 186 | + secretName: test-secret |
0 commit comments