Skip to content

Commit

Permalink
Merge pull request #251 from src-d/add-helm-node-selector
Browse files Browse the repository at this point in the history
Add helm node selector
  • Loading branch information
meyskens committed Oct 17, 2018
2 parents c35fd0f + 748da1b commit 1141267
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ pipeline:
release: blog
prefix: STG
secrets: [ STG_API_SERVER, STG_KUBERNETES_TOKEN ]
values: ingress.globalStaticIpName=blog-staging,ingress.hostname=blog-staging.srcd.run,image.tag=commit-${DRONE_COMMIT_SHA:0:7}
values_files: [ .helm-staging.yml ]
values: image.tag=commit-${DRONE_COMMIT_SHA:0:7}
tiller_ns: kube-system
wait: true
when:
Expand Down Expand Up @@ -91,7 +92,8 @@ pipeline:
release: blog
prefix: PROD
secrets: [ PROD_API_SERVER, PROD_KUBERNETES_TOKEN ]
values: ingress.globalStaticIpName=blog-production,ingress.hostname=blog.sourced.tech,image.tag=${DRONE_TAG}
values_files: [ .helm-production.yml ]
values: image.tag=${DRONE_TAG}
tiller_ns: kube-system
wait: true
when:
Expand Down
5 changes: 5 additions & 0 deletions .helm-production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ingress:
globalStaticIpName: blog-production
hostname: blog.sourced.tech
nodeSelector:
cloud.google.com/gke-nodepool: default-pool
5 changes: 5 additions & 0 deletions .helm-staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ingress:
globalStaticIpName: blog-staging
hostname: blog-staging.srcd.run
nodeSelector:
cloud.google.com/gke-nodepool: default-pool

0 comments on commit 1141267

Please sign in to comment.