-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e544345
commit 9649b35
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# spire server setup | ||
|
||
## Create server | ||
|
||
```shell | ||
kubectl exec -n spire spire-server-0 -- \ | ||
/opt/spire/bin/spire-server entry create \ | ||
-spiffeID spiffe://tunnel.threadr.ai/ns/spire/sa/spire-agent \ | ||
-selector k8s_sat:cluster:threadr-cluster \ | ||
-selector k8s_sat:agent_ns:spire \ | ||
-selector k8s_sat:agent_sa:spire-agent \ | ||
-node | ||
``` | ||
|
||
## Setup workload | ||
|
||
```shell | ||
kubectl exec -n spire spire-server-0 -- \ | ||
/opt/spire/bin/spire-server entry create \ | ||
-spiffeID spiffe://tunnel.threadr.ai/ns/default/sa/default \ | ||
-parentID spiffe://tunnel.threadr.ai/ns/spire/sa/spire-agent \ | ||
-selector k8s:ns:default \ | ||
-selector k8s:sa:default | ||
``` |