How to fix kubectl exec: error unable to upgrade connection,forbidden (connect with kubectl proxy)

Subscribers:
4,970
Published on ● Video Link: https://www.youtube.com/watch?v=Sxm9rB7xgvE



Category:
Guide
Duration: 1:01
19 views
0


i am trying to connect to one of the pods in kubernetes with kubectl exec through kubectl proxy, but error:

error: unable to upgrade connection: Forbidden

--

how to solve it:

just add parameter --disable-filter to your kubectl proxy:
kubectl proxy --address=0.0.0.0 --accept-host=^*$ --disable-filter




Other Videos By Ambar Hasbiyatmoko


2024-01-06AWS Cloud - Menghapus Database MySQL di RDS dan membuat snapshot/backup
2024-01-06AWS Cloud - Membuat Database MySQL di service RDS (Relational Database Service)
2023-12-26how to export opentoonz animation to mp4 in ubuntu 22.04
2023-12-25How to install opentoonz (animation maker) in ubuntu 22.04
2023-12-23#shorts I am senior software engineer, making a simple calculator
2023-12-12How to solve SSH error in Ubuntu - WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED
2023-12-12How to solve SFTP error in Ubuntu - Unable to access location, Host key verification failed
2023-12-12AWS Cloud - How to fix EC2 instance failed at first boot, status checks 1/2 passed
2023-12-10How to install prometheus in EC2 instance - AWS Cloud
2023-12-09AWS - Elastic IP address could not be allocated The maximum number of addresses has been reached
2023-12-06How to fix kubectl exec: error unable to upgrade connection,forbidden (connect with kubectl proxy)
2023-11-14How to solve composer: Required (in require dev) package phpunit is in the lock file, not satisfy
2023-11-03How to scan your PHP codes using sonar scanner in sonarqube manually
2023-11-03How to fix SonarQube server [https:xx] can not be reached. Unable to execute SonarScanner analysis
2023-10-30How to fix installing nginx in EC2 AMI - ./configure: error: C compiler cc is not found
2023-10-30How to fix command patch not found in EC2 AMI AWS
2023-10-30How to fix nginx EC2 AMI - Failed at step EXEC spawning: /usr/sbin/nginx: No such file or directory
2023-10-14AWS Cloud - How to update CA (Certificate Authority) in RDS (Relational Database Service) MySQL
2023-10-14How to solve HeidiSQL - OpenSSH SSH-2 private key (old PEM format) when connect to AWS EC2 server
2023-09-30Ubuntu 22.04 - How to fix vboxuser is not in the sudoers file. This incident will be reported
2023-09-29How to fix terminal on ubuntu 22.04 not work in virtualbox 7



Tags:
kubectl proxy
kubectl exec
kubernetes
terminal
access pods
kubectl
eks
aws
cloud
login
address
accept-port
disable-filter
cluster