-
Notifications
You must be signed in to change notification settings - Fork 54
feat(ws): Define k8s workload manifest for backend component #324 #455
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
base: notebooks-v2
Are you sure you want to change the base?
Conversation
…#324 Signed-off-by: Liav Weiss (EXT-Nokia) <[email protected]>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
kind: Service | ||
metadata: | ||
name: nbv2-backend | ||
namespace: backend-system |
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.
app.kubernetes.io/component: backend | ||
app.kubernetes.io/managed-by: kustomize | ||
name: nbv2-backend | ||
namespace: backend-system |
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.
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.
w.r.t the "directory structure" for these files - I would propose the following:
workspaces/
├── backend/
├── api/
├── cmd/
├── internal/
├── manifests/
│ ├── kustomize/
│ │ ├── base/
│ │ ├── overlays/ # (not needed - including as merely an example of future-proofing)
│ │ │ ├── dev/
│ │ │ ├── staging/
│ │ │ └── prod/
│ │ └── options/ # (not needed - including as merely an example of future-proofing)
│ └── helm/ # (not needed - including as merely an example of future-proofing)
├── openapi/
├── Dockerfile
├── Makefile
├── README.md
├── ...
I feel this aligns more (loosely) with "industry standards" and/or expectations.
livenessProbe: | ||
httpGet: | ||
path: /api/v1/healthcheck | ||
port: 4000 |
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.
refer to name of port (as outlined in https://github.com/kubeflow/notebooks/pull/455/files#r2195457108)
…#324 Signed-off-by: Liav Weiss (EXT-Nokia) <[email protected]>
48d4a74
to
d14d479
Compare
Signed-off-by: Liav Weiss (EXT-Nokia) <[email protected]>
5135cf3
to
6d78b09
Compare
closes: #324
In this PR I have created the manifest workload for the backend component.
Added 2 targets to the Makefile
deploy
andundeploy
.How to deploy the backed component:
cd workspaces/backend
make docker-build
make docker-push
make deploy
kubectl port-forward svc/nbv2-backend 4000:4000 -n backend-system
How to undeploy the backed component:
cd workspaces/backend
make undeploy
@andyatmiami, regarding this PR, I want to consult with you:
NodePort
in theservice.yaml
mainly because we dont have yet an nginx-ingressI can change it to be type:
ClusterIP
if neededbackend
or we can leave it as it isnbv2-backend
?