Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions cortex.sh
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,16 @@ if [ "$arg2" != "cli" ]; then
set_aws_credentials
fi

function validate_install() {
if [[ $CORTEX_NODE_TYPE == *nano ]] || [[ $CORTEX_NODE_TYPE == *micro ]] || [[ $CORTEX_NODE_TYPE == *small ]] || [[ $CORTEX_NODE_TYPE == *medium ]]; then
echo -e "\nCortex does not support nano, micro, small, or medium instances - please specify a larger instance type"
exit 1
fi
}

if [ "$arg1" = "install" ] && [ "$arg2" = "" ] && [ "$arg3" = "" ]; then
validate_install

echo
echo "○ cluster name: $CORTEX_CLUSTER"
echo "○ region: $CORTEX_REGION"
Expand Down
7 changes: 7 additions & 0 deletions dev/uninstall_cortex.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,12 @@ echo "Uninstalling Cortex ..."

kubectl delete --ignore-not-found=true namespace istio-system
kubectl delete --ignore-not-found=true namespace $CORTEX_NAMESPACE
kubectl delete --ignore-not-found=true -n kube-system deployment cluster-autoscaler
kubectl delete --ignore-not-found=true apiservice v1beta1.metrics.k8s.io
kubectl delete --ignore-not-found=true -n kube-system deployment metrics-server
kubectl delete --ignore-not-found=true -n kube-system service metrics-server
kubectl delete --ignore-not-found=true -n kube-system daemonset istio-cni-node
kubectl delete --ignore-not-found=true -n kube-system daemonset aws-node
kubectl delete --all crds

echo "✓ Uninstalled Cortex"
2 changes: 1 addition & 1 deletion images/istio-citadel/Dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FROM docker.io/istio/citadel:1.3.0
FROM docker.io/istio/citadel:1.3.2
2 changes: 1 addition & 1 deletion images/istio-galley/Dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FROM docker.io/istio/galley:1.3.0
FROM docker.io/istio/galley:1.3.2
2 changes: 1 addition & 1 deletion images/istio-pilot/Dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FROM docker.io/istio/pilot:1.3.0
FROM docker.io/istio/pilot:1.3.2
2 changes: 1 addition & 1 deletion images/istio-proxy/Dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FROM docker.io/istio/proxyv2:1.3.0
FROM docker.io/istio/proxyv2:1.3.2
2 changes: 1 addition & 1 deletion images/manager/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ RUN curl -LO https://get.helm.sh/helm-v2.14.3-linux-amd64.tar.gz && \
rm -rf linux-amd64 && \
rm helm-v2.14.3-linux-amd64.tar.gz

RUN ISTIO_VERSION=1.3.0 && \
RUN ISTIO_VERSION=1.3.2 && \
curl -L "https://github.com/istio/istio/releases/download/${ISTIO_VERSION}/istio-${ISTIO_VERSION}-linux.tar.gz" | tar xz && \
mkdir ./istio-manifests && \
mv ./istio-${ISTIO_VERSION}/install/kubernetes/helm/* ./istio-manifests/ && \
Expand Down
14 changes: 10 additions & 4 deletions manager/install_cortex.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,10 @@ function setup_istio() {
echo -n "."

helm template istio-manifests/istio-cni --name istio-cni --namespace kube-system | kubectl apply -f - >/dev/null
echo -n "."
until [ "$(kubectl get daemonset istio-cni-node -n kube-system -o 'jsonpath={.status.numberReady}')" == "$(kubectl get daemonset istio-cni-node -n kube-system -o 'jsonpath={.status.desiredNumberScheduled}')" ]; do
echo -n "."
sleep 5
done

envsubst < manifests/istio-values.yaml | helm template istio-manifests/istio --values - --name istio --namespace istio-system | kubectl apply -f - >/dev/null
}
Expand Down Expand Up @@ -172,9 +175,6 @@ function validate_cortex() {

eksctl utils write-kubeconfig --name=$CORTEX_CLUSTER --region=$CORTEX_REGION | grep -v "saved kubeconfig as" | grep -v "using region" || true

# https://docs.aws.amazon.com/eks/latest/userguide/cni-upgrades.html
kubectl apply -f https://raw.githubusercontent.com/aws/amazon-vpc-cni-k8s/v1.5.3/config/v1.5/aws-k8s-cni.yaml >/dev/null

setup_bucket
setup_cloudwatch_logs

Expand All @@ -185,6 +185,12 @@ setup_secrets
echo "✓ Updated cluster configuration"

echo -en "○ Configuring networking "
# https://docs.aws.amazon.com/eks/latest/userguide/cni-upgrades.html
kubectl apply -f https://raw.githubusercontent.com/aws/amazon-vpc-cni-k8s/v1.5.4/config/v1.5/aws-k8s-cni.yaml >/dev/null
until [ "$(kubectl get daemonset aws-node -n kube-system -o 'jsonpath={.status.updatedNumberScheduled}')" == "$(kubectl get daemonset aws-node -n kube-system -o 'jsonpath={.status.desiredNumberScheduled}')" ]; do
echo -n "."
sleep 5
done
setup_istio
envsubst < manifests/apis.yaml | kubectl apply -f - >/dev/null
echo -e "\n✓ Configured networking"
Expand Down