Prepare installation with an explicit target
To install an absent recon release or upgrade an existing one, one possible intent is helm upgrade --install recon ./chart -n team-a -f values.yaml. Confirm namespace existence and the command’s identity as prerequisites. The release name is not the name of every produced object.
Inspect helm template recon ./chart -n team-a -f values.yaml before applying: look for unexpected images, replicas, ServiceAccounts, resources, and endpoints. Rendering without contacting the cluster verifies something different from admission and availability.
Output may include Secrets; do not publish it in shared logs. Acceptance needs workload conditions and a functional observation as well as command success.
A base and verifiable differences
In a Kustomize overlay, resources can reference ../../base, images can replace an image, and replicas can select a workload by name. kubectl kustomize overlays/test produces the resulting set for inspection; kubectl apply -k overlays/test applies it to the selected context.
In contrast, apply -f points to manifests and does not express that overlay build. Confirm context, namespace, final names, and Pod-template labels. A patch changing Deployment metadata.labels does not necessarily change spec.template.metadata.labels or Service selectors.
Compare rendered objects as a set, including references to generated ConfigMaps and Secrets, before changing traffic.
Create a Secret reference the consumer can use
An Opaque Secret can receive encoded data in data or text in stringData; the API handles conversion, but the original manifest remains sensitive. A Pod can select a key through secretKeyRef or mount a secret volume. The reference must name the correct Secret and key in the Pod namespace.
If a required key is absent, changing readiness does not repair startup configuration. For environment-based rotation, create a new Secret identity, update the Pod-template reference, confirm authentication by new instances, and manage retirement of the old credential.
With a volume, also verify that the application rereads the file; delivery and adoption are different steps.
Resources and configuration are part of the artifact
The fragment below is a container fragment with fictional names and values; Secret db-client must already exist with key password. requests.cpu: 250m requests a quarter CPU for scheduling and quota accounting. limits.cpu: 500m constrains usage through runtime mechanisms; it does not reserve another half CPU. requests.memory: 128Mi and limits.memory: 256Mi also serve different purposes.
A surge rollout can require additional quota while old Pods remain; calculate coexistence before the window. An admitted Pod may still remain Pending without an eligible node, even when namespace quota permits creation.
Follow the Ingress, Service, and process path
In networking.k8s.io/v1, an Ingress path declares path, pathType, and backend.service.name/port. For example, host app.example.test, path /api, and pathType Prefix must lead to an existing Service and the port it exposes. If the Service offers 80 and forwards to targetPort 8080, the Ingress backend references 80, not 8080 merely because it is the process port.
IngressClass needs an implementing controller; rewrite behavior must not be inferred solely from path. For HTTPS, connect tls.hosts and secretName with a certificate covering the hostname. Then confirm labels, EndpointSlices, readiness, listener, and policies along the actual client path.
Change the API without losing intent
An old manifest using backend.serviceName and servicePort does not become valid for networking.k8s.io/v1 merely by changing apiVersion. Rebuild backend.service and supply pathType while preserving hostname and routing intent. Local validation can detect structural problems; server validation adds cluster rules but does not prove functional outcomes.
Record rendering, API acceptance, Pod conditions, and client access separately. If rollout fails, preserve evidence of the generation and actually consumed configuration before another patch. Restoring the previous template still does not undo an incompatible data migration.
name: api
image: registry.example/api:reviewed
resources:
requests:
cpu: 250m
memory: 128Mi
limits:
cpu: 500m
memory: 256Mi
env:
- name: DB_PASSWORD
valueFrom:
secretKeyRef:
name: db-client
key: passwordA test overlay renders three replicas and a new-version Secret. The pipeline publishes it, but new Pods request key token while the Secret contains password; Ingress also references the process port instead of the Service port. Split diagnosis: repair the required reference, confirm startup and endpoints, repair the backend, and repeat the representative request.
Common pitfalls
Accepting rendering as availability; confusing release namespace with every object; changing apiVersion without migrating fields; using targetPort where the Service port is required.
Related topics: Workloads and configuration · Observability and security
Validate the full chain: rendered artifact, references, admission, startup, and client request. Each stage supplies evidence for the next.
References
- helm upgrade · Helm documentation consulted 2026-10-02
- Kustomize object management · Kubernetes v1.37 documentation; main site consulted 2026-10-02
- Secrets · Kubernetes v1.37 documentation; main site consulted 2026-10-02
- Pod resource management · Kubernetes v1.37 documentation; main site consulted 2026-10-02
- Ingress · Kubernetes v1.37 documentation; main site consulted 2026-10-02
- API deprecation migration · Kubernetes v1.37 documentation; main site consulted 2026-10-02