I ran into a weird issue while setting up a docker image:
- the image was based on
alpineand haskubectlandawscliinstalled - both aws credentials (
~/.aws/credentials) andkube config(~/.kube/config) are mounted to the container- the command for docker looks like:
docker run -it --rm -v ${HOME}/.aws:/root/.aws -v ${HOME}/.kube:/root/.kube <my_image> /bin/bash
- the command for docker looks like:
- my laptop is connected to VPN and my k8s cluster is on a VPC accessible only via VPN.
What I observed:
- on the host (my laptop):
- both
awsandkubectlcalls are successful.
- both
- in the container: