Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add proxy configuration at the context level #2675

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

placintaalexandru
Copy link
Contributor

@placintaalexandru placintaalexandru commented Apr 24, 2024

Fixes #825
Fixes #371

This PR adds proxy configuration (new field proxy) at the context level as seen in the config bellow:

k9s:
  cluster: kind-k9s-test
  namespace:
    active: default
    lockFavorites: false
    favorites:
    - default
  view:
    active: po
  featureGates:
    nodeShell: false
  portForwardAddress: localhost
  proxy:
    address: http://localhost:3128

Testes with a squid proxy:

http_port 80
http_port 3128

# Define ACLs
acl all_traffic src all

# Request forwarding configuration
request_header_access Authorization allow all

# Allow all traffic
http_access allow all_traffic

# Define a custom log format named "combined"
logformat squid      %ts.%03tu %6tr %>a %Ss/%03>Hs %<st %rm %ru %[un %Sh/%<a %mt

# Use the custom log format for access logging
access_log stdio:/var/log/squid/access.log squid

@placintaalexandru placintaalexandru marked this pull request as draft May 2, 2024 19:19
@placintaalexandru placintaalexandru marked this pull request as ready for review May 6, 2024 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Proxy support support https_proxy
1 participant