Skip to content

Commit

Permalink
Adds notebook-controller manifest (kubeflow#9)
Browse files Browse the repository at this point in the history
* adds ambassador and argo components to manifests

* removes ksonnet labels

* removed unused stubs for overlays

* adds jupyter web app

* adds notebook-controller
  • Loading branch information
swiftdiaries authored and k8s-ci-robot committed Mar 28, 2019
1 parent ccdb844 commit b406647
Show file tree
Hide file tree
Showing 8 changed files with 108 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ bases:
- ambassador/base
- argo/base
- jupyter-web-app/base
- notebook-controller/base
#- github.com/swiftdiaries/kubeflow//components/profile-controller/config/default?ref=profiles-controller
commonLabels:
app: kubeflow

namespace: kubeflow
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
12 changes: 12 additions & 0 deletions notebook-controller/base/cluster-role-binding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: notebooks-controller
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: notebooks-controller
subjects:
- kind: ServiceAccount
name: notebook-controller
namespace: kubeflow
24 changes: 24 additions & 0 deletions notebook-controller/base/cluster-role.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: notebooks-controller
rules:
- apiGroups:
- apps
resources:
- statefulsets
- deployments
verbs:
- '*'
- apiGroups:
- ""
resources:
- services
verbs:
- '*'
- apiGroups:
- kubeflow.org
resources:
- notebooks
verbs:
- '*'
14 changes: 14 additions & 0 deletions notebook-controller/base/crd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: notebooks.kubeflow.org
spec:
group: kubeflow.org
names:
kind: Notebook
plural: notebooks
singular: notebook
scope: Namespaced
subresources:
status: {}
version: v1alpha1
21 changes: 21 additions & 0 deletions notebook-controller/base/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: notebooks-controller
namespace: kubeflow
spec:
selector:
matchLabels:
app: notebooks-controller
template:
metadata:
labels:
app: notebooks-controller
spec:
containers:
- command:
- /manager
image: gcr.io/kubeflow-images-public/notebook-controller:v20190214-v0.4.0-rc.1-142-ge7e38b0f-dirty-73cae0
imagePullPolicy: Always
name: manager
serviceAccountName: notebook-controller
18 changes: 18 additions & 0 deletions notebook-controller/base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
namePrefix: notebooks-controller-

resources:
- crd.yaml
- cluster-role.yaml
- service-account.yaml
- cluster-role-binding.yaml
- service.yaml
- deployment.yaml

commonLabels:
kustomize.component: notebooks-controller

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
images:
- name: gcr.io/kubeflow-images-public/notebook-controller
newTag: v20190214-v0.4.0-rc.1-142-ge7e38b0f-dirty-73cae0
7 changes: 7 additions & 0 deletions notebook-controller/base/service-account.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: v1
kind: ServiceAccount
metadata:
labels:
app: notebook-controller
name: notebook-controller
namespace: kubeflow
10 changes: 10 additions & 0 deletions notebook-controller/base/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: v1
kind: Service
metadata:
name: notebooks-controller
namespace: kubeflow
spec:
ports:
- port: 443
selector:
app: notebooks-controller

0 comments on commit b406647

Please sign in to comment.