Skip to content

Commit 5e4348d

Browse files
author
Yuriy Bezsonov
committed
Add eks scripts to agent
1 parent 2c6d946 commit 5e4348d

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

infrastructure/scripts/spring-ai/eks-agent-setup.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ spec:
113113
exec:
114114
command: ["sh", "-c", "sleep 10"]
115115
securityContext:
116-
# runAsNonRoot: true
116+
runAsNonRoot: true
117117
allowPrivilegeEscalation: false
118118
EOF
119119
kubectl apply -f ~/environment/unicorn-spring-ai-agent/k8s/deployment.yaml
@@ -171,9 +171,9 @@ EOF
171171
kubectl apply -f ~/environment/unicorn-spring-ai-agent/k8s/ingress.yaml
172172

173173
echo "Checking the application status ..."
174-
kubectl wait deployment unicorn-spring-ai-agent -n unicorn-spring-ai-agent --for condition=Available=True --timeout=120s
175-
kubectl get deployment unicorn-spring-ai-agent -n unicorn-spring-ai-agent
174+
# kubectl wait deployment unicorn-spring-ai-agent -n unicorn-spring-ai-agent --for condition=Available=True --timeout=120s
175+
# kubectl get deployment unicorn-spring-ai-agent -n unicorn-spring-ai-agent
176176
SVC_URL=http://$(kubectl get ingress unicorn-spring-ai-agent -n unicorn-spring-ai-agent -o jsonpath='{.status.loadBalancer.ingress[0].hostname}')
177-
while [[ $(curl -s -o /dev/null -w "%{http_code}" $SVC_URL/) != "200" ]]; do echo "Service not yet available ..." && sleep 5; done
177+
# while [[ $(curl -s -o /dev/null -w "%{http_code}" $SVC_URL/) != "200" ]]; do echo "Service not yet available ..." && sleep 5; done
178178
echo $SVC_URL
179-
echo Service is Ready!
179+
# echo Service is Ready!

0 commit comments

Comments
 (0)