mirror of
https://github.com/fluxcd/flagger.git
synced 2026-04-15 06:57:34 +00:00
30 lines
995 B
Bash
Executable File
30 lines
995 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -o errexit
|
|
|
|
ISTIO_VER="1.8.0"
|
|
REPO_ROOT=$(git rev-parse --show-toplevel)
|
|
|
|
echo ">>> Downloading Istio ${ISTIO_VER}"
|
|
cd ${REPO_ROOT}/bin && \
|
|
curl -L https://istio.io/downloadIstio | ISTIO_VERSION=${ISTIO_VER} sh -
|
|
|
|
echo ">>> Installing Istio ${ISTIO_VER}"
|
|
${REPO_ROOT}/bin/istio-${ISTIO_VER}/bin/istioctl manifest install --set profile=default --skip-confirmation \
|
|
--set values.pilot.resources.requests.cpu=100m \
|
|
--set values.pilot.resources.requests.memory=100Mi
|
|
|
|
kubectl apply -f https://raw.githubusercontent.com/istio/istio/release-1.8/samples/addons/prometheus.yaml
|
|
kubectl -n istio-system rollout status deployment/prometheus
|
|
|
|
kubectl -n istio-system get all
|
|
|
|
echo '>>> Load Flagger image in Kind'
|
|
kind load docker-image test/flagger:latest
|
|
|
|
echo '>>> Installing Flagger'
|
|
kubectl apply -k ${REPO_ROOT}/kustomize/istio
|
|
|
|
kubectl -n istio-system set image deployment/flagger flagger=test/flagger:latest
|
|
kubectl -n istio-system rollout status deployment/flagger
|