{"id":18941500,"url":"https://github.com/mchmarny/kcc-demo","last_synced_at":"2026-05-17T11:34:44.644Z","repository":{"id":77051531,"uuid":"566300981","full_name":"mchmarny/kcc-demo","owner":"mchmarny","description":"Collection of Config Connector demos on GKE","archived":false,"fork":false,"pushed_at":"2022-11-16T14:32:13.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-28T01:40:48.032Z","etag":null,"topics":["cloud","config","gcloud","kcc","kubectl","kubernetes","resources"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mchmarny.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-15T11:41:39.000Z","updated_at":"2022-11-15T13:08:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"81804623-3a23-4fb9-a617-17937fa140f8","html_url":"https://github.com/mchmarny/kcc-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mchmarny/kcc-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mchmarny%2Fkcc-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mchmarny%2Fkcc-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mchmarny%2Fkcc-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mchmarny%2Fkcc-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mchmarny","download_url":"https://codeload.github.com/mchmarny/kcc-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mchmarny%2Fkcc-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33136839,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloud","config","gcloud","kcc","kubectl","kubernetes","resources"],"created_at":"2024-11-08T12:28:17.542Z","updated_at":"2026-05-17T11:34:44.628Z","avatar_url":"https://github.com/mchmarny.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kcc-demo\n\nCollection of Config Connector demos on GKE. More info about KCC [here](https://cloud.google.com/config-connector/docs/how-to/getting-started).\n\n\u003e For more on declarative management of Kubernetes objects see [docs here](https://kubernetes.io/docs/tasks/manage-kubernetes-objects/declarative-config/).\n\n## Assumptions\n\n* `gcloud` installed and authenticated\n* `gcloud` defaults defined (example): \n\n```shell\ngcloud config set project YOUR_PROJECT_ID\ngcloud config set compute/region us-west1\ngcloud config set compute/zone us-west1-c\n```\n\n## Setup \n\nThis will create GKE cluster (`kcc-demo`) and configure KCC on namespace `demo`:\n\n```shell\nbin/setup\n```\n\nVerify installation:\n\n```shell\nkubectl wait -n cnrm-system --for=condition=Ready pod --all\n```\n\nIt may take a minute for the resources to be available. Eventually, if everything installed correctly, you should see at least 5 `condition met` statements:\n\n```shell\npod/cnrm-controller-manager-0 condition met\npod/cnrm-deletiondefender-0 condition met\npod/cnrm-resource-stats-recorder-******-ztwpm condition met\npod/cnrm-webhook-manager-******-***** condition met\npod/cnrm-webhook-manager-******-***** condition met\n```\n\n## Demo\n\n\u003e Use `bin/reset` to reset demo state after previous runs \n\nShow available GCP resources in [UI](https://cloud.google.com/config-connector/docs/reference/overview). And by querying the cluster CRDs:\n\n```shell\nkubectl get crds --selector cnrm.cloud.google.com/managed-by-kcc=true # | grep pubsub\n```\n\n\u003e more info on \n\n### PubSub\n\nShow API description for the PubSubTopic:\n\n```shell\nkubectl describe crd pubsubtopics.pubsub.cnrm.cloud.google.com\n```\n\nEnable PubSub service:\n\n```shell\nkubectl apply -f config/enable-pubsub.yaml\n```\n\nThe YAML:\n\n```yaml\napiVersion: serviceusage.cnrm.cloud.google.com/v1beta1\nkind: Service\nmetadata:\n  name: pubsub.googleapis.com\nspec:\n  projectRef:\n    external: projects/PROJECT_ID\n```\n\nCreate PubSub Topic (`kcc-demo-topic`):\n\n```shell\nkubectl apply -f config/pubsub-topic.yaml\n```\n\nThe YAML:\n\n```yaml\napiVersion: pubsub.cnrm.cloud.google.com/v1beta1\nkind: PubSubTopic\nmetadata:\n  annotations:\n    cnrm.cloud.google.com/project-id: PROJECT_ID\n  name: kcc-demo-topic\n```\n\nOnce created, you can describe the created resource: \n\n```shell\nkubectl describe pubsubtopics\n```\n\nYou can also navigate to the list of PubSub Topics in [Console](https://console.cloud.google.com/cloudpubsub/topic/list), or verify (`condition met`) that the resource is created via `kubectl`: \n\n```shell\nkubectl wait --for=condition=READY pubsubtopics kcc-demo-topic\n```\n\n### BigQuery \n\nKCC is also not only for service creation, you can also manage objects in those services, see BigQuery dataset example below: \n\n```yaml\napiVersion: bigquery.cnrm.cloud.google.com/v1beta1\n  kind: BigQueryDataset\n  metadata:\n    name: bigquerydatasetsample\n  spec:\n    defaultTableExpirationMs: 3600000\n    description: \"BigQuery Dataset Sample\"\n    friendlyName: bigquerydataset-sample\n    location: US\n```\n\n## Cleanup\n\nTo delete all resources created by this demo, including the GKE cluster service account:\n\n```shell\nbin/cleanup\n```\n\nTo only reset demo state use `bin/reset`.\n\n## Disclaimer\n\nThis is my personal project and it does not represent my employer. While I do my best to ensure that everything works, I take no responsibility for issues caused by this code.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmchmarny%2Fkcc-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmchmarny%2Fkcc-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmchmarny%2Fkcc-demo/lists"}