A Kubernetes Secret is an API object for storing sensitive values and supplying them to workloads. A typical Secret uses apiVersion v1, kind Secret, an object name, type Opaque, and data fields whose values are represented as base64 strings.
Credential Secret
The test-secret object stores database_username and database_password under type Opaque. A kubectl template command retrieves one field and pipes it to base64 -d for inspection.





