Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update example configurations to use a persistent KeyManager #5197 #66

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading