zoukankan      html  css  js  c++  java
  • kubernetes RBAC

    Role:

    kind: Role

    apiVersion: rbac.authorization.k8s.io/v1

    metadata:

      namespace: gauss

      name: gauss-op

    rules:

    - apiGroups: ["*"]

      resources: ["*"]

      verbs: ["*"]

    RoleBinding:

    kind: RoleBinding

    apiVersion: rbac.authorization.k8s.io/v1

    metadata:

      name: bach-gauss-rb

      namespace: gauss

    subjects:

    - kind: ServiceAccount

      name: bach-gauss

    roleRef:

      kind: Role

      name: gauss-op

      apiGroup: rbac.authorization.k8s.io

    ClusterRole:

    apiVersion: rbac.authorization.k8s.io/v1alpha1

    kind: ClusterRole

    metadata:

      name: cluster-read-all

    rules:

      -

        apiGroups:

          - ""

          - apps

          - autoscaling

          - batch

          - extensions

          - policy

          - rbac.authorization.k8s.io

        resources:

          - componentstatuses

          - configmaps

          - daemonsets

          - deployments

          - events

          - endpoints

          - horizontalpodautoscalers

          - ingress

          - jobs

          - limitranges

          - namespaces

          - nodes

          - pods

          - persistentvolumes

          - persistentvolumeclaims

          - resourcequotas

          - replicasets

          - replicationcontrollers

          - serviceaccounts

          - services

          - secrets

          - ingresses

          - statefulsets

        verbs:

          - get

          - watch

          - list

      - nonResourceURLs: ["*"]

        verbs:

          - get

          - watch

          - list

    ClusterRoleBinding

    kind: ClusterRoleBinding

    apiVersion: rbac.authorization.k8s.io/v1beta1

    metadata:

      name: read-secrets-global

    subjects:

    - kind: ServiceAccount

      name: kubernetes-dashboard

      namespace: kube-system

    roleRef:

      kind: ClusterRole

      name: cluster-read-all

      apiGroup: rbac.authorization.k8s.io

  • 相关阅读:
    《ERP从内部集成起步》读书笔记——第2章 从优化业务流程谈信息集成的必要性 2.1从流程优化的需要理解信息化与管理的关系 2.1.1全局观念和全流程
    《ERP从内部集成起步》读书笔记——第一章 Garthner公司是如何提出ERP的 1.4 ERP内部集成与MRP II
    Reporting Service中Rdlc导出为pdf中文字乱码解决方法
    善用Wink将电脑操作录屏为Flash文件
    树本来就是疯的
    关于启动BIM工程硕士教育的思考
    AIRPAK3.0用户指导手册第一部分手册简介
    梦想
    How to Deal With Bullies 如何应对欺负你的人
    为什么说面试荒诞
  • 原文地址:https://www.cnblogs.com/allenhaozi/p/8659559.html
Copyright © 2011-2022 走看看