https://pulumi.com logo
#general
Title
# general
e

early-musician-41645

02/01/2019, 10:58 PM
Separate question - is there an example of how to create a k8s ClusterRole?
g

gorgeous-egg-16927

02/01/2019, 11:06 PM
Copy code
new k8s.rbac.v1.ClusterRole("my-cluster-role", {
  rules: [
      {
          apiGroups: [""],
          resources: ["configmaps", "endpoints", "nodes", "pods", "secrets"],
          verbs: ["list", "watch"]
      },
  ]
});
e

early-musician-41645

02/01/2019, 11:06 PM
thank you!
🙂 1
g

gorgeous-egg-16927

02/01/2019, 11:07 PM
There doesn't appear to be an example in our examples repo, but we're actively working on comprehensive k8s documentation
🙏 1