Skip to content

Commit

Permalink
Update example configurations to use a persistent KeyManager #5197
Browse files Browse the repository at this point in the history
Signed-off-by: Matteus Silva <matteus.sthefano.ls@gmail.com>
  • Loading branch information
SilvaMatteus committed Jun 23, 2024
1 parent f6bf876 commit ad3a3b0
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ data:
cluster = "{{ .Values.clustername }}"
}
}
KeyManager "memory" {
plugin_data {
KeyManager "disk" {
plugin_data = {
directory = "/run/spire"
}
}
WorkloadAttestor "k8s" {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ spec:
- name: spire-agent-socket
mountPath: /run/spire/sockets
readOnly: false
- name: spire-agent-data
mountPath: /run/spire
readOnly: false
- name: spire-bundle
mountPath: /run/spire/bundle
readOnly: true
Expand Down Expand Up @@ -72,6 +75,10 @@ spec:
hostPath:
path: /run/spire/sockets
type: DirectoryOrCreate
- name: spire-agent-data
hostPath:
path: /run/spire
type: DirectoryOrCreate
- name: spire-agent-token
projected:
sources:
Expand Down
12 changes: 10 additions & 2 deletions examples/k8s/eks_sat/spire-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ data:
}
}
KeyManager "memory" {
plugin_data {
KeyManager "disk" {
plugin_data = {
directory = "/run/spire"
}
}
Expand Down Expand Up @@ -144,6 +145,9 @@ spec:
- name: spire-agent-socket
mountPath: /run/spire/sockets
readOnly: false
- name: spire-agent-data
mountPath: /run/spire
readOnly: false
livenessProbe:
httpGet:
path: /live
Expand All @@ -166,3 +170,7 @@ spec:
hostPath:
path: /run/spire/sockets
type: DirectoryOrCreate
- name: spire-agent-data
hostPath:
path: /run/spire
type: DirectoryOrCreate
12 changes: 10 additions & 2 deletions examples/k8s/postgres/spire-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ data:
}
}
KeyManager "memory" {
plugin_data {
KeyManager "disk" {
plugin_data = {
directory = "/run/spire"
}
}
Expand Down Expand Up @@ -120,6 +121,9 @@ spec:
- name: spire-agent-socket
mountPath: /run/spire/sockets
readOnly: false
- name: spire-agent-data
mountPath: /run/spire
readOnly: false
livenessProbe:
httpGet:
path: /live
Expand All @@ -142,3 +146,7 @@ spec:
hostPath:
path: /run/spire/sockets
type: DirectoryOrCreate
- name: spire-agent-data
hostPath:
path: /run/spire
type: DirectoryOrCreate
12 changes: 10 additions & 2 deletions examples/k8s/simple_psat/spire-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ data:
}
}
KeyManager "memory" {
plugin_data {
KeyManager "disk" {
plugin_data = {
directory = "/run/spire"
}
}
Expand Down Expand Up @@ -148,6 +149,9 @@ spec:
- name: spire-agent-socket
mountPath: /run/spire/sockets
readOnly: false
- name: spire-agent-data
mountPath: /run/spire
readOnly: false
- name: spire-token
mountPath: /var/run/secrets/tokens
livenessProbe:
Expand All @@ -172,6 +176,10 @@ spec:
hostPath:
path: /run/spire/sockets
type: DirectoryOrCreate
- name: spire-agent-data
hostPath:
path: /run/spire
type: DirectoryOrCreate
- name: spire-token
projected:
sources:
Expand Down
12 changes: 10 additions & 2 deletions examples/k8s/simple_sat/spire-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ data:
}
}
KeyManager "memory" {
plugin_data {
KeyManager "disk" {
plugin_data = {
directory = "/run/spire"
}
}
Expand Down Expand Up @@ -120,6 +121,9 @@ spec:
- name: spire-agent-socket
mountPath: /run/spire/sockets
readOnly: false
- name: spire-agent-data
mountPath: /run/spire
readOnly: false
livenessProbe:
httpGet:
path: /live
Expand All @@ -142,3 +146,7 @@ spec:
hostPath:
path: /run/spire/sockets
type: DirectoryOrCreate
- name: spire-agent-data
hostPath:
path: /run/spire
type: DirectoryOrCreate

0 comments on commit ad3a3b0

Please sign in to comment.