Skip to content

Commit

Permalink
Merge pull request #21 from GaloyMoney/add-k9s
Browse files Browse the repository at this point in the history
feat: add k9s to bastion
  • Loading branch information
bodymindarts authored Jan 18, 2022
2 parents e37a226 + 165aac9 commit dca18b4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions modules/inception/gcp/bastion-startup.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,9 @@ wget https://github.com/lightningnetwork/lnd/releases/download/v${lnd_version}-b
&& tar -xvf lnd-linux-amd64-v${lnd_version}-beta.tar.gz \
&& mv lnd-linux-amd64-v${lnd_version}-beta/lncli /usr/local/bin \
&& rm -rf lnd-linux-amd64-v${lnd_version}-*

mkdir k9s && cd k9s \
&& wget https://github.com/derailed/k9s/releases/download/v${k9s_version}/k9s_Linux_x86_64.tar.gz \
&& tar -xvf k9s_Linux_x86_64.tar.gz \
&& mv k9s /usr/local/bin \
&& cd .. && rm -rf k9s*
4 changes: 3 additions & 1 deletion modules/inception/gcp/bastion.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ locals {
cepler_version = "0.7.5"
lnd_version = "0.13.3"
kubectl_version = "1.21.3"
k9s_version = "0.25.18"
}

resource "google_service_account" "bastion" {
Expand Down Expand Up @@ -56,11 +57,12 @@ resource "google_compute_instance" "bastion" {
cluster_name : "${local.name_prefix}-cluster",
zone : local.region,
project : local.project,
bastion_revoke_on_exit: local.bastion_revoke_on_exit
bastion_revoke_on_exit : local.bastion_revoke_on_exit
cfssl_version : local.cfssl_version,
bitcoin_version : local.bitcoin_version
cepler_version : local.cepler_version
kubectl_version : local.kubectl_version
k9s_version : local.k9s_version
lnd_version : local.lnd_version
})
}
Expand Down

0 comments on commit dca18b4

Please sign in to comment.