Skip to content

Commit

Permalink
Add readiness probe delay and revert troubleshoot
Browse files Browse the repository at this point in the history
  • Loading branch information
sl1pm4t committed Dec 7, 2023
1 parent f86ec17 commit 2eb5cf4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/k8s.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ jobs:
kubectl: latest
stern: latest

- name: Install curl
run: sudo apt-get install -y curl net-tools
# - name: Install curl
# run: sudo apt-get install -y curl

- name: setup-kind
uses: helm/[email protected]
Expand Down Expand Up @@ -82,11 +82,6 @@ jobs:
- name: test
run: |
kubectl get pods
kubectl get services
sleep 5
netstat -anp | grep LISTEN
kubectl get pods
export NODE_IP=$(kubectl get nodes -o jsonpath="{.items[0].status.addresses[0].address}")
echo $NODE_IP
curl -L -v "http://${NODE_IP}:30000/login/my-cluster"
curl -Lsf "http://${NODE_IP}:30000/login/my-cluster" | grep "Log in to Your Account"
1 change: 1 addition & 0 deletions charts/dex-k8s-authenticator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ spec:
path: {{ template "dex-k8s-authenticator.healthCheckPath" . }}
port: http
readinessProbe:
initialDelaySeconds: 20
httpGet:
path: {{ template "dex-k8s-authenticator.healthCheckPath" . }}
port: http
Expand Down

0 comments on commit 2eb5cf4

Please sign in to comment.