Skip to content

Instantly share code, notes, and snippets.

@cerebrate
Created May 15, 2023 20:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cerebrate/71988f25e06a0c8d7b0be5cb1b5e4a0b to your computer and use it in GitHub Desktop.
Save cerebrate/71988f25e06a0c8d7b0be5cb1b5e4a0b to your computer and use it in GitHub Desktop.
HA: dependency-check-rbac.yaml
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: read-ha-dependency
namespace: homeassistant
rules:
- apiGroups: [""]
resources: ["endpoints"]
verbs: ["get"]
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: read-ha-dependency-binding
namespace: homeassistant
subjects:
- kind: ServiceAccount
name: default
namespace: homeassistant
roleRef:
kind: Role
name: read-ha-dependency
apiGroup: rbac.authorization.k8s.io
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment