zarf connect resource
Connect to a service or pod in the cluster
Sets up a local k8s port-forward to a service or pod in the cluster. Examples:
Connect to a service on a random local port:
Section titled “Connect to a service on a random local port:”zarf connect resource —name my-svc —namespace my-namespace —remote-port 8080
Connect to a pod on a specified local port:
Section titled “Connect to a pod on a specified local port:”zarf connect resource —name my-pod —type=pod —namespace my-namespace —remote-port 8080 —local-port 9090
zarf connect resource [flags] --address strings Specify the addresses to expose the tunnel on - comma separated. E.g. --address=127.0.0.1,38.0.101.76. (default [127.0.0.1]) -h, --help help for resource --local-port int (Optional, autogenerated if not provided) The local port to bind to --name string The name of the resource to connect to --namespace string The namespace of the resource --open Enable browser auto-open --remote-port int The remote port of the resource to connect to --type string The type of resource (svc or pod) (default "svc") -a, --architecture string Architecture for OCI images and Zarf packages --features stringToString [ALPHA] Provide a comma-separated list of feature names to bools to enable or disable. Ex. --features "foo=true,bar=false,baz=true" (default []) --insecure-skip-tls-verify Skip checking server's certificate for validity. This flag should only be used if you have a specific reason and accept the reduced security posture. --log-format string Select a logging format. Defaults to 'console'. Valid options are: 'console', 'json', 'dev'. (default "console") -l, --log-level string Log level when running Zarf. Valid options are: warn, info, debug, trace (default "info") --no-color Disable terminal color codes in logging and stdout prints. --plain-http Force the connections over HTTP instead of HTTPS. This flag should only be used if you have a specific reason and accept the reduced security posture. --tmpdir string Specify the temporary directory to use for intermediate files --zarf-cache string Specify the location of the Zarf cache directory (default "~/.zarf-cache")- zarf connect - Accesses services or pods deployed in the cluster