spire

by Philips

Helm chartv0.12.2App 1.6.0MITVerified publisher

A Helm chart for deploying the full Spire stack into your k8s cluster. Components: - spire-server - spire-controller-manager (optional) - spire-k8s-workload-registrar (deprecated, optional) - spire-agent - spiffe-csi-driver - spiffe-oidc-discovery-provider (optional) > **Warning**: Please note this chart requires Projected Service Account Tokens which has to be enabled on your k8s api server. > **Note**: Minimum Spire version is `v1.5.3` *(This requires a nodeSelector to limit to `amd64` nodes on multi-node clusters)*. > The recommended minimum version for multi-architecture clusters is `v1.6.0` which ships with `arm64` support. To enable Projected Service Account Tokens on Docker for Mac/Windows run the following command to SSH into the Docker Desktop K8s VM. ```bash docker run -it --privileged --pid=host debian nsenter -t 1 -m -u -n -i sh ``` Then add the following to `/etc/kubernetes/manifests/kube-apiserver.yaml` ```yaml spec: containers: - command: - kube-apiserver - --api-audiences=api,spire-server - --service-account-issuer=api,spire-agent - --service-account-key-file=/run/config/pki/sa.pub - --service-account-signing-key-file=/run/config/pki/sa.key ```

About this chart

spire

A Helm chart for deploying the full Spire stack into your k8s cluster.

Components:

  • spire-server
    • spire-controller-manager (optional)
    • spire-k8s-workload-registrar (deprecated, optional)
  • spire-agent
  • spiffe-csi-driver
  • spiffe-oidc-discovery-provider (optional)

Warning: Please note this chart requires Projected Service Account Tokens which has to be enabled on your k8s api server.

Note: Minimum Spire version is v1.5.3 (This requires a nodeSelector to limit to amd64 nodes on multi-node clusters). The recommended minimum version for multi-architecture clusters is v1.6.0 which ships with arm64 support.

To enable Projected Service Account Tokens on Docker for Mac/Windows run the following command to SSH into the Docker Desktop K8s VM.

docker run -it --privileged --pid=host debian nsenter -t 1 -m -u -n -i sh

Then add the following to /etc/kubernetes/manifests/kube-apiserver.yaml

spec:
  containers:
    - command:
        - kube-apiserver
        - --api-audiences=api,spire-server
        - --service-account-issuer=api,spire-agent
        - --service-account-key-file=/run/config/pki/sa.pub
        - --service-account-signing-key-file=/run/config/pki/sa.key

Homepage: https://github.com/philips-labs/helm-charts/tree/main/charts/spire

Maintainers

NameEmailUrl
marcofranssen[email protected]https://marcofranssen.nl

Source Code

Requirements

Kubernetes: >=1.21.0-0

RepositoryNameVersion
file://./charts/spiffe-csi-driverspiffe-csi-driver0.1.0
file://./charts/spiffe-oidc-discovery-providerspiffe-oidc-discovery-provider0.1.0
file://./charts/spire-agentspire-agent0.1.0
file://./charts/spire-serverspire-server0.1.0

Values

KeyTypeDefaultDescription
fullnameOverridestring""
nameOverridestring""
spiffe-csi-driver.agentSocketPathstring"/run/spire/agent-sockets/spire-agent.sock"
spiffe-oidc-discovery-provider.enabledboolfalse
spiffe-oidc-discovery-provider.trustDomainstring"example.org"
spire-agent.bundleConfigMapstring"spire-bundle"
spire-agent.clusterNamestring"example-cluster"
spire-agent.nameOverridestring"agent"
spire-agent.socketPathstring"/run/spire/agent-sockets/spire-agent.sock"
spire-agent.trustDomainstring"example.org"
spire-server.bundleConfigMapstring"spire-bundle"
spire-server.clusterNamestring"example-cluster"
spire-server.nameOverridestring"server"
spire-server.trustDomainstring"example.org"

Deploy spire with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has spire on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartspire is pinned at v0.12.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply