# infrastructure/longhorn/core/tenant2-recovery-rbac.yaml apiVersion: v1 kind: ServiceAccount metadata: name: tenant2-engine-recovery namespace: longhorn-system --- apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: name: tenant2-engine-recovery namespace: longhorn-system rules: - apiGroups: ["longhorn.io"] resources: ["volumes"] resourceNames: ["pvc-02d99a30-3757-4a01-abfb-5b30aef793d6"] verbs: ["get"] - apiGroups: ["longhorn.io"] resources: ["engines"] resourceNames: ["pvc-02d99a30-3757-4a01-abfb-5b30aef793d6-e-0"] verbs: ["get"] - apiGroups: ["longhorn.io"] resources: ["replicas"] verbs: ["list"] - apiGroups: [""] resources: ["pods"] resourceNames: ["instance-manager-60fcef8ab4aad7407ce6d857ad2340f6"] verbs: ["get"] - apiGroups: [""] resources: ["pods/exec"] resourceNames: ["instance-manager-60fcef8ab4aad7407ce6d857ad2340f6"] verbs: ["create"] --- apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: name: tenant2-engine-recovery namespace: longhorn-system roleRef: apiGroup: rbac.authorization.k8s.io kind: Role name: tenant2-engine-recovery subjects: - kind: ServiceAccount name: tenant2-engine-recovery namespace: longhorn-system