Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CRD verb permission in helm #144

Merged
merged 6 commits into from
Feb 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions helm-chart/kuberay-operator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ version.BuildInfo{Version:"v3.6.2", GitCommit:"ee407bdf364942bcb8e8c665f82e15aa2

## Installing the Chart

To avoid duplicate CRD definitions in this repo, we reuse CRD config in `ray-operator`:
```console
$ kubectl apply -k "../../ray-operator/config/crd"
```

Please use command below:
```console
$ helm install kuberay-operator . --values values.yaml --namespace kuberay-operator --create-namespace
Expand Down
6 changes: 6 additions & 0 deletions helm-chart/kuberay-operator/templates/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,10 @@ rules:
- get
- list
- watch
- apiGroups:
- "ray.io"
resources:
- rayclusters
verbs:
- "*"
{{- end }}
2 changes: 1 addition & 1 deletion helm-chart/kuberay-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ replicaCount: 1

image:
repository: kuberay/operator
tag: v0.1.0
tag: nightly
pullPolicy: IfNotPresent

nameOverride: "kubray-operator"
Expand Down
19 changes: 7 additions & 12 deletions helm-chart/ray-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,11 @@ head:
key: value
initArgs:
port: '6379'
object-manager-port: '12345'
node-manager-port: '12346'
object-store-memory: '100000000'
redis-password: 'LetMeInRay'
dashboard-host: '0.0.0.0'
num-cpus: '1' # can be auto-completed from the limits
node-ip-address: $MY_POD_IP # auto-completed as the head pod IP
block: 'true'
containerEnv:
- name: MY_POD_IP
valueFrom:
Expand All @@ -37,15 +35,11 @@ head:
cpu: 200m
annotations: {}
volumes:
- name: config
configMap:
name: ray-code
items:
- key: code.py
path: code.py
- name: log-volume
emptyDir: { }
volumeMounts:
- mountPath: /opt
name: config
- mountPath: /tmp/ray
name: log-volume


worker:
Expand All @@ -57,6 +51,7 @@ worker:
initArgs:
node-ip-address: $MY_POD_IP
redis-password: LetMeInRay
block: 'true'
containerEnv:
- name: MY_POD_IP
valueFrom:
Expand Down Expand Up @@ -90,7 +85,7 @@ worker:
- name: log-volume
emptyDir: {}
volumeMounts:
- mountPath: /var/log
- mountPath: /tmp/ray
name: log-volume

headServiceSuffix: "ray-operator.svc"
Expand Down