mirror of
https://github.com/autistic-symposium/ml-quantum-tensorflow-py.git
synced 2025-08-03 11:48:17 -04:00
kustomize
This commit is contained in:
parent
ae72757665
commit
aa0e248a45
330 changed files with 27690 additions and 0 deletions
|
@ -0,0 +1,13 @@
|
|||
apiVersion: rbac.authorization.k8s.io/v1beta1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
labels:
|
||||
app: spartakus
|
||||
name: spartakus
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: ClusterRole
|
||||
name: spartakus
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: spartakus
|
14
kubeflow/kfapp/kustomize/spartakus/base/cluster-role.yaml
Normal file
14
kubeflow/kfapp/kustomize/spartakus/base/cluster-role.yaml
Normal file
|
@ -0,0 +1,14 @@
|
|||
apiVersion: rbac.authorization.k8s.io/v1beta1
|
||||
kind: ClusterRole
|
||||
metadata:
|
||||
labels:
|
||||
app: spartakus
|
||||
name: spartakus
|
||||
rules:
|
||||
- apiGroups:
|
||||
- ""
|
||||
resources:
|
||||
- nodes
|
||||
verbs:
|
||||
- get
|
||||
- list
|
21
kubeflow/kfapp/kustomize/spartakus/base/deployment.yaml
Normal file
21
kubeflow/kfapp/kustomize/spartakus/base/deployment.yaml
Normal file
|
@ -0,0 +1,21 @@
|
|||
apiVersion: extensions/v1beta1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
labels:
|
||||
app: spartakus
|
||||
name: spartakus-volunteer
|
||||
spec:
|
||||
replicas: 1
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: spartakus-volunteer
|
||||
spec:
|
||||
containers:
|
||||
- args:
|
||||
- volunteer
|
||||
- --cluster-id=$(usageId)
|
||||
- --database=https://stats-collector.kubeflow.org
|
||||
image: gcr.io/google_containers/spartakus-amd64:v1.1.0
|
||||
name: volunteer
|
||||
serviceAccountName: spartakus
|
28
kubeflow/kfapp/kustomize/spartakus/base/kustomization.yaml
Normal file
28
kubeflow/kfapp/kustomize/spartakus/base/kustomization.yaml
Normal file
|
@ -0,0 +1,28 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- cluster-role-binding.yaml
|
||||
- cluster-role.yaml
|
||||
- deployment.yaml
|
||||
- service-account.yaml
|
||||
commonLabels:
|
||||
kustomize.component: spartakus
|
||||
images:
|
||||
- name: gcr.io/google_containers/spartakus-amd64
|
||||
newName: gcr.io/google_containers/spartakus-amd64
|
||||
newTag: v1.1.0
|
||||
configMapGenerator:
|
||||
- name: spartakus-parameters
|
||||
env: params.env
|
||||
generatorOptions:
|
||||
disableNameSuffixHash: true
|
||||
vars:
|
||||
- name: usageId
|
||||
objref:
|
||||
kind: ConfigMap
|
||||
name: spartakus-parameters
|
||||
apiVersion: v1
|
||||
fieldref:
|
||||
fieldpath: data.usageId
|
||||
configurations:
|
||||
- params.yaml
|
1
kubeflow/kfapp/kustomize/spartakus/base/params.env
Normal file
1
kubeflow/kfapp/kustomize/spartakus/base/params.env
Normal file
|
@ -0,0 +1 @@
|
|||
usageId=<randomly-generated-id>
|
3
kubeflow/kfapp/kustomize/spartakus/base/params.yaml
Normal file
3
kubeflow/kfapp/kustomize/spartakus/base/params.yaml
Normal file
|
@ -0,0 +1,3 @@
|
|||
varReference:
|
||||
- path: spec/template/spec/containers/0/args/1
|
||||
kind: Deployment
|
|
@ -0,0 +1,6 @@
|
|||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
labels:
|
||||
app: spartakus
|
||||
name: spartakus
|
Loading…
Add table
Add a link
Reference in a new issue