Skip to content

Commit

Permalink
moved yaml files to separate directory
Browse files Browse the repository at this point in the history
  • Loading branch information
rparadowski committed Jul 15, 2020
1 parent feca96b commit d3a5145
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .cilibs/install-and-run-spinnaker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ sudo bash InstallHalyard.sh --version ${HAL_VERSION} --user $USERNAME -y
hal -v

# Create Kind cluster
kind create cluster --config="${EXEC_DIR}/kind-cluster-config.yaml"
kind create cluster --config="${EXEC_DIR}/templates/kind-cluster-config.yaml"
kubectl config use-context kind-kind
kubectl cluster-info

Expand All @@ -34,8 +34,8 @@ hal -q config deploy edit --type distributed --account-name my-k8s-v2-account

## Install minio
kubectl create namespace spinnaker
sed -i 's/LoadBalancer/ClusterIP/g' "${EXEC_DIR}/minio-standalone.yaml"
kubectl -n spinnaker create -f "${EXEC_DIR}/minio-standalone.yaml"
sed -i 's/LoadBalancer/ClusterIP/g' "${EXEC_DIR}/templates/minio-standalone.yaml"
kubectl -n spinnaker create -f "${EXEC_DIR}/templates/minio-standalone.yaml"
mkdir -p ~/.hal/default/profiles
echo "spinnaker.s3.versioning: false" >> ~/.hal/default/profiles/front50-local.yml

Expand All @@ -55,8 +55,8 @@ hal config security api edit --override-base-url='http://spinnaker/api/v1'
echo 'window.spinnakerSettings.authEnabled = true;' > ~/.hal/default/profiles/settings-local.js
mkdir -p ~/.hal/default/service-settings
echo 'healthEndpoint: /api/v1/health' > ~/.hal/default/service-settings/gate.yml
sed -i "s/GATE_PASS/${GATE_PASS}/g" "${EXEC_DIR}/gate-local.yml"
cp "${EXEC_DIR}/gate-local.yml" ~/.hal/default/profiles/gate-local.yml
sed -i "s/GATE_PASS/${GATE_PASS}/g" "${EXEC_DIR}/templates/gate-local.yml"
cp "${EXEC_DIR}/templates/gate-local.yml" ~/.hal/default/profiles/gate-local.yml

# Install Spinnaker
hal -q deploy apply
Expand All @@ -66,11 +66,11 @@ do
done

# Install Ingress controller
kubectl apply -f "${EXEC_DIR}/ingress-mandatory.yaml"
kubectl apply -f "${EXEC_DIR}/ingress-service-nodeport.yaml"
kubectl apply -f "${EXEC_DIR}/templastes/ingress-mandatory.yaml"
kubectl apply -f "${EXEC_DIR}/templates/ingress-service-nodeport.yaml"
kubectl patch deployments -n ingress-nginx nginx-ingress-controller -p '{"spec":{"template":{"spec":{"containers":[{"name":"nginx-ingress-controller","ports":[{"containerPort":80,"hostPort":80},{"containerPort":443,"hostPort":443}]}],"nodeSelector":{"ingress-ready":"true"},"tolerations":[{"key":"node-role.kubernetes.io/master","operator":"Equal","effect":"NoSchedule"}]}}}}'
kubectl -n spinnaker apply -f "${EXEC_DIR}/spinnaker-ingress.yaml"
kubectl -n spinnaker apply -f "${EXEC_DIR}/templates/spinnaker-ingress.yaml"

# Generate Floodgate config file
sed -i "s/GATE_PASS/${GATE_PASS}/g" "${EXEC_DIR}/floodgate-config.yaml"
cp "${EXEC_DIR}/floodgate-config.yaml" ~/floodgate.yaml
sed -i "s/GATE_PASS/${GATE_PASS}/g" "${EXEC_DIR}/templates/floodgate-config.yaml"
cp "${EXEC_DIR}/templates/floodgate-config.yaml" ~/floodgate.yaml
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.

0 comments on commit d3a5145

Please sign in to comment.