Unverified Commit 12f6e6a8 authored by atchernych's avatar atchernych Committed by GitHub
Browse files

fix: Create RBAC structure for EPP etcd-less deployment [DYN-1729] (#5364)


Signed-off-by: default avatarAnna Tchernych <atchernych@nvidia.com>
parent acac55ab
...@@ -67,6 +67,14 @@ spec: ...@@ -67,6 +67,14 @@ spec:
valueFrom: valueFrom:
fieldRef: fieldRef:
fieldPath: metadata.namespace fieldPath: metadata.namespace
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: POD_UID
valueFrom:
fieldRef:
fieldPath: metadata.uid
- name: PLATFORM_NAMESPACE - name: PLATFORM_NAMESPACE
value: "$(POD_NAMESPACE)" # set to your dynamo platform namespace if different value: "$(POD_NAMESPACE)" # set to your dynamo platform namespace if different
# if you want to use etcd enable this and remove the DYN_DISCOVERY_BACKEND env var # if you want to use etcd enable this and remove the DYN_DISCOVERY_BACKEND env var
......
...@@ -17,15 +17,30 @@ apiVersion: rbac.authorization.k8s.io/v1 ...@@ -17,15 +17,30 @@ apiVersion: rbac.authorization.k8s.io/v1
metadata: metadata:
name: pod-read name: pod-read
rules: rules:
# Gateway API inference resources
- apiGroups: ["inference.networking.x-k8s.io"] - apiGroups: ["inference.networking.x-k8s.io"]
resources: ["inferencepools"] resources: ["inferencepools"]
verbs: ["get", "watch", "list"] verbs: ["get", "watch", "list"]
- apiGroups: ["inference.networking.x-k8s.io"] - apiGroups: ["inference.networking.x-k8s.io"]
resources: ["inferencemodels"] resources: ["inferencemodels"]
verbs: ["get", "watch", "list"] verbs: ["get", "watch", "list"]
# Core resources for pod discovery
- apiGroups: [""] - apiGroups: [""]
resources: ["pods"] resources: ["pods"]
verbs: ["get", "watch", "list"] verbs: ["get", "watch", "list"]
# Dynamo k8s service discovery - endpoints
- apiGroups: [""]
resources: ["endpoints"]
verbs: ["get", "list", "watch"]
# Dynamo k8s service discovery - endpointslices
- apiGroups: ["discovery.k8s.io"]
resources: ["endpointslices"]
verbs: ["get", "list", "watch"]
# Dynamo k8s service discovery - worker metadata CRs
- apiGroups: ["nvidia.com"]
resources: ["dynamoworkermetadatas"]
verbs: ["create", "get", "list", "watch", "update", "patch", "delete"]
# Authentication/authorization
- apiGroups: - apiGroups:
- authentication.k8s.io - authentication.k8s.io
resources: resources:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment