{"id":18251688,"url":"https://github.com/summerwind/spire-plugin-datastore-k8s","last_synced_at":"2025-04-04T16:32:32.971Z","repository":{"id":64303257,"uuid":"184981967","full_name":"summerwind/spire-plugin-datastore-k8s","owner":"summerwind","description":"Kubernetes datastore plugin for SPIRE server","archived":false,"fork":false,"pushed_at":"2019-05-11T02:40:15.000Z","size":84,"stargazers_count":7,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-20T06:26:49.561Z","etag":null,"topics":["golang","kubernetes","spiffe","spire"],"latest_commit_sha":null,"homepage":null,"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/summerwind.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}},"created_at":"2019-05-05T05:09:03.000Z","updated_at":"2024-06-20T06:26:49.561Z","dependencies_parsed_at":"2023-01-15T10:01:05.402Z","dependency_job_id":null,"html_url":"https://github.com/summerwind/spire-plugin-datastore-k8s","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/summerwind%2Fspire-plugin-datastore-k8s","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/summerwind%2Fspire-plugin-datastore-k8s/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/summerwind%2Fspire-plugin-datastore-k8s/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/summerwind%2Fspire-plugin-datastore-k8s/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/summerwind","download_url":"https://codeload.github.com/summerwind/spire-plugin-datastore-k8s/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223150766,"owners_count":17095957,"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","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","kubernetes","spiffe","spire"],"created_at":"2024-11-05T09:48:14.355Z","updated_at":"2024-11-05T09:48:18.388Z","avatar_url":"https://github.com/summerwind.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kubernetes datastore plugin for SPIRE server\n\nA SPIRE datastore plugin that enables you to store data using Kubernetes Custom Resource.\n\n## Motivation\n\n- Make running SPIRE Server on Kubernetes simpler\n- Enables SPIRE Server to run without managing persistent volumes\n\n## Installation\n\nDownload latest binary and install it to the plugin directory.\n\n```\n$ curl -L -O https://github.com/summerwind/spire-plugin-datastore-k8s/releases/latest/download/spire-plugin-datastore-k8s-linux-amd64.tar.gz\n$ tar zxvf spire-plugin-datastore-k8s-linux-amd64.tar.gz\n$ mv spire-plugin-datastore-k8s /path/to/plugin\n```\n\n## Configuration\n\nThe plugin accepts the following configuration options:\n\n| Configuration | Description |\n| --- | --- |\n| namespace  | Kubernetes namespace to manage custom resources |\n| kubeconfig | Path to configuration file to access kubernetes API |\n\nA sample configuration for SPIRE server:\n\n```\nplugins {\n  DataStore \"k8s\" {\n    plugin_cmd = \"/path/to/plugin\"\n    plugin_data {\n      namespace = \"spire\"\n    }\n  }\n}\n```\n\n## Deploying to Kubernetes\n\nYou must create *CustomResourceDefinition (CRD)* resources in your Kubernetes cluster before you deploy the plugin. Create CRDs as follows:\n\n```\n$ curl -L https://github.com/summerwind/spire-plugin-datastore-k8s/releases/latest/download/crd.yaml | kubectl apply -f -\n```\n\nIn addition, the Pod of the SPIRE server must have permissions to manage the resources of the CRDs you created. See example manifest below for more information about permissions.\n\n- [spire-server.yaml](manifests/examples/spire-server.yaml)\n\n## Build from soruce\n\nTo build a binary from source, first build the container image and get the binary from it.\n\n```\n$ git clone https://github.com/summerwind/spire-plugin-datastore-k8s\n$ cd spire-plugin-datastore-k8s\n$ docker build --target release -t plugin:latest .\n$ docker create -n spire plugin:latest\n$ docker cp spire:/opt/spire/bin/spire-plugin-datastore-k8s ./\n$ docker rm spire\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsummerwind%2Fspire-plugin-datastore-k8s","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsummerwind%2Fspire-plugin-datastore-k8s","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsummerwind%2Fspire-plugin-datastore-k8s/lists"}