Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solution #29

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Solution #29

wants to merge 2 commits into from

Conversation

Muskam09
Copy link

No description provided.

Copy link

@YuriiSmolii YuriiSmolii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Refactor namespaces, fix and remember to keep EOF's

image: radial/busyboxplus:curl
args:
- sleep
- "1000"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EOF

apiVersion: v1
kind: Namespace
metadata:
name: todoapp

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EOF

path: api/ready
port: 8080
initialDelaySeconds: 5
periodSeconds: 5

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EOF

src/Dockerfile Outdated
EXPOSE 8080

# Run database migrations and start the Django application
ENTRYPOINT [ "sh", "-c", "python manage.py migrate && python manage.py runserver 0.0.0.0:8080" ]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EOF

src/api/views.py Outdated
return HttpResponse("Not Ready", status=status.HTTP_503_SERVICE_UNAVAILABLE)
else:
return HttpResponse("Ready", status=status.HTTP_200_OK)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EOF



START_TIME = time.time()
START_PERIOD = 40

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EOF

apiVersion: v1
kind: Pod
metadata:
name: busybox

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

namespace?

kind: Pod
metadata:
name: todoapp
namespace: mateapp

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why namespace=mateapp?

Copy link

@YuriiSmolii YuriiSmolii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested.

@Muskam09 Muskam09 requested a review from YuriiSmolii September 3, 2024 16:34
Copy link

@NazarSheremet NazarSheremet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants