kubectl config set proxy

Viewed 5121

I can't connect to my cluster servers directly. How can I set HTTP_PROXY in kubectl configfile? Using kubectl for windows.

apiVersion: v1
kind: Config
clusters:
- name: "dev"
  cluster:
    server: "https://10.100.12.12:9006/k8s/clusters/c-jm5ws"
    certificate-authority-data: "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUJoekNDQ\
      VM2Z0F3SUJBZ0lCQURBS0JnZ3Foa2pPUFFRREFqQTdNUnd3R2dZRFZRUUtFeE5rZVc1aGJXbGoKY\
      kdsemRHVnVaWEl0YjNKbk1Sc3dHUVlEVlFRREV4SmtlVzVoYldsamJHbHpkR1Z1WlhJdFkyRXdIa"
1 Answers

very hard to find on google.. but found the solution:

apiVersion: v1
kind: Config
clusters:
- name: "dev"
  cluster:
    proxy-url: http://user:password@proxy:port
    server: "https://10.100.12.12:9006/k8s/clusters/c-jm5ws"
    ...
Related