mirror of
https://github.com/autistic-symposium/ml-quantum-tensorflow-py.git
synced 2025-07-23 22:50:34 -04:00
kustomize
This commit is contained in:
parent
ae72757665
commit
aa0e248a45
330 changed files with 27690 additions and 0 deletions
|
@ -0,0 +1,14 @@
|
|||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
labels:
|
||||
app: centraldashboard
|
||||
name: centraldashboard
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: ClusterRole
|
||||
name: centraldashboard
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: centraldashboard
|
||||
namespace: $(namespace)
|
|
@ -0,0 +1,17 @@
|
|||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRole
|
||||
metadata:
|
||||
labels:
|
||||
app: centraldashboard
|
||||
name: centraldashboard
|
||||
rules:
|
||||
- apiGroups:
|
||||
- ""
|
||||
resources:
|
||||
- events
|
||||
- namespaces
|
||||
- nodes
|
||||
verbs:
|
||||
- get
|
||||
- list
|
||||
- watch
|
|
@ -0,0 +1,31 @@
|
|||
apiVersion: extensions/v1beta1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
labels:
|
||||
app: centraldashboard
|
||||
name: centraldashboard
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: centraldashboard
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: centraldashboard
|
||||
spec:
|
||||
containers:
|
||||
- image: gcr.io/kubeflow-images-public/centraldashboard:v0.5.0
|
||||
imagePullPolicy: IfNotPresent
|
||||
name: centraldashboard
|
||||
ports:
|
||||
- containerPort: 8082
|
||||
protocol: TCP
|
||||
env:
|
||||
- name: USERID_HEADER
|
||||
value: $(userid-header)
|
||||
- name: USERID_PREFIX
|
||||
value: $(userid-prefix)
|
||||
- name: PROFILES_KFAM_SERVICE_HOST
|
||||
value: profiles-kfam.kubeflow
|
||||
serviceAccountName: centraldashboard
|
|
@ -0,0 +1,54 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- clusterrole-binding.yaml
|
||||
- clusterrole.yaml
|
||||
- deployment.yaml
|
||||
- role-binding.yaml
|
||||
- role.yaml
|
||||
- service-account.yaml
|
||||
- service.yaml
|
||||
namespace: kubeflow
|
||||
commonLabels:
|
||||
kustomize.component: centraldashboard
|
||||
images:
|
||||
- name: gcr.io/kubeflow-images-public/centraldashboard
|
||||
newName: gcr.io/kubeflow-images-public/centraldashboard
|
||||
newTag: v20190823-v0.6.0-rc.0-69-gcb7dab59
|
||||
configMapGenerator:
|
||||
- name: parameters
|
||||
env: params.env
|
||||
generatorOptions:
|
||||
disableNameSuffixHash: true
|
||||
vars:
|
||||
- name: namespace
|
||||
objref:
|
||||
kind: Service
|
||||
name: centraldashboard
|
||||
apiVersion: v1
|
||||
fieldref:
|
||||
fieldpath: metadata.namespace
|
||||
- name: clusterDomain
|
||||
objref:
|
||||
kind: ConfigMap
|
||||
name: parameters
|
||||
apiVersion: v1
|
||||
fieldref:
|
||||
fieldpath: data.clusterDomain
|
||||
- name: userid-header
|
||||
objref:
|
||||
kind: ConfigMap
|
||||
name: parameters
|
||||
apiVersion: v1
|
||||
fieldref:
|
||||
fieldpath: data.userid-header
|
||||
- name: userid-prefix
|
||||
objref:
|
||||
kind: ConfigMap
|
||||
name: parameters
|
||||
apiVersion: v1
|
||||
fieldref:
|
||||
fieldpath: data.userid-prefix
|
||||
configurations:
|
||||
- params.yaml
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
clusterDomain=cluster.local
|
||||
userid-header=
|
||||
userid-prefix=
|
|
@ -0,0 +1,9 @@
|
|||
varReference:
|
||||
- path: metadata/annotations/getambassador.io\/config
|
||||
kind: Service
|
||||
- path: spec/http/route/destination/host
|
||||
kind: VirtualService
|
||||
- path: spec/template/spec/containers/0/env/0/value
|
||||
kind: Deployment
|
||||
- path: spec/template/spec/containers/0/env/1/value
|
||||
kind: Deployment
|
|
@ -0,0 +1,14 @@
|
|||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: RoleBinding
|
||||
metadata:
|
||||
labels:
|
||||
app: centraldashboard
|
||||
name: centraldashboard
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: Role
|
||||
name: centraldashboard
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: centraldashboard
|
||||
namespace: $(namespace)
|
25
kubeflow/kfapp/kustomize/centraldashboard/base/role.yaml
Normal file
25
kubeflow/kfapp/kustomize/centraldashboard/base/role.yaml
Normal file
|
@ -0,0 +1,25 @@
|
|||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: Role
|
||||
metadata:
|
||||
labels:
|
||||
app: centraldashboard
|
||||
name: centraldashboard
|
||||
rules:
|
||||
- apiGroups:
|
||||
- ""
|
||||
- "app.k8s.io"
|
||||
resources:
|
||||
- applications
|
||||
- pods
|
||||
- pods/exec
|
||||
- pods/log
|
||||
verbs:
|
||||
- get
|
||||
- list
|
||||
- watch
|
||||
- apiGroups:
|
||||
- ""
|
||||
resources:
|
||||
- secrets
|
||||
verbs:
|
||||
- get
|
|
@ -0,0 +1,4 @@
|
|||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: centraldashboard
|
24
kubeflow/kfapp/kustomize/centraldashboard/base/service.yaml
Normal file
24
kubeflow/kfapp/kustomize/centraldashboard/base/service.yaml
Normal file
|
@ -0,0 +1,24 @@
|
|||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
annotations:
|
||||
getambassador.io/config: |-
|
||||
---
|
||||
apiVersion: ambassador/v0
|
||||
kind: Mapping
|
||||
name: centralui-mapping
|
||||
prefix: /
|
||||
rewrite: /
|
||||
service: centraldashboard.$(namespace)
|
||||
labels:
|
||||
app: centraldashboard
|
||||
name: centraldashboard
|
||||
spec:
|
||||
ports:
|
||||
- port: 80
|
||||
protocol: TCP
|
||||
targetPort: 8082
|
||||
selector:
|
||||
app: centraldashboard
|
||||
sessionAffinity: None
|
||||
type: ClusterIP
|
Loading…
Add table
Add a link
Reference in a new issue