github.com/tickoalcantara12/micro/v3@v3.0.0-20221007104245-9d75b9bcbab9/service/runtime/kubernetes/test/test.yaml (about) 1 apiVersion: v1 2 kind: ServiceAccount 3 metadata: 4 name: micro-runtime 5 --- 6 apiVersion: rbac.authorization.k8s.io/v1 7 kind: ClusterRole 8 metadata: 9 name: micro-runtime 10 rules: 11 - apiGroups: 12 - "" 13 resources: 14 - pods 15 - pods/log 16 - services 17 - secrets 18 - namespaces 19 - resourcequotas 20 verbs: 21 - get 22 - create 23 - update 24 - delete 25 - list 26 - patch 27 - watch 28 - apiGroups: 29 - "apps" 30 resources: 31 - deployments 32 verbs: 33 - create 34 - update 35 - delete 36 - list 37 - patch 38 - watch 39 - apiGroups: 40 - "" 41 resources: 42 - secrets 43 - pods 44 - pods/logs 45 verbs: 46 - get 47 - watch 48 - list 49 - apiGroups: 50 - "networking.k8s.io" 51 resources: 52 - networkpolicy 53 - networkpolicies 54 verbs: 55 - get 56 - create 57 - update 58 - delete 59 - deletecollection 60 - list 61 - patch 62 - watch 63 --- 64 apiVersion: rbac.authorization.k8s.io/v1 65 kind: ClusterRoleBinding 66 metadata: 67 name: micro-runtime 68 subjects: 69 - kind: ServiceAccount 70 name: micro-runtime 71 namespace: default 72 roleRef: 73 kind: ClusterRole 74 name: micro-runtime 75 apiGroup: rbac.authorization.k8s.io 76 --- 77 apiVersion: rbac.authorization.k8s.io/v1 78 kind: RoleBinding 79 metadata: 80 name: micro-runtime 81 roleRef: 82 apiGroup: rbac.authorization.k8s.io 83 kind: ClusterRole 84 name: micro-runtime 85 subjects: 86 - kind: ServiceAccount 87 name: micro-runtime