CKA Exam Guide: Lock nginx to TLS 1.3 via ConfigMap Edit and Rolling Restart
A CKA exam scenario requires restricting an nginx server from accepting TLS 1.2 and 1.3 to TLS 1.3 only, with the configuration stored in a Kubernetes ConfigMap named nginx-config. Editing the ConfigMap alone is insufficient because nginx only reads the ssl_protocols directive at startup, not when the mounted file changes on disk. To apply the update, a rolling restart of the nginx-static Deployment must be triggered using kubectl rollout restart, forcing new pods to start with the updated configuration. Before the change, a TLS 1.2 curl request to the service succeeds, confirming the old protocol is active. After the restart completes, the same TLS 1.2 request fails the handshake while a standard TLS 1.3 request continues to work, verifying the restriction is in effect.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in