Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
geosphere-deploy
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cspp_geo
geosphere
geosphere-deploy
Commits
9d8ab3b3
Verified
Commit
9d8ab3b3
authored
4 years ago
by
David Hoese
Browse files
Options
Downloads
Patches
Plain Diff
First attempt at deploying GRB to GCP
parent
108c9a0d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ci_gcp/gitlab-ci.yaml
+38
-0
38 additions, 0 deletions
ci_gcp/gitlab-ci.yaml
ci_gcp/values-grb-g16.yaml
+15
-0
15 additions, 0 deletions
ci_gcp/values-grb-g16.yaml
with
53 additions
and
0 deletions
ci_gcp/gitlab-ci.yaml
+
38
−
0
View file @
9d8ab3b3
...
@@ -24,6 +24,44 @@ test gcp connection:
...
@@ -24,6 +24,44 @@ test gcp connection:
kubectl get all;
kubectl get all;
fi
fi
gstest deploy grb
:
environment
:
name
:
gcp
extends
:
.helm_based_job
#image: google/cloud-sdk:latest
image
:
kiwigrid/gcloud-kubectl-helm
stage
:
deploy GRB
variables
:
KUBECONFIG
:
"
/home/gkh/.kube/config"
before_script
:
-
gcloud --verbosity=debug auth activate-service-account "${GEOSPHERE_DEPLOY_GCP_SA_EMAIL}" --key-file="${GEOSPHERE_DEPLOY_GCP_SA_KEY}"
# If this produces a warning about not having permission make sure the SA
# has the project "Viewer" role. If it still produces a warning then try
# enabling this Cloud Resource Manager API. See admin/GCP_README.md
# for more information.
-
gcloud --verbosity=debug config set project "${GEOSPHERE_DEPLOY_GCP_PROJECT_NAME}"
-
gcloud --verbosity=debug container clusters get-credentials "${GEOSPHERE_DEPLOY_GCP_CLUSTER_NAME}" --zone "${GEOSPHERE_DEPLOY_GCP_ZONE_NAME}";
-
helm registry login -u ${CI_REGISTRY_USER} -p ${CI_JOB_TOKEN} ${CI_REGISTRY}
-
helm repo add stable https://kubernetes-charts.storage.googleapis.com
-
helm repo update
script
:
-
ns="default"
-
cd geosphere-client/chart
-
source cspp-geo-grb/cibuild.env
# copy private ssh key to the chart for inclusion in the secret
-
cp $GRB_PROXY_SSH_KEY cspp-geo-grb/secrets/grb_ssh_proxy_rsa
-
echo "Deploying version $docker_tag to cluster namespace $ns"
-
helm upgrade -v 2 --kubeconfig $HOME/.kube/config --install --namespace $ns -f ../../ci_gcp/values-grb-g16.yaml cspp-geo-grb cspp-geo-grb/
# - helm upgrade -v 2 --install --kubeconfig $kubeconfig --namespace $ns --set persistence.enabled=true --set persistence.storageClass=longhorn -f values-grb-g16.yaml cspp-geo-grb cspp-geo-grb/
dependencies
:
-
get_chart_grb
rules
:
-
if
:
'
$CI_COMMIT_BRANCH
!=
"gcp"'
when
:
never
-
when
:
on_success
gstest deploy client
:
gstest deploy client
:
environment
:
environment
:
name
:
gcp
name
:
gcp
...
...
This diff is collapsed.
Click to expand it.
ci_gcp/values-grb-g16.yaml
0 → 100644
+
15
−
0
View file @
9d8ab3b3
apidFilter
:
"
GOES-16-ABI-Only.xml"
fanoutServer
:
"
fanout1"
sshProxy
:
"
ash.ssec.wisc.edu"
sshUser
:
"
davidh"
sshPrivateKeyFile
:
"
secrets/grb_ssh_proxy_rsa"
uploadDst
:
"
"
#uploadDst: "s3://g16-abi-l1b-netcdf"
#s3Endpoint: "http://geosphere-minio:9000"
#s3Secret: "geosphere-minio"
#s3AccessKey: "accesskey"
#s3SecretKey: "secretkey"
#rabbitOut:
# host: "geosphere-rabbit-rabbitmq"
# username: "user"
# passwordSecret: "geosphere-rabbit-rabbitmq"
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment