Skip to content
Google Group User --> Kubernetes RBAC
Branch: master
Clone or download
Latest commit cba9d32 Jan 20, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples adjust repo Apr 16, 2018
.editorconfig refactor Nov 20, 2017
Dockerfile Upgrade go to 1.11.4 Jan 20, 2019
LICENSE Update LICENSE Nov 23, 2017
Makefile fix installation Dec 7, 2017
draw.xml add graph Apr 18, 2018
graph.png add graph Apr 18, 2018
kubernetes-rbac-synchroniser.go rename flags Dec 7, 2017
kubernetes-rbac-synchroniser_test.go fix deduplicate func Nov 23, 2017


license Docker Repository on Quay Docker Pulls Go Report Card

What It Does

RBAC Synchroniser pulls a Google Group, extracts Google Group Member Emails and updates the Kubernetes RoleBinding in the given namespace.



  • The service account's private key file: -config-file-path flag
  • The email of the user with permissions to access the Admin APIs: -google-admin-email flag

see guide:

  • The Google Group list per Kubernetes namespace: -namespace-group flag
  • Configure Minimal GKE IAM permissions for each Google Group: gcloud beta iam roles create minimal_gke_role --project my_project --title "Container Engine Minimal" --description "Minimal GKE Role which allows 'gcloud container clusters get-credentials' command" --permissions "container.apiServices.get,container.apiServices.list,container.clusters.get,container.clusters.getCredentials"



Flag Description Defalut
-cluster-role-name The cluster role name with permissions. "view"
-config-file-path The Path to the Service Account's Private Key file.
-google-admin-email The Google Admin Email.
-fake-group-response Fake Google Admin API Response.
-namespace-group The group and namespace. May be used multiple times.
-in-cluster-config Use in cluster kubeconfig. true
-kubeconfig Absolute path to the kubeconfig file.
-listen-address The address to listen on for HTTP requests. ":8080"
-rolebinding-name The role binding name per namespace. "developer"
-update-interval Update interval in seconds. 15m0s
-log-json Log as JSON instead of the default ASCII formatter. false

Prometheus metrics

  • rbac_synchroniser_success: Cumulative number of role update operations.
  • rbac_synchroniser_errors: Cumulative number of errors during role update operations.



You can’t perform that action at this time.