All Downloads are FREE. Search and download functionalities are using the official Maven repository.

templates.deployment.model-training-api.model-training-api.rbac.yaml.vm Maven / Gradle / Ivy

The newest version!
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
  name: ${appName}
rules:
  - apiGroups: ["batch"]
    resources: ["jobs","jobs/status"]
    verbs: ["get","create","patch","list","delete"]

  - apiGroups: [""]
    resources: ["pods","pods/log"]
    verbs: ["get","list"]

  - apiGroups: ["apps"]
    resources: ["deployments"]
    verbs: ["patch"]
---
apiVersion: rbac.authorization.k8s.io/v1
# This role binding allows "jane" to read pods in the "default" namespace.
# You need to already have a Role named "pod-reader" in that namespace.
kind: RoleBinding
metadata:
  name: ${appName}
subjects:
  # You can specify more than one "subject"
  - kind: ServiceAccount
    name: ${appName}
roleRef:
  # "roleRef" specifies the binding to a Role / ClusterRole
  apiGroup: rbac.authorization.k8s.io
  kind: Role #this must be Role or ClusterRole
  name: "${appName}"




© 2015 - 2025 Weber Informatics LLC | Privacy Policy