Hi everyone,
As I am studying through the secrets and configmaps the main difference i found out that the only difference between them is that secret encodes the values while creating secrets. In an imperative way i found that we are not encoding the value and passing it to the parameters “–from-liberal” where as in declarative way we can add the values as encoded ones. if this is the process then where is the difference between secrets and configmaps .
If we are not encoding the values and using them in imperative / declarative way how come the difference between secret and configmaps are the encoding part
orelse,
the secrets will automatically encode the values that given to it in either imperative and declarative way?
Kindly clear this one thanks in advance
Secret values will always be automatically encoded when doing imperatively with --from-literal
If you create a declarative manifest file, you must do the encoding yourself when you use
data:
someValue: <paste base64 here>
But you can also do
stringData:
someValue: <this will be encoded for you>