Kubernetes icon

Kubernetes

Interact with Kubernetes

ReplicaSets → Port Forward

AI-generated

Overview

This node interacts with Kubernetes clusters to perform various operations on Kubernetes resources. Specifically, for the ReplicaSets resource with the Port Forward operation, it establishes a port forwarding session to a specified ReplicaSet within a Kubernetes namespace. This is useful for accessing services running inside the cluster from outside, such as debugging or connecting to an internal application port.

Use Case Examples

  1. Forward a local port to a port on a ReplicaSet to access an internal service for debugging or monitoring.
  2. Use port forwarding to securely connect to a ReplicaSet's application without exposing it externally.

Output

JSON

  • json - The result of the port forwarding operation, typically connection details or status information.

Dependencies

  • Requires Kubernetes API credentials to authenticate and interact with the cluster.

Troubleshooting

  • Ensure Kubernetes credentials are correctly configured and have sufficient permissions to perform port forwarding.
  • Verify that the specified ReplicaSet name and namespace are correct and exist in the cluster.
  • Common error: 'Resource name is required for port-forward operation!' indicates the ReplicaSet name parameter is missing and must be provided.

Links

Discussion