-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvalues-test.yaml
101 lines (101 loc) · 3.1 KB
/
values-test.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# Test values with following command
# helm template vault-operator-config --namespace=vault --create-namespace --values values-test.yaml
vaultOperator:
vaults:
- name: "vault"
size: 3
istioEnabled: true
vaultEnvsConfig:
- name: AWS_REGION
value: eu-central-1
- name: VAULT_AWSKMS_SEAL_KEY_ID
value: CHANGE_ME
unsealConfig:
kubernetes:
secretNamespace: vault
externalConfig:
policies:
- name: allow_secrets
rules: |
path "secret/*" {
capabilities = ["create", "read", "update", "delete", "list"]
}
auth:
- type: kubernetes
roles:
# Allow every pod in the default namespace to use the secret kv store
- name: default
bound_service_account_names: ["default", "vault"]
bound_service_account_namespaces: ["*"]
policies: ["allow_secrets"]
ttl: 1h
secrets:
- path: secret
type: kv
description: General secrets.
options:
version: 2
# Vault Config
# Integrated Raft storage with cluster auto discovery/join via K8s
# Auto unseal via KMS
config:
ui: true
log_level: "info"
log_requests_level: "off"
log_format: json
log_file: /vault/logs/
log_rotate_bytes: 10000000
log_rotate_max_files: 9
disable_mlock: true
introspection_endpoint: true
default_lease_ttl: "1h"
max_lease_ttl: "1h"
listener:
tcp:
tls_disable: 1
address: "[::]:8200"
cluster_address: "[::]:8201"
telemetry:
unauthenticated_metrics_access: "true"
cluster_addr: "http://${.Env.POD_NAME}:8201"
api_addr: http://${.Env.POD_NAME}:8200
telemetry:
prometheus_retention_time: "30s"
disable_hostname: true
seal:
awskms: {}
# region = set with $AWS_REGION
# kms_key_id = set with $VAULT_AWSKMS_SEAL_KEY_ID
storage:
raft:
path: "/vault/raft"
retry_join:
auto_join: provider=k8s label_selector="app.kubernetes.io/instance=vault" namespace=${.Env.POD_NAMESPACE}
auto_join_port: 8200
auto_join_scheme: "http"
service_registration:
kubernetes: {}
volumeMounts:
- name: vault-raft
mountPath: /vault/raft
- name: vault-logs
mountPath: /vault/logs
volumeClaimTemplates:
- metadata:
name: vault-raft
spec:
accessModes:
- ReadWriteOnce
volumeMode: Filesystem
resources:
requests:
storage: 1Gi
- metadata:
name: vault-logs
spec:
accessModes:
- ReadWriteOnce
volumeMode: Filesystem
resources:
requests:
storage: 200Mi