Skip to content

Commit

Permalink
Update to newer Spire version
Browse files Browse the repository at this point in the history
  • Loading branch information
LionelJouin committed Apr 18, 2024
1 parent 0d7c4e5 commit 00c2928
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 3 deletions.
26 changes: 26 additions & 0 deletions docs/demo/deployments/spire/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
spiffe-csi-driver:
enabled: false
spiffe-oidc-discovery-provider:
enabled: false
spire-agent:
socketPath: /run/spire/sockets/agent.sock
spire-server:
# nodeAttestor:
# k8sPsat:
# audience: []
# externalK8sPsat:
# defaults:
# audience: []
controllerManager:
identities:
clusterSPIFFEIDs:
default:
autoPopulateDNSNames: true
dnsNameTemplates:
- "{{ .PodMeta.Name }}"
global:
spire:
caSubject:
country: US
organization: SPIFFE
commonName: ""
8 changes: 5 additions & 3 deletions docs/demo/scripts/kind/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,14 @@ clean: kind-delete-cluster kind-delete-gateways ## Delete the Kind cluster and t

.PHONY: install-spire
install-spire: ## Install spire
kubectl apply -k ../../deployments/spire
helm repo add spiffe https://spiffe.github.io/helm-charts-hardened/ ; \
helm repo update ; \
helm install -n spire --create-namespace my-spire-crds spiffe/spire-crds --version 0.4.0 ; \
helm install -n spire --create-namespace my-spire spiffe/spire --version 0.20.0 -f ../../deployments/spire/values.yaml

.PHONY: wait-spire
wait-spire: ## Wait for spire to be ready
kubectl wait -n spire --timeout=$(WAIT_TIMEOUT) --for=condition=ready pod -l app=spire-agent ; \
kubectl wait -n spire --timeout=$(WAIT_TIMEOUT) --for=condition=ready pod -l app=spire-server
kubectl wait -n spire --timeout=$(WAIT_TIMEOUT) --for=condition=ready pod -l app.kubernetes.io/instance=my-spire

#############################################################################
##@ NSM
Expand Down

0 comments on commit 00c2928

Please sign in to comment.