Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Add kubectl stuff
  • Loading branch information
gchhablani committed Sep 5, 2024
commit e897846764dc2b5973437523f4ba16beacbc6fef
31 changes: 31 additions & 0 deletions frontend/src/views/web/contact-us.html
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,37 @@ <h5>For challenge hosts:</h5>
usually unable to change such settings once the challenge has started and
submissions
are in.</li>
<li><strong>I am hosting a docker-based (code-upload/static-code-upload) challenge. I want to see the logs on my pods
which stay running/submitted.</strong><br>
To view logs on your pods, follow these steps:

<h6>1. Export required variables on your AWS CloudShell:</h6>
<pre><code>export AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
export AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
export CHALLENGE_PK=${CHALLENGE_PK}
export CLUSTER_NAME=${CLUSTER_NAME}
export ACCOUNT_ID=${ACCOUNT_ID}
export AUTH_TOKEN=${AUTH_TOKEN}</code></pre>

<h6>2. Set eks configuration on AWS:</h6>
<pre><code>aws eks --region $AWS_DEFAULT_REGION update-kubeconfig --name $CLUSTER_NAME
aws configure set aws_access_key_id $AWS_ACCESS_KEY_ID</code></pre>

<h6>3. Commands to get different entities on EKS:</h6>
<pre><code>kubectl get jobs
kubectl get nodes
kubectl get pods
kubectl get cnp</code></pre>

<h6>4. Commands to get logs for a specific pod:</h6>
<pre><code>kubectl logs submission-293486-8kfwt</code></pre>

<h6>5. Commands to describe a particular pod:</h6>
<pre><code>kubectl describe pods submission-252973-4vx28</code></pre>

<h6>6. Commands to delete a pod:</h6>
<pre><code>kubectl delete pods submission-295910-9lb69</code></pre>
</li>
</ol>
</div>
<h4 class="text-dark-black align-center"><strong>Contact Us</strong></h4>
Expand Down