Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Linux Foundation CKA Exam - Topic 1 Question 99 Discussion

Posted by Nobuko on May 11, 2026 at 07:41 AM

SIMULATION

Quick Reference

ConfigMaps,

Documentation Deployments,

Namespace

You must connect to the correct host . Failure to do so may result in a zero score.

[candidate@base] $ ssh cka000048b

Task

An NGINX Deployment named nginx-static is running in the nginx-static namespace. It is configured using a ConfigMap named nginx-config .

First, update the nginx-config ConfigMap to also allow TLSv1.2. connections.

You may re-create, restart, or scale resources as necessary.

You can use the following command to test the changes:

[candidate@cka000048b] $ curl -- tls-max

1.2 https://web.k8s.local

Suggested Answer: A

Task Summary

SSH into cka000048b

Update the nginx-config ConfigMap in the nginx-static namespace to allow TLSv1.2

Ensure the nginx-static Deployment picks up the new config

Verify the change using the provided curl command

Step-by-Step Instructions

Step 1: SSH into the correct host

ssh cka000048b

Step 2: Get the ConfigMap

kubectl get configmap nginx-config -n nginx-static -o yaml > nginx-config.yaml

Open the file for editing:

nano nginx-config.yaml

Look for the TLS configuration in the data field. You are likely to find something like:

ssl_protocols TLSv1.3;

Modify it to include TLSv1.2 as well:

ssl_protocols TLSv1.2 TLSv1.3;

Save and exit the file.

Now update the ConfigMap:

kubectl apply -f nginx-config.yaml

Step 3: Restart the NGINX pods to pick up the new ConfigMap

Pods will not reload a ConfigMap automatically unless it's mounted in a way that supports dynamic reload and the app is watching for it (NGINX typically doesn't by default).

The safest way is to restart the pods:

Option 1: Roll the deployment

kubectl rollout restart deployment nginx-static -n nginx-static

Option 2: Delete pods to force recreation

kubectl delete pod -n nginx-static -l app=nginx-static

Step 4: Verify using curl

Use the provided curl command to confirm that TLS 1.2 is accepted:

curl --tls-max 1.2 https://web.k8s.local

A successful response means the TLS configuration is correct.

Final Command Summary

ssh cka000048b

kubectl get configmap nginx-config -n nginx-static -o yaml > nginx-config.yaml

nano nginx-config.yaml # Modify to include 'ssl_protocols TLSv1.2 TLSv1.3;'

kubectl apply -f nginx-config.yaml

kubectl rollout restart deployment nginx-static -n nginx-static

# or

kubectl delete pod -n nginx-static -l app=nginx-static

curl --tls-max 1.2 https://web.k8s.local


Get Premium CKA Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
27 comments · newest first
ST
Stephaine
This question is tricky.
RU
Rupert 5 days ago
I hope I remember the syntax correctly.
CR
Crista 10 days ago
I’ll test with the curl command after.
RI
Rima 15 days ago
TLSv1.2 is crucial for security.
BE
Bettina 20 days ago
I think I’ll update the nginx-config first.
RO
Rossana 26 days ago
I feel nervous about the ConfigMap part.
LE
Leontine 1 month ago
This question is tricky.
AS
Ashton 1 month ago
I hope I remember the curl command correctly.
RO
Rosendo 1 month ago
Don't forget to check the TLS version!
WA
Wai 2 months ago
I’d use `kubectl apply` to update it.
MY
Myra 2 months ago
I think updating nginx-config is key.
AL
Alesia 2 months ago
I feel nervous about the ConfigMap part.
PR
Princess 2 months ago
This question is tricky.
SC
Scarlet 2 months ago
I thought TLSv1.2 was already enabled by default?
HU
Huey 2 months ago
Make sure to restart the deployment after!
SO
Sommer 3 months ago
Wait, does that really work with NGINX?
RE
Remedios 3 months ago
Agree, it's crucial for security!
JE
Jesusita 3 months ago
Just updated the ConfigMap for TLSv1.2!
RO
Romana 3 months ago
I thought TLSv1.2 was already enabled by default?
JE
Jennifer 3 months ago
Make sure to restart the deployment after!
RO
Royal 3 months ago
Wait, does that really work with NGINX?
DA
Dalene 4 months ago
Agree, it's crucial for security!
FR
Francis 4 months ago
Just updated the ConfigMap for TLSv1.2!
ER
Erick 4 months ago
I think I should use `kubectl apply` to update the ConfigMap, but I'm not 100% sure if I need to scale down the deployment first.
IN
Ines 4 months ago
I feel a bit lost on whether I need to restart the deployment after updating the ConfigMap. I hope I can remember the right command.
OL
Olen 4 months ago
This seems similar to that practice question where we had to modify a ConfigMap for a different application. I think I can apply the same steps here.
DO
Dominga 6 months ago
I remember we practiced updating ConfigMaps, but I'm not entirely sure how to add the TLSv1.2 setting specifically.
0/2000 characters

Save Cancel