-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgrade notebooks + don't hardcode namespace in istio
Signed-off-by: David van der Spek <[email protected]>
- Loading branch information
Showing
29 changed files
with
1,436 additions
and
13,236 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
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
12,120 changes: 18 additions & 12,102 deletions
12,120
kubeflow/helm/notebooks/crds/notebooks_crds.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
2,176 changes: 1,217 additions & 959 deletions
2,176
kubeflow/helm/notebooks/crds/poddefaults_crd.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
50 changes: 50 additions & 0 deletions
50
kubeflow/helm/notebooks/templates/controller/cluster-role.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,50 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
labels: {{- include "notebooks.labels" . | nindent 4 }} | ||
name: {{ include "notebooks.fullname" . }}-controller-cluster-role | ||
rules: | ||
- apiGroups: | ||
- apps | ||
resources: | ||
- statefulsets | ||
verbs: | ||
- '*' | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- events | ||
verbs: | ||
- create | ||
- get | ||
- list | ||
- patch | ||
- watch | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- pods | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- services | ||
verbs: | ||
- '*' | ||
- apiGroups: | ||
- kubeflow.org | ||
resources: | ||
- notebooks | ||
- notebooks/finalizers | ||
- notebooks/status | ||
verbs: | ||
- '*' | ||
- apiGroups: | ||
- networking.istio.io | ||
resources: | ||
- virtualservices | ||
verbs: | ||
- '*' |
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,11 +1,12 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
labels: {{- include "notebooks.labels" . | nindent 4 }} | ||
name: {{ include "notebooks.fullname" . }}-controller-config | ||
data: | ||
ISTIO_GATEWAY: {{ .Values.controller.istio.gateway | quote }} | ||
USE_ISTIO: {{ .Values.controller.istio.enabled | quote }} | ||
CLUSTER_DOMAIN: {{ .Values.global.clusterDomain | quote }} | ||
ENABLE_CULLING: {{ .Values.controller.culling.enabled | quote }} | ||
IDLENESS_CHECK_PERIOD: {{ .Values.controller.culling.checkPeriod | quote }} | ||
CULL_IDLE_TIME: {{ .Values.controller.culling.idleTime | quote }} | ||
kind: ConfigMap | ||
metadata: | ||
labels: {{- include "notebooks.labels" . | nindent 4 }} | ||
name: {{ include "notebooks.fullname" . }}-controller-config |
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
18 changes: 18 additions & 0 deletions
18
kubeflow/helm/notebooks/templates/pod-defaults/cluster-role.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,18 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
labels: {{- include "notebooks.labels" . | nindent 4 }} | ||
name: {{ include "notebooks.fullname" . }}-pod-defaults-cluster-role | ||
rules: | ||
- apiGroups: | ||
- kubeflow.org | ||
resources: | ||
- poddefaults | ||
verbs: | ||
- get | ||
- watch | ||
- list | ||
- update | ||
- create | ||
- patch | ||
- delete |
19 changes: 0 additions & 19 deletions
19
...s/templates/pod-defaults/clusterrole.yaml → .../pod-defaults/kubeflow-cluster-roles.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
57 changes: 57 additions & 0 deletions
57
kubeflow/helm/notebooks/templates/web-app/cluster-role.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,57 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
labels: {{- include "notebooks.labels" . | nindent 4 }} | ||
name: {{ include "notebooks.fullname" . }}-web-app-cluster-role | ||
rules: | ||
- apiGroups: | ||
- authorization.k8s.io | ||
resources: | ||
- subjectaccessreviews | ||
verbs: | ||
- create | ||
- apiGroups: | ||
- kubeflow.org | ||
resources: | ||
- notebooks | ||
- notebooks/finalizers | ||
- poddefaults | ||
verbs: | ||
- get | ||
- list | ||
- create | ||
- delete | ||
- patch | ||
- update | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- persistentvolumeclaims | ||
verbs: | ||
- create | ||
- delete | ||
- get | ||
- list | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- events | ||
- nodes | ||
verbs: | ||
- list | ||
- apiGroups: | ||
- storage.k8s.io | ||
resources: | ||
- storageclasses | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- pods | ||
- pods/log | ||
verbs: | ||
- list | ||
- get |
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
14 changes: 14 additions & 0 deletions
14
kubeflow/helm/notebooks/templates/web-app/destination-rule.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,14 @@ | ||
apiVersion: networking.istio.io/v1alpha3 | ||
kind: DestinationRule | ||
metadata: | ||
name: {{ include "notebooks.fullname" . }}-web-app | ||
labels: {{- include "notebooks.labels" . | nindent 4 }} | ||
{{- with .Values.webApp.virtualService.annotations }} | ||
annotations: | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
spec: | ||
host: {{ include "notebooks.fullname" . }}-web-app.{{ .Release.Namespace }}.svc.{{ .Values.global.clusterDomain }} | ||
trafficPolicy: | ||
tls: | ||
mode: ISTIO_MUTUAL |
59 changes: 0 additions & 59 deletions
59
...ebooks/templates/web-app/clusterrole.yaml → ...lates/web-app/kubeflow-cluster-roles.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
Oops, something went wrong.