kustomize

This commit is contained in:
Steinkirch 2020-04-06 17:23:26 -07:00
parent ae72757665
commit aa0e248a45
330 changed files with 27690 additions and 0 deletions

View file

@ -0,0 +1,13 @@
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
labels:
app: pytorch-operator
name: pytorch-operator
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: pytorch-operator
subjects:
- kind: ServiceAccount
name: pytorch-operator

View file

@ -0,0 +1,50 @@
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
labels:
app: pytorch-operator
name: pytorch-operator
rules:
- apiGroups:
- kubeflow.org
resources:
- pytorchjobs
- pytorchjobs/status
verbs:
- '*'
- apiGroups:
- apiextensions.k8s.io
resources:
- customresourcedefinitions
verbs:
- '*'
- apiGroups:
- storage.k8s.io
resources:
- storageclasses
verbs:
- '*'
- apiGroups:
- batch
resources:
- jobs
verbs:
- '*'
- apiGroups:
- ""
resources:
- configmaps
- pods
- services
- endpoints
- persistentvolumeclaims
- events
verbs:
- '*'
- apiGroups:
- apps
- extensions
resources:
- deployments
verbs:
- '*'

View file

@ -0,0 +1,9 @@
apiVersion: v1
data:
controller_config_file.yaml: |-
{
}
kind: ConfigMap
metadata:
name: pytorch-operator-config

View file

@ -0,0 +1,39 @@
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: pytorch-operator
spec:
replicas: 1
selector:
matchLabels:
name: pytorch-operator
template:
metadata:
labels:
name: pytorch-operator
spec:
containers:
- command:
- /pytorch-operator.v1
- --alsologtostderr
- -v=1
- --monitoring-port=8443
env:
- name: MY_POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: MY_POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
image: gcr.io/kubeflow-images-public/pytorch-operator:v0.5.1-5-ge775742
name: pytorch-operator
volumeMounts:
- mountPath: /etc/config
name: config-volume
serviceAccountName: pytorch-operator
volumes:
- configMap:
name: pytorch-operator-config
name: config-volume

View file

@ -0,0 +1,16 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: kubeflow
resources:
- cluster-role-binding.yaml
- cluster-role.yaml
- config-map.yaml
- deployment.yaml
- service-account.yaml
- service.yaml
commonLabels:
kustomize.component: pytorch-operator
images:
- name: gcr.io/kubeflow-images-public/pytorch-operator
newName: gcr.io/kubeflow-images-public/pytorch-operator
newTag: v1.0.0-rc.0

View file

@ -0,0 +1,3 @@
pytorchDefaultImage=null
deploymentScope=cluster
deploymentNamespace=null

View file

@ -0,0 +1,6 @@
apiVersion: v1
kind: ServiceAccount
metadata:
labels:
app: pytorch-operator
name: pytorch-operator

View file

@ -0,0 +1,19 @@
apiVersion: v1
kind: Service
metadata:
annotations:
prometheus.io/path: /metrics
prometheus.io/port: "8443"
prometheus.io/scrape: "true"
labels:
app: pytorch-operator
name: pytorch-operator
spec:
ports:
- name: monitoring-port
port: 8443
targetPort: 8443
selector:
name: pytorch-operator
type: ClusterIP

View file

@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
bases:
- base
kind: Kustomization
namespace: kubeflow

View file

@ -0,0 +1,44 @@
apiVersion: app.k8s.io/v1beta1
kind: Application
metadata:
name: pytorch-operator
spec:
selector:
matchLabels:
app.kubernetes.io/name: pytorch-operator
app.kubernetes.io/instance: pytorch-operator
app.kubernetes.io/version: v0.6.0
app.kubernetes.io/component: pytorch
app.kubernetes.io/part-of: kubeflow
app.kubernetes.io/managed-by: kfctl
componentKinds:
- group: core
kind: Service
- group: apps
kind: Deployment
- group: core
kind: ConfigMap
- group: core
kind: ServiceAccount
- group: kubeflow.org
kind: PyTorchJob
descriptor:
type: "pytorch-operator"
version: "v1"
description: "Pytorch-operator allows users to create and manage the \"PyTorchJob\" custom resource."
maintainers:
- name: Johnu George
email: johnugeo@cisco.com
owners:
- name: Johnu George
email: johnugeo@cisco.com
keywords:
- "pytorchjob"
- "pytorch-operator"
- "pytorch-training"
links:
- description: About
url: "https://github.com/kubeflow/pytorch-operator"
- description: Docs
url: "https://www.kubeflow.org/docs/reference/pytorchjob/v1/pytorch/"
addOwnerRef: true

View file

@ -0,0 +1,13 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
bases:
- ../../base
resources:
- application.yaml
commonLabels:
app.kubernetes.io/name: pytorch-operator
app.kubernetes.io/instance: pytorch-operator
app.kubernetes.io/version: v0.6.0
app.kubernetes.io/component: pytorch
app.kubernetes.io/part-of: kubeflow
app.kubernetes.io/managed-by: kfctl