forked from lftraining/lfs482-labs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspire-server-config-airfreight-nexus.yaml
72 lines (66 loc) · 1.82 KB
/
spire-server-config-airfreight-nexus.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
apiVersion: v1
kind: ConfigMap
metadata:
name: spire-server
namespace: spire
data:
server.conf: |-
server {
bind_address = "0.0.0.0"
bind_port = "8081"
socket_path = "/tmp/spire-server/private/api.sock"
trust_domain = "airfreight-nexus.example"
data_dir = "/run/spire/data"
log_level = "DEBUG"
ca_key_type = "rsa-2048"
ca_subject = {
country = ["UK"],
organization = ["AirFreight Nexus"],
common_name = "AirFreight Nexus Ltd",
}
federation {
bundle_endpoint {
address = "0.0.0.0"
port = 8443
}
federates_with "coastal-containers.example" {
bundle_endpoint_url = "https://coastal-containers-control-plane:8443"
bundle_endpoint_profile "https_spiffe" {
endpoint_spiffe_id = "spiffe://coastal-containers.example/spire/server"
}
}
}
}
plugins {
DataStore "sql" {
plugin_data {
database_type = "sqlite3"
connection_string = "/run/spire/data/datastore.sqlite3"
}
}
NodeAttestor "k8s_psat" {
plugin_data {
clusters = {
# NOTE: Change this to your cluster name
"kind-airfreight-nexus" = {
service_account_allow_list = ["spire:spire-agent"]
}
}
}
}
KeyManager "memory" {
plugin_data {}
}
Notifier "k8sbundle" {
plugin_data {
# When left unset, this plugin automatically publishes bundle contents from the in-cluster SPIRE server to the bundle.crt key within the spire-bundle ConfigMap
}
}
}
health_checks {
listener_enabled = true
bind_address = "0.0.0.0"
bind_port = "8080"
live_path = "/live"
ready_path = "/ready"
}