-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7848 from Ocelot-Social-Community/more-scripts
chore(other): adjust docs for deployment, neo4j cypher commands, and have new scripts
- Loading branch information
Showing
7 changed files
with
161 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
# time stamp | ||
printf "Neo4J bash :\n " | ||
date | ||
|
||
# base setup | ||
SCRIPT_PATH=$(realpath $0) | ||
SCRIPT_DIR=$(dirname $SCRIPT_PATH) | ||
|
||
# check CONFIGURATION | ||
if [[ -z "$CONFIGURATION" ]]; then | ||
echo "!!! You must provide a CONFIGURATION via environment variable !!!" | ||
exit 1 | ||
fi | ||
|
||
printf " Cluster: %s\n" $CONFIGURATION | ||
|
||
# configuration | ||
KUBECONFIG=${KUBECONFIG:-${SCRIPT_DIR}/../configurations/${CONFIGURATION}/kubeconfig.yaml} | ||
|
||
kubectl --kubeconfig=${KUBECONFIG} -n default exec -it $(kubectl --kubeconfig=${KUBECONFIG} -n default get pods | grep ocelot-backend | awk '{ print $1 }') -- /bin/sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
# time stamp | ||
printf "Token :\n " | ||
date | ||
|
||
# base setup | ||
SCRIPT_PATH=$(realpath $0) | ||
SCRIPT_DIR=$(dirname $SCRIPT_PATH) | ||
|
||
# check CONFIGURATION | ||
if [[ -z "$CONFIGURATION" ]]; then | ||
echo "!!! You must provide a CONFIGURATION via environment variable !!!" | ||
exit 1 | ||
fi | ||
|
||
printf " Cluster: %s\n" $CONFIGURATION | ||
|
||
# configuration | ||
KUBECONFIG=${KUBECONFIG:-${SCRIPT_DIR}/../configurations/${CONFIGURATION}/kubeconfig.yaml} | ||
|
||
kubectl --kubeconfig=${KUBECONFIG} create token admin-user -n kubernetes-dashboard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/bin/bash | ||
|
||
# time stamp | ||
printf "Tunnel started at:\n " | ||
date | ||
|
||
# base setup | ||
SCRIPT_PATH=$(realpath $0) | ||
SCRIPT_DIR=$(dirname $SCRIPT_PATH) | ||
|
||
# check CONFIGURATION | ||
if [[ -z "$CONFIGURATION" ]]; then | ||
echo "!!! You must provide a CONFIGURATION via environment variable !!!" | ||
exit 1 | ||
fi | ||
|
||
printf " Cluster: %s\n" $CONFIGURATION | ||
|
||
# configuration | ||
KUBECONFIG=${KUBECONFIG:-${SCRIPT_DIR}/../configurations/${CONFIGURATION}/kubeconfig.yaml} | ||
|
||
kubectl --kubeconfig=${KUBECONFIG} get pods -n kubernetes-dashboard | ||
#kubectl --kubeconfig=${KUBECONFIG} get -o json -n kubernetes-dashboard pod kubernetes-dashboard-kong-5ccb57895b-vxxmf | ||
|
||
# export POD_NAME=$(kubectl --kubeconfig=${KUBECONFIG} get pods -n kubernetes-dashboard -l "app.kubernetes.io/name=kubernetes-dashboard-kong,app.kubernetes.io/instance=kubernetes-dashboard" -o jsonpath="{.items[0].metadata.name}") | ||
export POD_NAME=kubernetes-dashboard-kong-5ccb57895b-fzqk6 | ||
# export POD_NAME=$(kubectl --kubeconfig=${KUBECONFIG} get pods -n kubernetes-dashboard -l "app.kubernetes.io/name=kubernetes-dashboard,app.kubernetes.io/instance=kubernetes-dashboard" -o jsonpath="{.items[0].metadata.name}") | ||
|
||
echo $POD_NAME | ||
kubectl --kubeconfig=${KUBECONFIG} -n kubernetes-dashboard port-forward $POD_NAME 8443:8443 | ||
|
||
# kubectl --kubeconfig=${KUBECONFIG} -n kubernetes-dashboard create token admin-user | ||
|
||
# kubectl --kubeconfig=${KUBECONFIG} apply -f ${SCRIPT_DIR}/../scripts/admin-user.yml | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
# time stamp | ||
printf "Neo4J bash :\n " | ||
date | ||
|
||
# base setup | ||
SCRIPT_PATH=$(realpath $0) | ||
SCRIPT_DIR=$(dirname $SCRIPT_PATH) | ||
|
||
# check CONFIGURATION | ||
if [[ -z "$CONFIGURATION" ]]; then | ||
echo "!!! You must provide a CONFIGURATION via environment variable !!!" | ||
exit 1 | ||
fi | ||
|
||
printf " Cluster: %s\n" $CONFIGURATION | ||
|
||
# configuration | ||
KUBECONFIG=${KUBECONFIG:-${SCRIPT_DIR}/../configurations/${CONFIGURATION}/kubeconfig.yaml} | ||
|
||
kubectl --kubeconfig=${KUBECONFIG} -n default exec -it $(kubectl --kubeconfig=${KUBECONFIG} -n default get pods | grep ocelot-neo4j | awk '{ print $1 }') -- bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters