Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 373 Bytes

093_create_secret_with_two_text_secrets.md

File metadata and controls

17 lines (14 loc) · 373 Bytes

TASK: create a simple secret (foo-secret) that only has two secrets username=foo-user password=foo-pw

ANSWER:

Trick here is to know that you use an option called "--from-literal".

It is only easy of you "know" it

kubectl create secret generic foo-secret --from-literal=username=foo-user3 \

--from-literal=password=foo-pw