mirror of
https://github.com/autistic-symposium/ml-quantum-tensorflow-py.git
synced 2025-07-23 06:30:54 -04:00
kustomize
This commit is contained in:
parent
ae72757665
commit
aa0e248a45
330 changed files with 27690 additions and 0 deletions
|
@ -0,0 +1,11 @@
|
|||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: cluster-role-binding
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: ClusterRole
|
||||
name: cluster-role
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: service-account
|
21
kubeflow/kfapp/kustomize/application/base/cluster-role.yaml
Normal file
21
kubeflow/kfapp/kustomize/application/base/cluster-role.yaml
Normal file
|
@ -0,0 +1,21 @@
|
|||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRole
|
||||
metadata:
|
||||
name: cluster-role
|
||||
rules:
|
||||
- apiGroups:
|
||||
- '*'
|
||||
resources:
|
||||
- '*'
|
||||
verbs:
|
||||
- get
|
||||
- list
|
||||
- update
|
||||
- patch
|
||||
- watch
|
||||
- apiGroups:
|
||||
- app.k8s.io
|
||||
resources:
|
||||
- '*'
|
||||
verbs:
|
||||
- '*'
|
29
kubeflow/kfapp/kustomize/application/base/kustomization.yaml
Normal file
29
kubeflow/kfapp/kustomize/application/base/kustomization.yaml
Normal file
|
@ -0,0 +1,29 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- cluster-role.yaml
|
||||
- cluster-role-binding.yaml
|
||||
- service-account.yaml
|
||||
- service.yaml
|
||||
- stateful-set.yaml
|
||||
namespace: kubeflow
|
||||
nameprefix: application-controller-
|
||||
configMapGenerator:
|
||||
- name: parameters
|
||||
env: params.env
|
||||
generatorOptions:
|
||||
disableNameSuffixHash: true
|
||||
images:
|
||||
- name: gcr.io/kubeflow-images-public/kubernetes-sigs/application
|
||||
newName: gcr.io/kubeflow-images-public/kubernetes-sigs/application
|
||||
newTag: 1.0-beta
|
||||
vars:
|
||||
- name: project
|
||||
objref:
|
||||
kind: ConfigMap
|
||||
name: parameters
|
||||
apiVersion: v1
|
||||
fieldref:
|
||||
fieldpath: data.project
|
||||
configurations:
|
||||
- params.yaml
|
1
kubeflow/kfapp/kustomize/application/base/params.env
Normal file
1
kubeflow/kfapp/kustomize/application/base/params.env
Normal file
|
@ -0,0 +1 @@
|
|||
project=
|
3
kubeflow/kfapp/kustomize/application/base/params.yaml
Normal file
3
kubeflow/kfapp/kustomize/application/base/params.yaml
Normal file
|
@ -0,0 +1,3 @@
|
|||
varReference:
|
||||
- path: spec/template/spec/containers/image
|
||||
kind: StatefulSet
|
|
@ -0,0 +1,4 @@
|
|||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: service-account
|
7
kubeflow/kfapp/kustomize/application/base/service.yaml
Normal file
7
kubeflow/kfapp/kustomize/application/base/service.yaml
Normal file
|
@ -0,0 +1,7 @@
|
|||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: service
|
||||
spec:
|
||||
ports:
|
||||
- port: 443
|
19
kubeflow/kfapp/kustomize/application/base/stateful-set.yaml
Normal file
19
kubeflow/kfapp/kustomize/application/base/stateful-set.yaml
Normal file
|
@ -0,0 +1,19 @@
|
|||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
name: stateful-set
|
||||
spec:
|
||||
serviceName: service
|
||||
template:
|
||||
spec:
|
||||
containers:
|
||||
- name: manager
|
||||
command:
|
||||
- /root/manager
|
||||
image: gcr.io/kubeflow-images-public/kubernetes-sigs/application
|
||||
imagePullPolicy: Always
|
||||
env:
|
||||
- name: project
|
||||
value: $(project)
|
||||
serviceAccountName: service-account
|
||||
volumeClaimTemplates: []
|
Loading…
Add table
Add a link
Reference in a new issue