Closed a1exus closed 2 years ago
I have not used the kubefwd
docker container with gcloud. I suggest creating a new container with kubefwd
and Python installed.
% cat Dockerfile
FROM google/cloud-sdk:alpine as cloud-sdk
COPY --from=cloud-sdk /google-cloud-sdk/ /google-cloud-sdk/
FROM python:alpine as python
COPY --from=python /usr/local /usr/local
FROM txn2/kubefwd:latest
%
also, I found these useful as well:
% grep -A3 environment docker-compose.yml
environment:
- CLOUDSDK_PYTHON="/usr/local/bin/python"
- CLOUDSDK_CONFIG="/google-cloud-sdk/config"
- PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/google-cloud-sdk/bin
%
Hello World!
I'm following https://github.com/txn2/kubefwd#docker and while kubefwd mostly works for me, there are other times when it doesn't, like so:
I've tried to mount my google-cloud-sdk, however now it's missing python...
Is there another way to handle that error? as API IS reachable:
Please advise.