This repository was archived by the owner on Mar 13, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +29
-5
lines changed Expand file tree Collapse file tree 4 files changed +29
-5
lines changed Original file line number Diff line number Diff line change 3
3
SCRIPT_DIR=" $( realpath " $( dirname " $0 " ) " ) "
4
4
pushd " $SCRIPT_DIR "
5
5
./create-eks.sh
6
+ ./deploy-nginx.sh
6
7
./deploy-presidio.sh
7
8
./deploy-dlp-trigger.sh
8
9
popd
Original file line number Diff line number Diff line change 3
3
SCRIPT_DIR=" $( realpath " $( dirname " $0 " ) " ) "
4
4
source " $SCRIPT_DIR /env.sh"
5
5
6
- analyzer_hostname=$( kubectl get service presidio-presidio-analyzer \
7
- --namespace presidio \
8
- --output jsonpath=' {.status.loadBalancer.ingress[0].hostname}' )
9
- export PRESIDIO_ENDPOINT=http://$analyzer_hostname /analyze
6
+ analyzer_hostname=" "
7
+ while [ -z $analyzer_hostname ]; do
8
+ echo " Waiting for end point..."
9
+ analyzer_hostname=$( kubectl get ingress presidio-ingress \
10
+ -n presidio \
11
+ --output jsonpath=' {.status.loadBalancer.ingress[0].hostname}' \
12
+ )
13
+ [ -z " $analyzer_hostname " ] && sleep 5
14
+ done
15
+
16
+ endpoint_basepath=$( kubectl get ingress presidio-ingress \
17
+ -n presidio \
18
+ --output jsonpath=' {.spec.rules[0].http.paths[0].backend.serviceName}' \
19
+ )
20
+
21
+ export PRESIDIO_ENDPOINT=https://$analyzer_hostname /$endpoint_basepath /analyze
10
22
11
23
pushd " ${SCRIPT_DIR} /.."
12
24
serverless deploy
Original file line number Diff line number Diff line change
1
+ # Add Helm Repo
2
+ helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
3
+ # Install NGINX
4
+ helm install nginx-ingress ingress-nginx/ingress-nginx \
5
+ --namespace ingress-basic \
6
+ --create-namespace \
7
+ --set controller.replicaCount=2 \
8
+ --set controller.nodeSelector." beta\.kubernetes\.io/os" =linux \
9
+ --set defaultBackend.nodeSelector." beta\.kubernetes\.io/os" =linux \
10
+ --set controller.admissionWebhooks.patch.nodeSelector." beta\.kubernetes\.io/os" =linux \
11
+ --wait || true
Original file line number Diff line number Diff line change 3
3
REGISTRY=${1:- mcr.microsoft.com}
4
4
TAG=${2:- latest}
5
5
RELEASE=${3:- presidio}
6
- helm install $RELEASE --set registry=$REGISTRY ,tag=$TAG ./charts/presidio --namespace presidio --create-namespace
6
+ helm upgrade $RELEASE --set registry=$REGISTRY ,tag=$TAG ./charts/presidio --namespace presidio --create-namespace --install
You can’t perform that action at this time.
0 commit comments