Legacy Vault Helm Deployment on Kubernetes

๐Ÿ’ก Legacy Vault Helm Deployment on Kubernetes โ€” Executive Summary

Technical architectural analysis, practical configuration manifests, and deployment instructions for Legacy Vault Helm Deployment on Kubernetes.

1. vault

Modify mdware-helm/scripts/vault/transit-vault-deploy.sh, service-vault-deploy.sh

When node select is required
shell
#nodeSelector ์ž…๋ ฅ์ด ์•ˆ ๋จนํ˜€์„œ ์ง์ ‘ chart์— ๋“ค์–ด๊ฐ€์„œ ์ˆ˜์ •ํ•ด์•ผํ•จ
#node label
kubectl edit node {{ worker-node }}
label: nodetype=infra

#chart/vault/values.yaml ์ˆ˜์ •
nodeSelector:
    nodetype: infra

Installation Procedure

  1. scripts/init/transit-vault-injector-pvc.yaml, service-vault-injector-pvc.yaml files

    Run through k apply -f command

  2. transit-vault-deploy.sh deploy

  3. transit-vault-unseal.sh > Confirm file creation
  4. In service-vault-deploy.sh, change CONF_SET to 1 and remove two server.service.* entries
  5. service-vault-deploy.sh deploy
  6. If you confirm that it has been uploaded, revert to step 4 (change to 0 and insert again)
  7. service-vault-deploy.sh upgrade (You can ignore the error message)
  8. service-vault-unseal.sh > Check the token value when it appears
2. Create secret
3. Install safe on k8s-master-1
bash
wget https://github.com/Qarik-Group/safe/releases/download/v1.7.0/safe-linux-amd64
cp safe-linux-amd64 /bin/safe
chmod 777 /bin/safe
4. safe
shell
safe target http://{ vault-activeClusterIP:PORT } vault
safe auth # vault token ์ž…๋ ฅ
safe env 
safe import < { vault_data_json_file }
safe tree

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *