Comments (6)
For instance, this is how docker-image
already supports this:
- name: my-app-in-container
type: docker-image
source:
repository: eu.gcr.io/my-project-id/my-app-in-container
username: _json_key
password: {{gcs_service_account_json_key}}
from concourse-helm-resource.
I think #36 is basically the same, but a bit more precise. So I'm closing thing.
from concourse-helm-resource.
It's not really the same as #36 which is kubeconfig support.
If you're using GKE, you'll need to provide this service account in addition to your kubeconfig, but it's not enough since the gcloud CLI isn't in this image.
We have our own fork with the gcloud CLI installed so we can authenticate using service accounts but I'm not sure whether something Google Cloud specific should end up in this resource. What do you think ?
from concourse-helm-resource.
Hm, I'd rather not have something vendor specific in it. We could have some kind of extension point where the standard common.sh calls out to a different (by default empty) script at the right place.
You need to be able to provide a kubeconfig as well? I don't use GKE, so excuse my questions..
I've seen you changed two things in you fork: allow kubeconfig and add the Google stuff, right?
from concourse-helm-resource.
not adding vendor specific stuff
from concourse-helm-resource.
From get-credentials help:
To configure a
kubeconfig
file to use application default credentials, set thecontainer/use_application_default_credentials
Cloud SDK property to true before running gcloud container clusters get-credentials
So I tried to build my own tasks like following:
- Running google/cloud-sdk, I retrieve k8s credentials from my service account key file in a
creds/kubeconfig
file:
mkdir -p creds
cat >creds/gcp-sa.json <<EOF
((gcp-sa.key))
EOF
GOOGLE_APPLICATION_CREDENTIALS=creds/gcp-sa.json KUBECONFIG=creds/kubeconfig \
gcloud config set container/use_application_default_credentials true
GOOGLE_APPLICATION_CREDENTIALS=creds/gcp-sa.json KUBECONFIG=creds/kubeconfig \
gcloud container clusters get-credentials \
target-cluster-in-gke \
--region europe-west1
- Use it in helm resource declared before, with the following parameters:
- put: my-helm-template
params:
chart: ./charts/path
kubeconfig_path: creds/kubeconfig
It works out-of-the-box with linkyard/concourse-helm-resource and doesn't require any change in Dockerfile nor other assets.
from concourse-helm-resource.
Related Issues (20)
- token_path mentioned under wrong section HOT 1
- deploy chart doesn't work for some reason. HOT 4
- Support for setting values inline (no yaml file) HOT 1
- Failed to ping registry https://https/v2/ HOT 1
- Check doesn't work with TLS and token_path HOT 3
- [ Feature Request ] Tillerless run HOT 3
- check resource fails when source.release != params.release HOT 5
- Release tillerless tag HOT 4
- Release 2.14.0 breaks cluster_ca (and https cluster_urls) HOT 4
- pr115 breaks kubeconfig tiller_namespace
- Add the ability to reset values HOT 1
- pods is forbidden HOT 1
- Querying too many releases at the end of a build causes the build to fail HOT 7
- Escape override_values
- AWS EKS Support
- New release 2.14.3 HOT 1
- Helm 3 HOT 1
- Request update to 2.16.6 HOT 2
- Support --insecure-skip-tls-verify
- Request update to 2.17.0 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from concourse-helm-resource.