From f2c3647b7d2019edfdb8105bfd1284f75aad7597 Mon Sep 17 00:00:00 2001 From: marcel-dempers Date: Sat, 29 Feb 2020 22:21:08 +1100 Subject: [PATCH] WIP - injector examples --- hashicorp/readme.md | 5 +++++ hashicorp/vault/injector/injector-deployment.yaml | 2 +- hashicorp/vault/injector/kind.yaml | 4 ++++ hashicorp/vault/server/server-pvc.yaml | 3 ++- 4 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 hashicorp/readme.md create mode 100644 hashicorp/vault/injector/kind.yaml diff --git a/hashicorp/readme.md b/hashicorp/readme.md new file mode 100644 index 0000000..4056add --- /dev/null +++ b/hashicorp/readme.md @@ -0,0 +1,5 @@ +# Hashicorp Vault Guide + +# Vault + +For the exact files I used during my video guide, refer to commit: diff --git a/hashicorp/vault/injector/injector-deployment.yaml b/hashicorp/vault/injector/injector-deployment.yaml index f4c142f..379934f 100644 --- a/hashicorp/vault/injector/injector-deployment.yaml +++ b/hashicorp/vault/injector/injector-deployment.yaml @@ -32,7 +32,7 @@ spec: - name: AGENT_INJECT_LOG_LEVEL value: "info" - name: AGENT_INJECT_VAULT_ADDR - value: http://vault-example:8200 + value: https://vault-example:8200 - name: AGENT_INJECT_VAULT_IMAGE value: "vault:1.3.1" - name: AGENT_INJECT_TLS_AUTO diff --git a/hashicorp/vault/injector/kind.yaml b/hashicorp/vault/injector/kind.yaml new file mode 100644 index 0000000..e11e6e9 --- /dev/null +++ b/hashicorp/vault/injector/kind.yaml @@ -0,0 +1,4 @@ + +# #https://kubernetes.io/docs/reference/access-authn-authz/extensible-admission-controllers/ + +#kind create cluster --name vault --image kindest/node:v1.17.0@sha256:9512edae126da271b66b990b6fff768fbb7cd786c7d39e86bdf55906352fdf62 --config kind.yaml \ No newline at end of file diff --git a/hashicorp/vault/server/server-pvc.yaml b/hashicorp/vault/server/server-pvc.yaml index 258976a..55b51fe 100644 --- a/hashicorp/vault/server/server-pvc.yaml +++ b/hashicorp/vault/server/server-pvc.yaml @@ -3,7 +3,8 @@ kind: PersistentVolumeClaim metadata: name: vault-claim spec: - storageClassName: hostpath + storageClassName: standard + #storageClassName: hostpath accessModes: - ReadWriteOnce resources: