Skip to content

damlys/k8s-secrets-with-sops

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Encrypt secret

sops --encrypt --output=manifests/mysql-envs.secret.enc.yaml manifests/mysql-envs.secret.dec.yaml

View secret

sops --decrypt manifests/mysql-envs.secret.enc.yaml

Apply secret

sops --decrypt manifests/mysql-envs.secret.enc.yaml | kubectl apply --filename=-

Edit secret

EDITOR="code --wait" sops manifests/mysql-envs.secret.enc.yaml

Decrypt secret

sops --decrypt --output=manifests/mysql-envs.secret.dec.yaml manifests/mysql-envs.secret.enc.yaml

About

Kubernetes secrets encryption with Mozilla SOPS

Topics

Resources

Stars

Watchers

Forks