CLI utility for transferring secrets betweeen Kubernetes and 1Password
npm install opkubeYou need the op binary available in $PATH.
# Sign in with op
eval $(op signin myteam)
# Create kubernetes secrets from 1P vault items
opkube from-vault myvault | kubectl create -f -
# Store kubernetes secrets in 1Password vault
kubectl get secrets | opkube to-vault myvault
# Install shell completion (bash, zsh, fish)
opkube --install-completion
# Uninstall shell completion
opkube --uninstall-completionA secret is represented as a Secure Note.
Single line values are stored as key/value pairs under a section titled data, while multiline values are stored as linked documents.
1Password secure notes must be tagged secret te be considered by opkube.