1. [Home](<https://delaparra-services.nl/>) 
1. [Knowledge hub](<https://delaparra-services.nl/knowledge-hub>) 
1. [Secret](<https://delaparra-services.nl/knowledge-hub/secret>)

  

Category: Kubernetes 

# Secret

  Explained by [Reinier de la Parra](<https://delaparra-services.nl/about>)  Updated November 25, 2026    

## What is Secret?

 

Secret: Like a ConfigMap but for sensitive data — passwords, tokens, TLS keys. Stored base64-encoded and handled with extra care by the API. A Secret in Kubernetes stores sensitive data such as passwords, API keys and TLS certificates. Pods use it as environment variables or as files, just like a ConfigMap.

 

Definition source [Coders Lingo](<https://coderslingo.com/resources/open-dataset/>), [CC BY 4.0](<https://creativecommons.org/licenses/by/4.0/>)

 

## Frequently asked questions about Secret

  

### How is Secret used in practice?

 

By default, Secrets are only base64-encoded, which is not encryption. Anyone who can read Secrets in a namespace can read the values. Their protection comes from access rules, and from encryption at rest, which most managed clusters enable.

    

### What should you keep in mind with Secret?

 

Restrict who can read Secrets with RBAC, and never commit them to Git in plain form. Tools like Sealed Secrets, SOPS or the External Secrets Operator let you store encrypted versions in Git or pull values from a secret manager. Rotate secrets when people leave or after an incident, and restart pods afterwards, because environment variables are only read at start-up.

    

### What does an example of Secret look like?

 

```
apiVersion: v1 kind: Secret metadata: name: db-creds type: Opaque stringData: password: s3cr3t
```

 

## At a glance

   CategoryKubernetes Explained by[Reinier de la Parra](<https://delaparra-services.nl/about>) UpdatedNovember 25, 2026

 

## More Kubernetes terms

 

- [requests](<https://delaparra-services.nl/knowledge-hub/requests>) 
- [rollout](<https://delaparra-services.nl/knowledge-hub/rollout>) 
- [scale](<https://delaparra-services.nl/knowledge-hub/scale>) 
- [selector](<https://delaparra-services.nl/knowledge-hub/selector>) 
- [Service](<https://delaparra-services.nl/knowledge-hub/service>) 
- [StatefulSet](<https://delaparra-services.nl/knowledge-hub/statefulset>)

 

[All terms starting with S](<https://delaparra-services.nl/knowledge-hub#letter-s>)

 

## Skills

 

- ### Kubernetes Security Policies

 

Implement Kubernetes security policies including NetworkPolicy, PodSecurityPolicy, and RBAC for production-grade security. Use when securing Kubernetes clusters, implementing network isolation, or enforcing pod security standards.

 [View skill](<https://delaparra-services.nl/skills/k8s-security-policies>) [Download zip](<https://delaparra-services.nl/skills/k8s-security-policies/download>) 
- ### Secrets Management

 

Implement secure secrets management for CI/CD pipelines using Vault, AWS Secrets Manager, or native platform solutions. Use when handling sensitive credentials, rotating secrets, or securing CI/CD environments.

 [View skill](<https://delaparra-services.nl/skills/secrets-management>) [Download zip](<https://delaparra-services.nl/skills/secrets-management/download>) 
- ### Kubernetes Manifest Generator

 

Create production-ready Kubernetes manifests for Deployments, Services, ConfigMaps, and Secrets following best practices and security standards. Use when generating Kubernetes YAML manifests, creating K8s resources, or implementing production-grade Kubernetes configurations.

 [View skill](<https://delaparra-services.nl/skills/k8s-manifest-generator>) [Download zip](<https://delaparra-services.nl/skills/k8s-manifest-generator/download>)

 [Download all skills (zip)](<https://delaparra-services.nl/knowledge-hub/secret/skills.zip>)

 

## Manuals

 

- [Kubernetes and Terraform: do you need them?](<https://delaparra-services.nl/manuals/kubernetes-en-terraform-heb-je-het-nodig>) 
- [.env and environment variables](<https://delaparra-services.nl/manuals/env-en-omgevingsvariabelen>)

 

## Related services

 

- [Custom software and web applications](<https://delaparra-services.nl/services#service-03>)

Perhaps your customers need somewhere to download their invoices, or your staff are managing bookings in a spreadsheet.

 

## Need any help?

 

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.

  [Get in touch](<https://delaparra-services.nl/availability>)

[HTML version](https://delaparra-services.nl/knowledge-hub/secret)
