Azure Kubernetes Service
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,456 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello,
I need to define different roles for pods/log and namespaces.. Does this syntax works:-
- apiGroups: [""]
resources:
- pods
verbs:
- create
- delete
- get
- list
resources:
- pods/log
- namespaces
verbs:
- get
- list
I tried running this.. But the last section of resources overwritten the pods section and its verbs.
@Tanul ,
Can you try out the below YAML:
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
namespace: default
name: rbac
rules:
- apiGroups: [""]
resources:
- pods
verbs:
- create
- delete
- get
- list
- apiGroups: [""]
resources:
- pods/log
- namespaces
verbs:
- get
- list