...

>

Creating Generic Secrets

Creating Generic Secrets

In this lesson, we will create generic Secrets.

Creating Secrets

The commands to create Secrets are almost the same as those we used to create ConfigMaps. We can, for example, generate Secrets based on literal values.

Shell
kubectl create secret \
generic my-creds \
--from-literal=username=jdoe \
--from-literal=password=incognito

The major difference is that we specified the type of the Secret as generic.

It could also ...

Access this course and 1800+ top-rated courses and projects.