Study. uk . com
  1. Home
  2. All questions
  3. Question 931

CKA study material · question 931 of 1000

You need kubectl port-forward to accept connections from another machine on port 8888, reaching container port 5000. Which two things are required? Choose two.

  1. The argument 8888:5000
  2. The argument 5000:8888
  3. --address with a non-loopback address
  4. --tunnel to enable remote access
Show the answer

Answer: A. The argument 8888:5000
C. --address with a non-loopback address

A port pair is written local:remote, and port-forward listens only on localhost unless --address is given.

Source: kubectl port-forward (Kubernetes) — Examples

Challenge yourself on this topic → Study as cards