-
Notifications
You must be signed in to change notification settings - Fork 51
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
base: main
Are you sure you want to change the base?
Solution #29
Conversation
There was a problem hiding this 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
infrastructure/busybox.yml
Outdated
image: radial/busyboxplus:curl | ||
args: | ||
- sleep | ||
- "1000" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EOF
infrastructure/namespace.yml
Outdated
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: todoapp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EOF
infrastructure/todoapp-pod.yml
Outdated
path: api/ready | ||
port: 8080 | ||
initialDelaySeconds: 5 | ||
periodSeconds: 5 |
There was a problem hiding this comment.
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" ] |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EOF
src/todolist/settings.py
Outdated
|
||
|
||
START_TIME = time.time() | ||
START_PERIOD = 40 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
namespace?
infrastructure/todoapp-pod.yml
Outdated
kind: Pod | ||
metadata: | ||
name: todoapp | ||
namespace: mateapp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why namespace=mateapp?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes requested.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job!
No description provided.