{"id":22619684,"url":"https://github.com/unikraft-cloud/crossplane-provider-unikraft-cloud","last_synced_at":"2025-08-31T23:43:10.529Z","repository":{"id":203064610,"uuid":"703443959","full_name":"unikraft-cloud/crossplane-provider-unikraft-cloud","owner":"unikraft-cloud","description":"⎈ Crossplane Provider for Unikraft Cloud","archived":false,"fork":false,"pushed_at":"2025-02-16T09:37:59.000Z","size":630,"stargazers_count":3,"open_issues_count":11,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-06-09T14:50:19.073Z","etag":null,"topics":["kraftcloud","kubernetes","unikernel"],"latest_commit_sha":null,"homepage":"","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/unikraft-cloud.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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}},"created_at":"2023-10-11T08:58:07.000Z","updated_at":"2025-04-24T01:45:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"092a7702-2ec1-4028-b6bd-67a50d62c99d","html_url":"https://github.com/unikraft-cloud/crossplane-provider-unikraft-cloud","commit_stats":null,"previous_names":["kraftcloud/crossplane-provider-kraftcloud","unikraft-cloud/crossplane-provider-kraftcloud","unikraft-cloud/crossplane-provider-unikraft-cloud"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/unikraft-cloud/crossplane-provider-unikraft-cloud","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unikraft-cloud%2Fcrossplane-provider-unikraft-cloud","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unikraft-cloud%2Fcrossplane-provider-unikraft-cloud/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unikraft-cloud%2Fcrossplane-provider-unikraft-cloud/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unikraft-cloud%2Fcrossplane-provider-unikraft-cloud/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unikraft-cloud","download_url":"https://codeload.github.com/unikraft-cloud/crossplane-provider-unikraft-cloud/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unikraft-cloud%2Fcrossplane-provider-unikraft-cloud/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273055895,"owners_count":25037871,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-31T02:00:09.071Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["kraftcloud","kubernetes","unikernel"],"created_at":"2024-12-08T22:07:27.683Z","updated_at":"2025-08-31T23:43:10.487Z","avatar_url":"https://github.com/unikraft-cloud.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# provider-kraftcloud\n\n`provider-kraftcloud` is an early but functional [Crossplane](https://crossplane.io/) Provider for the Kraftcloud API. This provider allows you to manage Kraftcloud resources as managed resources within Crossplane. \n\nThis initial version supports the `Instance` resource, allowing you to manage your Kraftcloud instances seamlessly.\n\n## Supported Resources\n\n### Instance\n\nThe `Instance` type allows you to specify the desired state of your Kraftcloud instance.\n\nSample resource:\n\n```yaml\napiVersion: compute.kraftcloud.crossplane.io/v1alpha1\nkind: Instance\nmetadata:\n  name: example\nspec:\n  forProvider:\n    image: unikraft.io/jayc.unikraft.io/mynginx:latest\n    memory: \"64Mi\"\n    args:\n    - \"-c\"\n    - \"/nginx/conf/nginx.conf\"\n    internalPort: 80\n    port: 443\n    desiredState: stopped\n  providerConfigRef:\n    name: example\n```\n## Setting Up the Configuration in the Cluster\n\nTo enable provider-kraftcloud in your Crossplane setup, you'll need to set up the appropriate configuration in your cluster. This involves setting up a secret to store your Kraftcloud token and a ProviderConfig resource to reference that secret.\n\n### Here's how to do it:\n\n1. Install the provider-kraftcloud:\n\nFirst, ensure you've installed the provider-kraftcloud to your Crossplane instance.\n\n2. Prepare Your Kraftcloud Token:\n\nYou will need a valid Kraftcloud token to authenticate and interact with the Kraftcloud API. Once you've obtained your token, you'll need to encode it in base64. On a UNIX-like system, you can do this as follows:\n\nbash\n\n```sh\necho -n 'YOUR_KRAFTCLOUD_TOKEN' | base64\n```\n\nRemember the output; you will use it in the next step.\n\n## 3. Create the Secret:\n\nUsing the base64 encoded token from the previous step, create a secret in the crossplane-system namespace:\n\n```yaml\n\napiVersion: v1\nkind: Secret\nmetadata:\n  namespace: crossplane-system\n  name: example-provider-secret\ntype: Opaque\ndata:\n  credentials: YOUR_BASE64_ENCODED_TOKEN\n```\n\nApply the secret to the cluster:\n\n```sh\nkubectl apply -f \u003cfilename-of-your-secret.yaml\u003e\n```\n\n## 4. Create the ProviderConfig:\n\nNow, you need to create a ProviderConfig resource that references the previously created secret:\n\n```yaml\napiVersion: kraftcloud.crossplane.io/v1alpha1\nkind: ProviderConfig\nmetadata:\n  name: example\nspec:\n  credentials:\n    source: Secret\n    secretRef:\n      namespace: crossplane-system\n      name: example-provider-secret\n      key: credentials\n```\nApply the ProviderConfig to the cluster:\n\n```sh\nkubectl apply -f \u003cfilename-of-your-providerconfig.yaml\u003e\n```\n\n## 5. Verify Your Setup:\n\nYou can now check if the ProviderConfig and the secret were created successfully:\n\n```sh\nkubectl get providerconfigs.kraftcloud.crossplane.io\nkubectl get secrets -n crossplane-system\n```\n\nIf you see your example ProviderConfig and example-provider-secret secret listed, the setup is complete!\n\n## 6. Start Using provider-kraftcloud:\n\nWith the configuration in place, you can now start creating Instance resources as defined in the earlier section, and manage your Kraftcloud instances using Crossplane.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funikraft-cloud%2Fcrossplane-provider-unikraft-cloud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funikraft-cloud%2Fcrossplane-provider-unikraft-cloud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funikraft-cloud%2Fcrossplane-provider-unikraft-cloud/lists"}