rbac.yaml 530 B

123456789101112131415161718192021222324252627282930313233
  1. ---
  2. apiVersion: v1
  3. kind: ServiceAccount
  4. metadata:
  5. name: ssl-exporter
  6. labels:
  7. app.kubernetes.io/name: ssl-exporter
  8. ---
  9. apiVersion: rbac.authorization.k8s.io/v1
  10. kind: ClusterRole
  11. metadata:
  12. name: ssl-exporter
  13. rules:
  14. - apiGroups:
  15. - ""
  16. resources:
  17. - secrets
  18. verbs:
  19. - list
  20. - get
  21. ---
  22. apiVersion: rbac.authorization.k8s.io/v1
  23. kind: RoleBinding
  24. metadata:
  25. name: ssl-exporter
  26. roleRef:
  27. apiGroup: rbac.authorization.k8s.io
  28. kind: ClusterRole
  29. name: ssl-exporter
  30. subjects:
  31. - kind: ServiceAccount
  32. name: ssl-exporter