{"id":49407791,"url":"https://github.com/thalassa-cloud/iaas-controller","last_synced_at":"2026-04-28T22:05:51.423Z","repository":{"id":346029212,"uuid":"1147432778","full_name":"thalassa-cloud/iaas-controller","owner":"thalassa-cloud","description":null,"archived":false,"fork":false,"pushed_at":"2026-04-05T10:36:03.000Z","size":285,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-05T12:19:16.858Z","etag":null,"topics":["golang","kubebuilder","kubernetes","thalassa-cloud","thalassacloud"],"latest_commit_sha":null,"homepage":"https://thalassa.cloud/products/compute/kubernetes/","language":"Go","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/thalassa-cloud.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-02-01T18:28:37.000Z","updated_at":"2026-04-05T10:35:00.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/thalassa-cloud/iaas-controller","commit_stats":null,"previous_names":["thalassa-cloud/iaas-controller"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/thalassa-cloud/iaas-controller","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thalassa-cloud%2Fiaas-controller","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thalassa-cloud%2Fiaas-controller/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thalassa-cloud%2Fiaas-controller/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thalassa-cloud%2Fiaas-controller/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thalassa-cloud","download_url":"https://codeload.github.com/thalassa-cloud/iaas-controller/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thalassa-cloud%2Fiaas-controller/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32400984,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T19:38:08.556Z","status":"ssl_error","status_checked_at":"2026-04-28T19:37:55.688Z","response_time":56,"last_error":"SSL_read: 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":["golang","kubebuilder","kubernetes","thalassa-cloud","thalassacloud"],"created_at":"2026-04-28T22:05:50.583Z","updated_at":"2026-04-28T22:05:51.406Z","avatar_url":"https://github.com/thalassa-cloud.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# iaas-controller\n\nManage Thalassa Cloud resources from your Kubernetes cluster. Define VPCs, subnets, NAT gateways, route tables, security groups, target groups, and VPC peering connections as custom resources—the controller keeps them in sync with Thalassa so you can drive infrastructure declaratively with `kubectl` and GitOps.\n\n## Description\n\nThe iaas-controller is a Kubernetes controller that extends Kubernetes with Custom Resource Definitions (CRDs) for Thalassa Cloud Infrastructure as a Service concepts. Users declare desired state (VPCs, subnets, NAT gateways, route tables and routes, security groups, target groups, and VPC peering connections) as Kubernetes resources; the controller reconciles them against the Thalassa IaaS API, creating, updating, and deleting cloud resources to match the cluster state. This gives teams a consistent, GitOps-friendly way to manage network and load-balancing infrastructure from within the cluster, with standard Kubernetes RBAC and tooling.\n\n## Getting Started\n\n### Prerequisites\n- go version v1.24.6+\n- kubectl version v1.35.0+.\n- Access to a Kubernetes v1.35.0+ cluster.\n\n### To Deploy on the cluster\n**Build and push your image to the location specified by `IMG`:**\n\n```sh\nmake docker-build docker-push IMG=\u003csome-registry\u003e/iaas-controller:tag\n```\n\n**NOTE:** This image ought to be published in the personal registry you specified.\nAnd it is required to have access to pull the image from the working environment.\nMake sure you have the proper permission to the registry if the above commands don’t work.\n\n**Install the CRDs into the cluster:**\n\n```sh\nmake install\n```\n\n**Deploy the Manager to the cluster with the image specified by `IMG`:**\n\n```sh\nmake deploy IMG=\u003csome-registry\u003e/iaas-controller:tag\n```\n\n\u003e **NOTE**: If you encounter RBAC errors, you may need to grant yourself cluster-admin\nprivileges or be logged in as admin.\n\n**Create instances of your solution**\nYou can apply the samples (examples) from the config/sample:\n\n```sh\nkubectl apply -k config/samples/\n```\n\n\u003e**NOTE**: Ensure that the samples has default values to test it out.\n\n## Deploy with Helm and workload identity federation\n\nFor production-style installs from the published OCI chart, the recommended authentication mode is **OIDC token exchange**: the controller uses the in-cluster Kubernetes service account token as a *subject token*, exchanges it at Thalassa’s token endpoint for an API access token, and calls the IaaS API with that token. That flow is set up with **workload identity federation** so Thalassa trusts tokens from your cluster’s service account.\n\n### Prerequisites\n\n- Thalassa `tcloud` CLI (or your org’s equivalent) with permission to run workload-identity bootstrap.\n- Your **organisation** ID and **cluster** identity in Thalassa (from the console or your platform team).\n- Helm 3.x and access to the chart registry (`oci://ghcr.io/thalassa-cloud/charts/…`).\n\n### 1. Bootstrap federated identity\n\nBefore installing the controller, register the Kubernetes service account that the chart will use (default name `iaas-controller` in namespace `thalassa-iaas-controller`) with Thalassa IAM. The bootstrap command creates the federated binding and a Thalassa **service account** used for token exchange; you need its ID for Helm.\n\nExample (adjust cluster ID, namespace, SA name, and role to match your environment):\n\n```bash\nexport ORGANISATION_ID=\"\u003cyour-org-id\u003e\"\nexport CLUSTER_ID=\"\u003cyour-cluster-id\u003e\"\n\ntcloud iam workload-identity-federation bootstrap kubernetes \\\n  --cluster \"$CLUSTER_ID\" \\\n  --namespace thalassa-iaas-controller \\\n  --service-account iaas-controller \\\n  --role iaas:FullAdminAccess\n```\n\nCopy **Thalassa service account ID** from the command output or UI (for example `sa-…`) into `THALASSA_SERVICE_ACCOUNT_ID` for the next step.\n\n### 2. Helm values (token exchange)\n\nEnable Thalassa, set your organisation, and configure `authMethod: tokenExchange` with the service account ID from bootstrap. The chart mounts a **projected** service account token and passes `--thalassa-subject-token-file` so the controller never relies on `THALASSA_*` environment variables for client configuration.\n\n```yaml\nthalassa:\n  enabled: true\n  url: \"https://api.thalassa.cloud/\"\n  organisation: \"\u003cORGANISATION_ID\u003e\"\n  authMethod: tokenExchange\n  tokenExchange:\n    serviceAccountId: \"\u003cTHALASSA_SERVICE_ACCOUNT_ID\u003e\"\n    projectedToken:\n      enabled: true\n      audience: \"https://api.thalassa.cloud/\"\n\nserviceAccount:\n  create: true\n```\n\nYou can merge this into a `values.yaml` file or set the same keys with `helm --set` (see below).\n\n### 3. Install CRDs and controller\n\nInstall CRDs first, then the controller chart. Pin the chart version you intend to run (examples use a tag; replace with the current release).\n\n```bash\nexport ORGANISATION_ID=\"\u003cORGANISATION_ID\u003e\"\nexport THALASSA_SERVICE_ACCOUNT_ID=\"\u003cTHALASSA_SERVICE_ACCOUNT_ID\u003e\"\n\nhelm upgrade --install iaas-controller-crds oci://ghcr.io/thalassa-cloud/charts/iaas-controller-crds:\u003cversion\u003e \\\n  --namespace thalassa-iaas-controller \\\n  --create-namespace\n\nhelm upgrade --install iaas-controller oci://ghcr.io/thalassa-cloud/charts/iaas-controller:\u003cversion\u003e \\\n  --namespace thalassa-iaas-controller \\\n  --create-namespace \\\n  --set thalassa.organisation=\"$ORGANISATION_ID\" \\\n  --set thalassa.tokenExchange.serviceAccountId=\"$THALASSA_SERVICE_ACCOUNT_ID\" \\\n  --set enableServiceMonitor=false\n```\n\nOther auth methods (personal access token, OAuth2 client credentials) and more chart options are documented in [`chart/iaas-controller/README.md`](chart/iaas-controller/README.md).\n\n**Step-by-step copy/paste** (concrete namespace, chart versions, and optional `tcloud` profile notes) lives in [`deploy/README.md`](deploy/README.md). For **Flux CD**, see [`deploy/flux/README.md`](deploy/flux/README.md).\n\n## To Uninstall\n\n**Delete the instances (CRs) from the cluster:**\n\n```sh\nkubectl delete -k config/samples/\n```\n\n**Delete the APIs(CRDs) from the cluster:**\n\n```sh\nmake uninstall\n```\n\n**UnDeploy the controller from the cluster:**\n\n```sh\nmake undeploy\n```\n\n## Project Distribution\n\nFollowing the options to release and provide this solution to the users.\n\n### By providing a bundle with all YAML files\n\n1. Build the installer for the image built and published in the registry:\n\n```sh\nmake build-installer IMG=\u003csome-registry\u003e/iaas-controller:tag\n```\n\n**NOTE:** The makefile target mentioned above generates an 'install.yaml'\nfile in the dist directory. This file contains all the resources built\nwith Kustomize, which are necessary to install this project without its\ndependencies.\n\n2. Using the installer\n\nUsers can just run 'kubectl apply -f \u003cURL for YAML BUNDLE\u003e' to install\nthe project, i.e.:\n\n```sh\nkubectl apply -f https://raw.githubusercontent.com/\u003corg\u003e/iaas-controller/\u003ctag or branch\u003e/dist/install.yaml\n```\n\n### By providing a Helm Chart\n\n1. Build the chart using the optional helm plugin\n\n```sh\nkubebuilder edit --plugins=helm/v2-alpha\n```\n\n2. See that a chart was generated under 'dist/chart', and users\ncan obtain this solution from there.\n\n**NOTE:** If you change the project, you need to update the Helm Chart\nusing the same command above to sync the latest changes. Furthermore,\nif you create webhooks, you need to use the above command with\nthe '--force' flag and manually ensure that any custom configuration\npreviously added to 'dist/chart/values.yaml' or 'dist/chart/manager/manager.yaml'\nis manually re-applied afterwards.\n\n## License\n\nCopyright 2026.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthalassa-cloud%2Fiaas-controller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthalassa-cloud%2Fiaas-controller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthalassa-cloud%2Fiaas-controller/lists"}