mirror of
https://github.com/autistic-symposium/ml-quantum-tensorflow-py.git
synced 2025-07-24 07:00: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,9 @@
|
|||
namespace: kubeflow
|
||||
resources:
|
||||
- metrics-collector-rbac.yaml
|
||||
- metrics-collector-template-configmap.yaml
|
||||
generatorOptions:
|
||||
disableNameSuffixHash: true
|
||||
images:
|
||||
- name: gcr.io/kubeflow-images-public/katib/v1alpha2/metrics-collector
|
||||
newTag: v0.6.0-rc.0
|
|
@ -0,0 +1,36 @@
|
|||
kind: ClusterRole
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: metrics-collector
|
||||
rules:
|
||||
- apiGroups:
|
||||
- ""
|
||||
resources:
|
||||
- pods
|
||||
- pods/log
|
||||
- pods/status
|
||||
verbs:
|
||||
- "*"
|
||||
- apiGroups:
|
||||
- batch
|
||||
resources:
|
||||
- jobs
|
||||
verbs:
|
||||
- "*"
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: metrics-collector
|
||||
---
|
||||
kind: ClusterRoleBinding
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: metrics-collector
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: ClusterRole
|
||||
name: metrics-collector
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: metrics-collector
|
|
@ -0,0 +1,40 @@
|
|||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: metrics-collector-template
|
||||
data:
|
||||
defaultMetricsCollectorTemplate.yaml : |-
|
||||
apiVersion: batch/v1beta1
|
||||
kind: CronJob
|
||||
metadata:
|
||||
name: {{.Trial}}
|
||||
namespace: {{.NameSpace}}
|
||||
spec:
|
||||
schedule: "*/1 * * * *"
|
||||
successfulJobsHistoryLimit: 0
|
||||
failedJobsHistoryLimit: 1
|
||||
jobTemplate:
|
||||
spec:
|
||||
backoffLimit: 0
|
||||
template:
|
||||
spec:
|
||||
serviceAccountName: metrics-collector
|
||||
containers:
|
||||
- name: {{.Trial}}
|
||||
image: gcr.io/kubeflow-images-public/katib/v1alpha2/metrics-collector:v0.1.2-alpha-289-g14dad8b
|
||||
imagePullPolicy: IfNotPresent
|
||||
command: ["./metricscollector"]
|
||||
args:
|
||||
- "-e"
|
||||
- "{{.Experiment}}"
|
||||
- "-t"
|
||||
- "{{.Trial}}"
|
||||
- "-k"
|
||||
- "{{.JobKind}}"
|
||||
- "-n"
|
||||
- "{{.NameSpace}}"
|
||||
- "-m"
|
||||
- "{{.ManagerService}}"
|
||||
- "-mn"
|
||||
- "{{.MetricNames}}"
|
||||
restartPolicy: Never
|
Loading…
Add table
Add a link
Reference in a new issue