Study. uk . com
  1. Home
  2. All questions
  3. Question 971

CKA study material · question 971 of 1000

kubectl create secret generic tls-bundle --from-file=/certs/server.pem is run. What key is created?

  1. tls.crt
  2. certs-server.pem
  3. the full path with slashes replaced
  4. server.pem
Show the answer

Answer: D. server.pem

The key defaults to the file's basename; a different key is chosen by writing the argument as key=path.

Source: kubectl create secret generic (Kubernetes) — Synopsis

Challenge yourself on this topic → Study as cards