From 8f3832f8ecf7874a9ad221617b76a92719428c4e Mon Sep 17 00:00:00 2001 From: Aditya <60684641+0x0elliot@users.noreply.github.com> Date: Fri, 19 Jul 2024 17:53:19 +0530 Subject: [PATCH 1/2] fix: temp fixing of all role issues --- functions/kubernetes/all-in-one.yaml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/functions/kubernetes/all-in-one.yaml b/functions/kubernetes/all-in-one.yaml index a428048f..44189aca 100644 --- a/functions/kubernetes/all-in-one.yaml +++ b/functions/kubernetes/all-in-one.yaml @@ -80,11 +80,11 @@ data: IS_KUBERNETES: "true" REGISTRY_URL: "192.168.29.16:5000" REGISTRY_AUTH: "false" - SHUFFLE_KUBERNETES_WORKER: "ghcr.io/shuffle/shuffle-worker:nightly" + # SHUFFLE_KUBERNETES_WORKER: "ghcr.io/shuffle/shuffle-worker:nightly" + SHUFFLE_KUBERNETES_WORKER: gcr.io/shuffler/shuffle-worker-scale:latest kind: ConfigMap --- - apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: @@ -92,11 +92,17 @@ metadata: name: pod-manager rules: - apiGroups: [""] - resources: ["pods"] + resources: ["pods", "services", "deployments"] verbs: ["get", "list", "create", "update", "delete"] - apiGroups: ["batch"] resources: ["jobs"] verbs: ["create", "get", "list", "watch", "delete"] +- apiGroups: ["rbac.authorization.k8s.io"] + resources: ["rolebindings", "roles"] + verbs: ["get", "list", "create"] +- apiGroups: ["apps"] + resources: ["deployments", "pods", "services"] + verbs: ["create", "get", "list", "update", "delete"] --- @@ -838,8 +844,8 @@ spec: value: nightly - name: SHUFFLE_SCALE_REPLICAS value: "5" - #- name: SHUFFLE_SWARM_CONFIG - #value: run + - name: SHUFFLE_SWARM_CONFIG + value: run - name: SHUFFLE_WORKER_VERSION value: nightly - name: IS_KUBERNETES @@ -862,7 +868,6 @@ spec: configMapKeyRef: key: SHUFFLE_KUBERNETES_WORKER name: env - - name: SHUFFLE_MEMCACHED valueFrom: configMapKeyRef: From 28c516217aa5c9e1c18c2d19b93d74c2e60cf5bd Mon Sep 17 00:00:00 2001 From: Aditya <60684641+0x0elliot@users.noreply.github.com> Date: Fri, 19 Jul 2024 18:22:17 +0530 Subject: [PATCH 2/2] fix: temp fixing of all role issues --- functions/kubernetes/all-in-one.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/functions/kubernetes/all-in-one.yaml b/functions/kubernetes/all-in-one.yaml index 44189aca..9b54244f 100644 --- a/functions/kubernetes/all-in-one.yaml +++ b/functions/kubernetes/all-in-one.yaml @@ -80,8 +80,7 @@ data: IS_KUBERNETES: "true" REGISTRY_URL: "192.168.29.16:5000" REGISTRY_AUTH: "false" - # SHUFFLE_KUBERNETES_WORKER: "ghcr.io/shuffle/shuffle-worker:nightly" - SHUFFLE_KUBERNETES_WORKER: gcr.io/shuffler/shuffle-worker-scale:latest + SHUFFLE_KUBERNETES_WORKER: "ghcr.io/shuffle/shuffle-worker:nightly" kind: ConfigMap ---