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
98fb18c0
Verified
Commit
98fb18c0
authored
4 years ago
by
David Hoese
Browse files
Options
Downloads
Patches
Plain Diff
Update GRB processing to hopefully reuse PVC if it exists
parent
da749058
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+7
-2
7 additions, 2 deletions
.gitlab-ci.yml
admin/README.md
+24
-0
24 additions, 0 deletions
admin/README.md
with
31 additions
and
2 deletions
.gitlab-ci.yml
+
7
−
2
View file @
98fb18c0
...
...
@@ -167,11 +167,16 @@ deploy_g16_grb:
-
kubeconfig=$(basename $kubekorner_k3s_config)
-
echo "Deploying version $docker_tag to cluster namespace $ns"
-
pvc=$(kubectl --kubeconfig $kubeconfig get pvc --namespace $ns cspp-geo-grb -o jsonpath="{.metadata.name}" || echo "");
-
echo $pvc
-
if [ "$pvc" != "" ]; then
EXTRA_ARGS="--set persistence.existingClaim=$pvc";
else
EXTRA_ARGS="--set persistence.enabled=true";
fi
-
echo $EXTRA_ARGS
# copy extra values files to the local directory (where helm has access via docker mount)
-
cp ../../production/values-grb-g16.yaml .
# namespace names are the same as domain names
-
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/
-
helm upgrade -v 2 --install --kubeconfig $kubeconfig --namespace $ns
$EXTRA_ARGS
--set persistence.storageClass=longhorn -f values-grb-g16.yaml cspp-geo-grb cspp-geo-grb/
dependencies
:
-
get_chart_grb
rules
:
...
...
This diff is collapsed.
Click to expand it.
admin/README.md
+
24
−
0
View file @
98fb18c0
...
...
@@ -111,11 +111,35 @@ Follow the official longhorn installation instructions:
https://longhorn.io/docs/1.0.0/deploy/install/install-with-helm/
Unless newer versions no longer require it, on kubekorner we needed to install
and enable a iscsi daemon:
```
bash
yum
install
iscsi-initiator-utils
systemctl
enable
iscsid
systemctl start iscsid
```
If you have a particular mount on the cluster nodes that has more space than
the default
`/var`
path, you may want to customize this setting. For longhorn
1.
0 you can do this by adding
`--set defaultSettings.defaultDataPath=/data`
to
your helm install command.
Additionally, if your cluster only has 1 or 2 nodes you may want to change the
default number of replica volumes longhorn attempts to create. Otherwise, by
default, longhorn's "hard affinity" will stop volumes from being created since
it can't make all of the replicas (only one replica per node).
At the time of writing, kubekorner has had its longhorn instance installed with:
```
bash
helm
install
longhorn ./chart/
--namespace
longhorn-system
--set
defaultSettings.defaultReplicaCount
=
1
--set
persistence.defaultClassReplicaCount
=
1
--set
ingress.enabled
=
true
--set
ingress.host
=
"kubekorner.ssec.wisc.edu"
--set
defaultSettings.defaultDataPath
=
"/data"
```
From the webUI or following longhorn's current instructions we can change most
if not all of these settings. If a cluster with one node has more nodes added
on in the future you may want to consider increasing the replicate count.
### Storage - Local Large Cache
**DEPRECATED**
: See local path provisioner above.
...
...
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