0 votes
in Kubernetes K8s by
What is the command to create a Kubernetes Secret?

a) kubectl create secret [name] –from-file=[filename]

b) kubectl apply -f secret.yaml

c) kubectl create -f secret.yaml

d) kubectl create secret generic [name] –from-file=[filename]

1 Answer

0 votes
by

Answer: d)

Explanation: kubectl create secret generic [name] –from-file=[filename]. This command creates a new Kubernetes Secret with the specified name and data from the specified file.

...