Is there a way to use the `--from-file` flag in ku...
# kubernetes
m
Is there a way to use the
--from-file
flag in kubectl for secret creation via Pulumi?
b
Copy code
brew install pulumi/tap/kube2pulumi # install kube2pulumi for your OS
kubectl create secret generic my-secret --from-file="./username.txt" --dry-run=client -o yaml | tee /tmp/secret.yaml
kube2pulumi python -f /tmp/secret.yaml
m
Oh interesting - thank you!
One quick note for the future - I copied and pasted this command and it wiped out my index.ts šŸ˜ž
Is there a way to create this in another file name?
b
-o, --outputFile string   The name of the output file to write to
m
Got it thanks!
b
iā€™d generally not recommend running commands without looking at the
--help
before running them
šŸ‘ 1