sparse-intern-71089
03/15/2019, 6:07 PMimportant-leather-28796
03/15/2019, 6:08 PMconst name = 'ciInfrastructure'
export const ciInfrastructure = new gcp.serviceAccount.Account(
name,
{
project,
accountId: 'ci-infrastructure',
displayName: 'CI infrastructure account',
},
{ protect },
)
bindToIAMRole(`${name}ClusterAdmin`, ciInfrastructure, {
project,
role: 'roles/container.clusterAdmin',
})
// for deploying cluster-wide resources e.g. traefik, cert-manager
bindToIAMRole(`${name}ContainerDeveloper`, ciInfrastructure, {
project,
role: 'roles/container.developer',
})important-leather-28796
03/15/2019, 6:09 PMci-infrastructure gcp service account/identity to create the cluster, that I’ll be able to create a clusterRoleBinding, but so far cannot.important-leather-28796
03/15/2019, 6:21 PMimportant-leather-28796
03/15/2019, 6:21 PMroles/container.admin, using container.clusterAdmin and container.developer may not be enoughimportant-leather-28796
03/15/2019, 6:32 PM'roles/container.admin' solved itcreamy-potato-29402
03/15/2019, 9:42 PMcreamy-potato-29402
03/15/2019, 9:43 PMcreamy-potato-29402
03/15/2019, 9:43 PM