Role
Provides a Kubernetes Role
Examples
Create a Role
provider.makeRole({
properties: () => ({
metadata: {
name: "aws-load-balancer-controller-leader-election-role",
namespace: "kube-system",
labels: {
"app.kubernetes.io/name": "aws-load-balancer-controller",
},
},
rules: [
{
apiGroups: [""],
resources: ["configmaps"],
verbs: ["create"],
},
{
apiGroups: [""],
resourceNames: ["aws-load-balancer-controller-leader"],
resources: ["configmaps"],
verbs: ["get", "update", "patch"],
},
],
}),
});
Source Code Examples
Used By
Listing
The following commands list the Role type:
gc list --types Role
Short version:
gc l -t Role