This repository has been archived by the owner on Dec 28, 2024. It is now read-only.
forked from jjsadek/gloo-mesh-aoa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update to 2.1.0-beta22 and switch to waves directory structure
- Loading branch information
Showing
90 changed files
with
141 additions
and
75 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=auto |
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 |
---|---|---|
@@ -1,45 +1,86 @@ | ||
#!/bin/bash | ||
#set -e | ||
|
||
# note that the character '_' is an invalid value if you are replacing the defaults below | ||
mgmt_context="mgmt" | ||
# replace the parameter below with your designated cluster context | ||
# note that the character '_' is an invalid value | ||
# | ||
# please use `kubectl config rename-contexts <current_context> <target_context>` to | ||
# rename your context if necessary | ||
cluster_context="mgmt" | ||
# number of app waves in the environments directory | ||
environment_waves="4" | ||
LICENSE_KEY="$1" | ||
|
||
# check to see if defined contexts exist | ||
if [[ $(kubectl config get-contexts | grep ${mgmt_context}) == "" ]] ; then | ||
echo "Check Failed: mgmt context does not exist. Please check to see if you have the clusters available" | ||
echo "Run 'kubectl config get-contexts' to see currently available contexts. If the clusters are available, please make sure that they are named correctly. Default is mgmt" | ||
if [[ $(kubectl config get-contexts | grep ${cluster_context}) == "" ]] ; then | ||
echo "Check Failed: ${cluster_context} context does not exist. Please check to see if you have the clusters available" | ||
echo "Run 'kubectl config get-contexts' to see currently available contexts. If the clusters are available, please make sure that they are named correctly. Default is ${cluster_context}" | ||
exit 1; | ||
fi | ||
|
||
# install argocd on ${mgmt_context}, ${cluster1_context}, and ${cluster2_context} | ||
# check to see if license key variable was passed through, if not prompt for key | ||
if [[ ${LICENSE_KEY} == "" ]] | ||
then | ||
# provide license key | ||
echo "Please provide your Gloo Mesh Enterprise License Key:" | ||
read LICENSE_KEY | ||
fi | ||
|
||
# check OS type | ||
if [[ "$OSTYPE" == "linux-gnu"* ]]; then | ||
# Linux | ||
BASE64_LICENSE_KEY=$(echo -n "${LICENSE_KEY}" | base64 -w 0) | ||
elif [[ "$OSTYPE" == "darwin"* ]]; then | ||
# Mac OSX | ||
BASE64_LICENSE_KEY=$(echo -n "${LICENSE_KEY}" | base64) | ||
else | ||
echo unknown OS type | ||
exit 1 | ||
fi | ||
|
||
# license stuff | ||
kubectl create ns gloo-mesh --context ${cluster_context} | ||
|
||
kubectl apply --context ${cluster_context} -f - <<EOF | ||
apiVersion: v1 | ||
data: | ||
gloo-mesh-license-key: ${BASE64_LICENSE_KEY} | ||
kind: Secret | ||
metadata: | ||
name: gloo-mesh-license | ||
namespace: gloo-mesh | ||
type: Opaque | ||
EOF | ||
|
||
# install argocd | ||
cd bootstrap-argocd | ||
./install-argocd.sh insecure-rootpath ${mgmt_context} | ||
./install-argocd.sh insecure-rootpath ${cluster_context} | ||
cd .. | ||
|
||
# wait for argo cluster rollout | ||
./tools/wait-for-rollout.sh deployment argocd-server argocd 20 ${mgmt_context} | ||
./tools/wait-for-rollout.sh deployment argocd-server argocd 20 ${cluster_context} | ||
|
||
# deploy mgmt, cluster1, and cluster2 cluster config aoa | ||
kubectl apply -f platform-owners/mgmt/mgmt-cluster-config.yaml --context ${mgmt_context} | ||
|
||
# deploy mgmt, cluster1, and cluster2 environment infra app-of-apps | ||
kubectl apply -f platform-owners/mgmt/mgmt-infra.yaml --context ${mgmt_context} | ||
# deploy app of app waves | ||
for i in $(seq ${environment_waves}); do | ||
#echo $i; | ||
kubectl apply -f environment/wave-${i}/wave-${i}-aoa.yaml --context ${cluster_context}; | ||
#TODO: add test script if statement | ||
sleep 20; | ||
done | ||
|
||
# wait for completion of gloo-mesh install | ||
./tools/wait-for-rollout.sh deployment gloo-mesh-mgmt-server gloo-mesh 10 ${mgmt_context} | ||
|
||
# deploy cluster1, and cluster2 environment apps aoa | ||
kubectl apply -f platform-owners/mgmt/mgmt-apps.yaml --context ${mgmt_context} | ||
|
||
# deploy mgmt mesh config aoa | ||
kubectl apply -f platform-owners/mgmt/mgmt-mesh-config.yaml --context ${mgmt_context} | ||
./tools/wait-for-rollout.sh deployment gloo-mesh-mgmt-server gloo-mesh 10 ${cluster_context} | ||
|
||
# echo port-forward commands | ||
echo | ||
echo "access gloo mesh dashboard:" | ||
echo "kubectl port-forward -n gloo-mesh svc/gloo-mesh-ui 8090 --context ${mgmt_context}" | ||
echo "kubectl port-forward -n gloo-mesh svc/gloo-mesh-ui 8090 --context ${cluster_context}" | ||
echo | ||
echo "access argocd dashboard:" | ||
echo "kubectl port-forward svc/argocd-server -n argocd 9999:443 --context ${mgmt_context}" | ||
echo "kubectl port-forward svc/argocd-server -n argocd 9999:443 --context ${cluster_context}" | ||
echo | ||
|
||
echo "navigate to http://localhost:8090 in your browser for the Gloo Mesh UI" | ||
echo "navigate to http://localhost:9999/argo in your browser for argocd" | ||
echo | ||
echo "username: admin" | ||
echo "password: solo.io" |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,13 +1,10 @@ | ||
#!/bin/bash | ||
#set -e | ||
|
||
# comma separated list | ||
cluster_contexts="mgmt" | ||
# number of app waves in the environments directory | ||
environment_waves="3" | ||
|
||
# sed commands to replace target_branch variable | ||
for i in $(echo ${cluster_contexts} | sed "s/,/ /g"); do | ||
kubectl apply -f ../platform-owners/$i/$i-apps.yaml --context $i | ||
kubectl apply -f ../platform-owners/$i/$i-cluster-config.yaml --context $i | ||
kubectl apply -f ../platform-owners/$i/$i-infra.yaml --context $i | ||
kubectl apply -f ../platform-owners/$i/$i-mesh-config.yaml --context $i | ||
# configure | ||
for i in $(seq ${environment_waves}); do | ||
kubectl apply -f environment/wave-${i}/wave-${i}-aoa.yaml; | ||
done |
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