apiVersion: v1 kind: ServiceAccount metadata: name: homarr namespace: homarr --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: homarr-readonly rules: - apiGroups: [""] resources: - pods - services - endpoints - namespaces - nodes - configmaps - persistentvolumeclaims - events verbs: ["get", "list", "watch"] - apiGroups: ["apps"] resources: - deployments - statefulsets - daemonsets - replicasets verbs: ["get", "list", "watch"] - apiGroups: ["networking.k8s.io"] resources: - ingresses verbs: ["get", "list", "watch"] - apiGroups: ["traefik.io"] resources: - ingressroutes - ingressroutetcps - ingressrouteudps - middlewares verbs: ["get", "list", "watch"] - apiGroups: ["metrics.k8s.io"] resources: - pods - nodes verbs: ["get", "list"] --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: homarr-readonly roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: homarr-readonly subjects: - kind: ServiceAccount name: homarr namespace: homarr