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
989b41bc
Verified
Commit
989b41bc
authored
4 years ago
by
David Hoese
Browse files
Options
Downloads
Patches
Plain Diff
Add initial bucket lifecycle configs
parent
a4ed4074
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+0
-40
0 additions, 40 deletions
.gitlab-ci.yml
admin/abi-netcdf-bucket-lifecycle.json
+12
-0
12 additions, 0 deletions
admin/abi-netcdf-bucket-lifecycle.json
admin/values-geosphere-minio.yaml
+0
-0
0 additions, 0 deletions
admin/values-geosphere-minio.yaml
with
12 additions
and
40 deletions
.gitlab-ci.yml
+
0
−
40
View file @
989b41bc
...
...
@@ -2,7 +2,6 @@ stages:
-
get chart
-
build prereqs
-
deploy rabbit
-
deploy storage
-
deploy GRB
-
deploy G2G
-
deploy WMS
...
...
@@ -129,45 +128,6 @@ deploy_prod_rabbit:
-
when
:
on_success
deploy_prod_minio
:
environment
:
name
:
production
url
:
http://geosphere.ssec.wisc.edu
extends
:
.helm_based_job
stage
:
deploy storage
script
:
-
if [ -n "$CI_COMMIT_TAG" ]; then
ns="geosphere";
else
ns="geosphere-test";
fi
# copy secret kubeconfig to the mounted (pwd) directory
-
cp $kubekorner_k3s_config .
-
kubeconfig=$(basename $kubekorner_k3s_config)
# get password from any previous installation
-
auth_sec="geosphere-minio"
-
sec_info=$(kubectl --kubeconfig $kubeconfig get secret --namespace $ns $auth_sec || echo "")
-
echo "$sec_info"
# if we've installed this once then reuse the existing secret
# otherwise force the chart to generate random values for accessKey and secretKey
# by setting them to false
-
if [ "$sec_info" != "" ]; then
ak=$(kubectl --kubeconfig $kubeconfig get secret --namespace "$ns" "$auth_sec" -o jsonpath="{.data.accesskey}" | base64 -d);
sk=$(kubectl --kubeconfig $kubeconfig get secret --namespace "$ns" "$auth_sec" -o jsonpath="{.data.secretkey}" | base64 -d);
EXTRA_ARGS="--set accessKey=$ak --set secretKey=$sk";
else
EXTRA_ARGS="--set accessKey=false --set secretKey=false";
fi
-
echo $EXTRA_ARGS
-
helm upgrade -v 2 --install --kubeconfig $kubeconfig -f production/values-geosphere-minio.yaml $EXTRA_ARGS --namespace $ns geosphere-minio stable/minio
# this job doesn't actually need any artifacts from previous jobs
dependencies
:
[]
rules
:
-
if
:
'
$kubekorner_k3s_config
==
""'
when
:
never
-
when
:
on_success
deploy_g16_grb
:
environment
:
name
:
production
...
...
This diff is collapsed.
Click to expand it.
admin/abi-netcdf-bucket-lifecycle.json
0 → 100644
+
12
−
0
View file @
989b41bc
{
"Rules"
:
[
{
"ID"
:
"Expire old NetCDF files"
,
"Expiration"
:
{
"Days"
:
1
},
"Prefix"
:
""
,
"Status"
:
"Enabled"
}
]
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
productio
n/values-geosphere-minio.yaml
→
admi
n/values-geosphere-minio.yaml
+
0
−
0
View file @
989b41bc
File moved
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