This repository has been archived by the owner on Jul 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from katulu-io/GerardoGR/lean-and-mean
Keep only services needed from kubeflow
- Loading branch information
Showing
21 changed files
with
159 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
dist | ||
dist | ||
/kustomization.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
namespace: katulu-fl | ||
resources: | ||
- kustomize/overlays/istio | ||
commonLabels: | ||
app: jupyter-notebook | ||
app.kubernetes.io/component: jupyter-notebook | ||
app.kubernetes.io/name: jupyter-notebook | ||
kustomize.component: jupyter-notebook |
33 changes: 0 additions & 33 deletions
33
components/kubeflow-notebooks/kustomize/allow-pipeline-access.yaml
This file was deleted.
Oops, something went wrong.
63 changes: 63 additions & 0 deletions
63
components/kubeflow-notebooks/kustomize/base/deployment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: jupyter-notebook | ||
labels: | ||
app: jupyter-notebook | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: jupyter-notebook | ||
template: | ||
metadata: | ||
labels: | ||
app: jupyter-notebook | ||
spec: | ||
serviceAccountName: fl-notebook | ||
containers: | ||
- env: | ||
- name: NB_PREFIX | ||
value: /jupyter | ||
- name: KF_PIPELINES_SA_TOKEN_PATH | ||
value: /var/run/secrets/kubeflow/pipelines/token | ||
image: katulu-fl-jupyter-full | ||
imagePullPolicy: IfNotPresent | ||
name: katulu-fl-jupyter-full | ||
ports: | ||
- containerPort: 8888 | ||
name: notebook-port | ||
protocol: TCP | ||
resources: | ||
limits: | ||
cpu: 600m | ||
memory: 1Gi | ||
requests: | ||
cpu: 500m | ||
memory: 1Gi | ||
workingDir: /home/jovyan | ||
volumeMounts: | ||
- mountPath: /var/run/secrets/kubeflow/pipelines | ||
name: volume-kf-pipeline-token | ||
readOnly: true | ||
- name: minio-credentials | ||
mountPath: /minio | ||
readOnly: true | ||
- mountPath: /home/jovyan | ||
name: workspace | ||
volumes: | ||
- name: workspace | ||
persistentVolumeClaim: | ||
claimName: jupyter-notebook-workspace | ||
- name: volume-kf-pipeline-token | ||
projected: | ||
sources: | ||
- serviceAccountToken: | ||
path: token | ||
expirationSeconds: 7200 | ||
audience: pipelines.kubeflow.org | ||
- name: minio-credentials | ||
secret: | ||
secretName: mlpipeline-minio-artifact | ||
optional: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
components/kubeflow-notebooks/kustomize/base/pv-claim.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: jupyter-notebook-workspace | ||
labels: | ||
app: jupyter-notebook | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 20Gi |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: jupyter-notebook | ||
spec: | ||
ports: | ||
- name: http | ||
port: 80 | ||
protocol: TCP | ||
targetPort: 8888 | ||
selector: | ||
app: jupyter-notebook | ||
type: ClusterIP |
File renamed without changes.
8 changes: 8 additions & 0 deletions
8
components/kubeflow-notebooks/kustomize/overlays/istio/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
namespace: katulu-fl | ||
|
||
resources: | ||
- ../../base | ||
- virtualservice.yaml |
26 changes: 26 additions & 0 deletions
26
components/kubeflow-notebooks/kustomize/overlays/istio/virtualservice.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
apiVersion: networking.istio.io/v1beta1 | ||
kind: VirtualService | ||
metadata: | ||
name: jupyter-notebook | ||
spec: | ||
gateways: | ||
- kubeflow/kubeflow-gateway | ||
hosts: | ||
- '*' | ||
http: | ||
- headers: | ||
request: | ||
add: | ||
x-forwarded-prefix: /jupyter | ||
match: | ||
- uri: | ||
prefix: /jupyter/ | ||
rewrite: | ||
uri: /jupyter/ | ||
|
||
route: | ||
- destination: | ||
host: jupyter-notebook.katulu-fl.svc.cluster.local | ||
port: | ||
number: 80 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters